/* ==========================================================================
   SHREE KSHETHRA KALLUHITHILU SANNIDHI - ADMIN PANEL STYLESHEET
   Aesthetic: Sacred Vedic Gold, Temple Crimson & Warm Cream Elegance
   ========================================================================== */

:root {
    --adm-bg: #F5F1E8;
    --adm-surface: #FFFFFF;
    --adm-surface-alt: #FCFAF6;
    --adm-card-border: #E8DFCF;
    --adm-text-main: #24140D;
    --adm-text-muted: #6B5B52;
    --adm-maroon: #380E0E;
    --adm-maroon-dark: #240707;
    --adm-saffron: #D4551E;
    --adm-saffron-hover: #B84313;
    --adm-gold: #C69234;
    --adm-gold-light: #F4E7C5;
    --adm-sidebar-bg: #1F0808;
    --adm-sidebar-nav-hover: #330F0F;
    --adm-sidebar-nav-active: #451515;
    --adm-sidebar-text: #E5D5C5;
    --adm-success: #1E7E34;
    --adm-success-bg: #EAF7EE;
    --adm-danger: #C82333;
    --adm-danger-bg: #FDE8E9;
    --adm-border: #E2D9CC;
    --adm-radius: 12px;
    --adm-radius-sm: 8px;
    --adm-shadow: 0 4px 20px rgba(36, 20, 13, 0.06);
    --adm-shadow-md: 0 8px 30px rgba(36, 20, 13, 0.1);
    --font-heading: 'Cinzel', serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.admin-body {
    background-color: var(--adm-bg);
    color: var(--adm-text-main);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    display: flex;
    min-height: 100vh;
}

/* ==========================================================================
   1. LOGIN PAGE
   ========================================================================== */
body.login-body {
    background: radial-gradient(circle at 50% 20%, #4A1212 0%, #1F0707 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    padding: 24px;
    position: relative;
    overflow-x: hidden;
}

body.login-body::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(212, 85, 30, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(198, 146, 52, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

.login-wrapper {
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 2;
}

.login-card {
    background: #FFFFFF;
    border-radius: 18px;
    padding: 44px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(212, 168, 67, 0.4);
    position: relative;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo-wrap {
    display: inline-block;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: radial-gradient(circle, #521515, #240707);
    padding: 8px;
    border: 2px solid var(--adm-gold);
    box-shadow: 0 6px 20px rgba(198, 146, 52, 0.3);
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.login-logo-wrap:hover {
    transform: scale(1.05);
}

.login-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.login-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--adm-saffron);
    background: #FFF2EB;
    border: 1px solid rgba(212, 85, 30, 0.25);
    padding: 4px 14px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.login-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--adm-maroon);
    line-height: 1.3;
    margin-bottom: 4px;
}

.login-sub {
    font-size: 13px;
    color: var(--adm-text-muted);
}

.login-form .form-group {
    margin-bottom: 22px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--adm-text-main);
    margin-bottom: 8px;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    font-size: 16px;
    pointer-events: none;
    opacity: 0.7;
}

.form-control {
    width: 100%;
    padding: 12px 14px 12px 42px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--adm-text-main);
    background: var(--adm-surface-alt);
    border: 1.5px solid var(--adm-card-border);
    border-radius: var(--adm-radius-sm);
    transition: border-color 0.25s, box-shadow 0.25s;
    outline: none;
}

.form-control:focus {
    border-color: var(--adm-saffron);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(212, 85, 30, 0.15);
}

textarea.form-control {
    padding: 12px 14px;
    resize: vertical;
    min-height: 90px;
}

select.form-control {
    padding-left: 14px;
    cursor: pointer;
}

.btn-login-saffron {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--adm-saffron), #EE6C2B);
    color: #FFFFFF;
    border: none;
    border-radius: var(--adm-radius-sm);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(212, 85, 30, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-login-saffron:hover {
    background: linear-gradient(135deg, var(--adm-saffron-hover), var(--adm-saffron));
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 85, 30, 0.45);
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed var(--adm-card-border);
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.login-back-link {
    color: var(--adm-text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.login-back-link:hover {
    color: var(--adm-saffron);
}

.login-help-text {
    color: var(--adm-gold);
    font-weight: 600;
}

.login-credentials-box {
    margin-top: 18px;
    background: #FFFDF7;
    border: 1px solid var(--adm-gold-light);
    border-radius: var(--adm-radius-sm);
    padding: 12px 16px;
    font-size: 12px;
    color: #6C5B3F;
}

.login-credentials-box code {
    background: #F4EBD7;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    color: #380E0E;
}

/* ==========================================================================
   2. ADMIN SIDEBAR
   ========================================================================== */
.admin-sidebar {
    width: 270px;
    background: var(--adm-sidebar-bg);
    color: var(--adm-sidebar-text);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    min-height: 100vh;
    border-right: 1px solid rgba(212, 168, 67, 0.2);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-brand {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.15);
}

.sidebar-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: contain;
    background: #FFFFFF;
    padding: 4px;
    border: 1.5px solid var(--adm-gold);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sidebar-brand-text {
    display: flex;
    flex-direction: column;
}

.sb-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.5px;
}

.sb-sub {
    font-size: 11px;
    color: var(--adm-gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
}

.nav-section-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: rgba(229, 213, 197, 0.45);
    font-weight: 700;
    padding: 16px 12px 6px 12px;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    color: var(--adm-sidebar-text);
    text-decoration: none;
    border-radius: var(--adm-radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.sidebar-nav .nav-link:hover {
    background: var(--adm-sidebar-nav-hover);
    color: #FFFFFF;
    transform: translateX(3px);
}

.sidebar-nav .nav-link.active {
    background: linear-gradient(90deg, var(--adm-saffron), #EE6C2B);
    color: #FFFFFF;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(212, 85, 30, 0.35);
}

.nav-icon {
    font-size: 17px;
    line-height: 1;
}

.nav-text {
    flex: 1;
}

.nav-badge {
    font-size: 12px;
    opacity: 0.6;
}

.sidebar-nav .external-link {
    color: #D4A843;
}

.sidebar-nav .logout-link {
    color: #FF8787;
    margin-top: 10px;
}

.sidebar-nav .logout-link:hover {
    background: rgba(200, 35, 51, 0.2);
    color: #FFFFFF;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.2);
}

.admin-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #3D1212;
    border: 1px solid var(--adm-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.admin-info {
    display: flex;
    flex-direction: column;
}

.admin-name {
    font-size: 13px;
    font-weight: 600;
    color: #FFFFFF;
}

.admin-role {
    font-size: 11px;
    color: var(--adm-gold);
}

/* ==========================================================================
   3. ADMIN TOPBAR & LAYOUT
   ========================================================================== */
.admin-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
    background: var(--adm-bg);
}

.admin-topbar {
    background: var(--adm-surface);
    height: 70px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--adm-border);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.sidebar-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--adm-maroon);
    border-radius: 2px;
}

.topbar-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.breadcrumb-root {
    color: var(--adm-text-muted);
}

.breadcrumb-sep {
    color: #C0B0A0;
}

.breadcrumb-current {
    color: var(--adm-maroon);
    font-weight: 700;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-topbar-web, .btn-topbar-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--adm-radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-topbar-web {
    background: #F8F5EE;
    color: var(--adm-maroon);
    border: 1px solid var(--adm-card-border);
}

.btn-topbar-web:hover {
    background: #EFE9DC;
    border-color: var(--adm-gold);
}

.btn-topbar-logout {
    background: #FFF5F5;
    color: var(--adm-danger);
    border: 1px solid #FFD4D4;
}

.btn-topbar-logout:hover {
    background: #FFE8E8;
    color: #9C1120;
}

.admin-main {
    flex: 1;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.admin-container {
    width: 100%;
    max-width: 1540px;
    margin: 0 auto;
    padding: 32px 40px 60px 40px;
    box-sizing: border-box;
}

/* Flash Alerts */
.admin-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--adm-radius-sm);
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-success {
    background: var(--adm-success-bg);
    color: #0F5132;
    border: 1px solid #BADBCC;
}

.alert-danger {
    background: var(--adm-danger-bg);
    color: #842029;
    border: 1px solid #F5C2C7;
}

.alert-warning {
    background: #FFF3CD;
    color: #664D03;
    border: 1px solid #FFECB5;
}

.alert-icon {
    font-weight: bold;
    font-size: 16px;
}

.alert-text {
    flex: 1;
}

.alert-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    line-height: 1;
}

.alert-close:hover {
    opacity: 1;
}

/* ==========================================================================
   4. DASHBOARD COMPONENTS
   ========================================================================== */
.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    color: var(--adm-maroon);
    margin-bottom: 4px;
}

.page-subtitle {
    font-size: 14px;
    color: var(--adm-text-muted);
}

.dashboard-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-primary-admin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--adm-saffron), #EE6C2B);
    color: #FFFFFF;
    text-decoration: none;
    border: none;
    border-radius: var(--adm-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(212, 85, 30, 0.25);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary-admin:hover {
    background: linear-gradient(135deg, var(--adm-saffron-hover), var(--adm-saffron));
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(212, 85, 30, 0.35);
}

.btn-secondary-admin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #FFFFFF;
    color: var(--adm-maroon);
    border: 1px solid var(--adm-card-border);
    border-radius: var(--adm-radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary-admin:hover {
    background: #F7F3EB;
    border-color: var(--adm-gold);
}

.btn-danger-admin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--adm-danger);
    color: #FFFFFF;
    border: none;
    border-radius: var(--adm-radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-danger-admin:hover {
    background: #A71D2A;
}

/* Stats Counter Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--adm-surface);
    border-radius: var(--adm-radius);
    padding: 22px;
    border: 1px solid var(--adm-card-border);
    box-shadow: var(--adm-shadow);
    display: flex;
    gap: 16px;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--adm-shadow-md);
    border-color: var(--adm-gold);
}

.stat-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.icon-slider {
    background: #FFF0EB;
    border: 1px solid #FFD3C4;
}

.icon-festivals {
    background: #FFF8E7;
    border: 1px solid #FFE7B3;
}

.icon-gallery {
    background: #F0F7FF;
    border: 1px solid #CFE2FF;
}

.icon-trust {
    background: #FBF0F0;
    border: 1px solid #F3D5D5;
}

.stat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--adm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.stat-numbers {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}

.stat-count {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 700;
    color: var(--adm-maroon);
    line-height: 1;
}

.stat-active-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
    background: var(--adm-success-bg);
    color: var(--adm-success);
    border: 1px solid rgba(30, 126, 52, 0.2);
}

.stat-sub {
    font-size: 13px;
    font-weight: 600;
    color: var(--adm-gold);
}

.stat-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--adm-saffron);
    text-decoration: none;
    margin-top: auto;
    transition: color 0.2s;
}

.stat-link:hover {
    color: var(--adm-saffron-hover);
    text-decoration: underline;
}

/* Dashboard Activity Grid */
.dashboard-activity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

.dashboard-panel {
    background: var(--adm-surface);
    border-radius: var(--adm-radius);
    border: 1px solid var(--adm-card-border);
    box-shadow: var(--adm-shadow);
    overflow: hidden;
}

.panel-header {
    padding: 18px 22px;
    background: #FAF7F2;
    border-bottom: 1px solid var(--adm-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--adm-maroon);
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--adm-saffron);
    text-decoration: none;
    transition: color 0.2s;
}

.panel-more:hover {
    text-decoration: underline;
}

.panel-body {
    padding: 16px 20px;
}

/* ==========================================================================
   5. TABLES & DATA LISTS
   ========================================================================== */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
}

.admin-table th {
    background: #F8F5EE;
    color: var(--adm-text-main);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 12px 16px;
    border-bottom: 1.5px solid var(--adm-card-border);
    white-space: nowrap;
}

.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #EFEAE0;
    font-size: 14px;
    vertical-align: middle;
}

.admin-table tbody tr:hover td {
    background: #FAF7F0;
}

.admin-thumb {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--adm-border);
    background: #EEE;
    display: block;
}

.slide-meta {
    display: flex;
    flex-direction: column;
}

.slide-title {
    font-weight: 600;
    color: var(--adm-maroon);
    font-size: 14px;
}

.slide-sub {
    font-size: 12px;
    color: var(--adm-text-muted);
}

.slide-link {
    font-size: 11px;
    color: var(--adm-saffron);
    font-family: monospace;
}

/* Badges */
.badge-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-active {
    background: var(--adm-success-bg);
    color: var(--adm-success);
    border: 1px solid rgba(30, 126, 52, 0.25);
}

.badge-inactive {
    background: #F8F9FA;
    color: #6C757D;
    border: 1px solid #CED4DA;
}

.badge-category {
    background: #FFF2EB;
    color: var(--adm-saffron);
    border: 1px solid rgba(212, 85, 30, 0.25);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: capitalize;
}

/* Action Buttons */
.admin-table-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-action-edit {
    background: #EBF3FF;
    color: #0D6EFD;
    border-color: #B6D4FE;
}

.btn-action-edit:hover {
    background: #0D6EFD;
    color: #FFFFFF;
}

.btn-action-delete {
    background: #FDF2F2;
    color: var(--adm-danger);
    border-color: #F8D7DA;
}

.btn-action-delete:hover {
    background: var(--adm-danger);
    color: #FFFFFF;
}

.btn-action-toggle {
    background: #F0FFF4;
    color: var(--adm-success);
    border-color: #C3E6CB;
}

.btn-action-toggle:hover {
    background: var(--adm-success);
    color: #FFFFFF;
}

/* ==========================================================================
   6. FORMS & INPUTS
   ========================================================================== */
.admin-card {
    background: var(--adm-surface);
    border-radius: var(--adm-radius);
    border: 1px solid var(--adm-card-border);
    box-shadow: var(--adm-shadow);
    padding: 30px 34px;
    margin-bottom: 30px;
    box-sizing: border-box;
}

.card-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    margin-bottom: 24px;
    border-bottom: 1.5px solid #F0EAE1;
}

.card-title-bar h2 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--adm-maroon);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.form-grid-full {
    grid-column: 1 / -1;
}

.form-help {
    font-size: 12px;
    color: var(--adm-text-muted);
    margin-top: 5px;
}

/* File Upload & Preview */
.upload-dropzone {
    border: 2px dashed var(--adm-gold);
    background: #FCFAF6;
    border-radius: var(--adm-radius-sm);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
}

.upload-dropzone:hover {
    background: #FDF7EC;
    border-color: var(--adm-saffron);
}

.upload-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.dropzone-icon {
    font-size: 32px;
    margin-bottom: 8px;
    display: block;
}

.dropzone-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--adm-maroon);
}

.dropzone-sub {
    font-size: 12px;
    color: var(--adm-text-muted);
}

.image-preview-container {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.image-preview-thumb {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--adm-gold);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    cursor: pointer;
    user-select: none;
}

.checkbox-wrap input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--adm-saffron);
    cursor: pointer;
}

.form-actions-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--adm-border);
}

/* ==========================================================================
   7. GALLERY SPECIFIC ADMIN STYLES
   ========================================================================== */
.gallery-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.filter-pill {
    padding: 8px 18px;
    border-radius: 50px;
    background: #FFFFFF;
    border: 1px solid var(--adm-card-border);
    color: var(--adm-text-main);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.filter-pill:hover {
    border-color: var(--adm-gold);
    background: #FAF7F0;
    transform: translateY(-1px);
}

.filter-pill.active {
    background: var(--adm-maroon);
    color: #FFFFFF;
    border-color: var(--adm-maroon);
    box-shadow: 0 3px 10px rgba(56, 14, 14, 0.25);
}

.gallery-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 24px;
}

.gallery-admin-card {
    background: var(--adm-surface);
    border-radius: var(--adm-radius-sm);
    border: 1px solid var(--adm-card-border);
    overflow: hidden;
    box-shadow: var(--adm-shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-admin-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--adm-shadow-md);
}

.gallery-admin-media {
    position: relative;
    padding-top: 66.66%;
    background: #EAE5DB;
    overflow: hidden;
}

.gallery-admin-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-admin-card:hover .gallery-admin-media img {
    transform: scale(1.05);
}

.gallery-admin-cat {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(36, 7, 7, 0.85);
    color: var(--adm-gold);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.gallery-admin-info {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gallery-admin-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--adm-maroon);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-admin-caption {
    font-size: 12px;
    color: var(--adm-text-muted);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-admin-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #F0ECE4;
}

/* ==========================================================================
   8. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
    .dashboard-activity-grid {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 10px 0 30px rgba(0,0,0,0.3);
    }

    .admin-sidebar.show {
        left: 0;
    }

    .sidebar-toggle {
        display: flex;
    }

    .admin-container {
        padding: 20px 16px;
    }
}

@media (max-width: 576px) {
    .login-card {
        padding: 30px 20px;
    }

    .topbar-breadcrumb .breadcrumb-root,
    .topbar-breadcrumb .breadcrumb-sep {
        display: none;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-actions {
        width: 100%;
    }

    .dashboard-actions .btn-primary-admin {
        flex: 1;
        justify-content: center;
    }
}
