/* ==========================================================================
   MEDHOPE Academy – Admin Portal Stylesheet
   Modern Dark & Gold Aesthetics with Glassmorphism
   ========================================================================== */

:root {
    --bg-main: #070c18;
    --bg-card: rgba(15, 23, 42, 0.75);
    --bg-panel: #0d1527;
    --bg-hover: rgba(255, 255, 255, 0.05);
    
    --gold: #f59e0b;
    --gold-light: #fbbf24;
    --gold-glow: rgba(245, 158, 11, 0.25);
    
    --blue: #38bdf8;
    --blue-glow: rgba(56, 189, 248, 0.2);
    
    --green: #10b981;
    --red: #ef4444;
    --purple: #a855f7;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(245, 158, 11, 0.3);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 25px var(--gold-glow);
}

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

body.admin-body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-main);
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(245, 158, 11, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(56, 189, 248, 0.04) 0%, transparent 40%);
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

/* ==========================================================================
   LOGIN SECTION
   ========================================================================== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), var(--shadow-glow);
    border: 1px solid var(--border-gold);
    animation: fadeInScale 0.4s ease-out;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.brand-logo img {
    height: 42px;
    width: auto;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.brand-text .med { color: var(--gold); }
.brand-text .hope { color: #ffffff; }

.login-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.35rem;
}

.login-header p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(10, 16, 30, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
    background: rgba(15, 23, 42, 0.95);
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 2.75rem;
}

.password-wrapper .btn-icon {
    position: absolute;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
}

.password-wrapper .btn-icon:hover {
    color: var(--text-main);
}

.login-helper {
    text-align: center;
    margin-top: 0.5rem;
}

.chip-hint {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.chip-hint code {
    color: var(--gold-light);
    font-family: var(--font-mono);
}

.alert-box {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-box.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.7rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-block { width: 100%; }

.btn-gold {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #0b1120;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
    transform: translateY(-1px);
}

.btn-outline-gold {
    background: transparent;
    border: 1px solid var(--border-gold);
    color: var(--gold-light);
}

.btn-outline-gold:hover {
    background: rgba(245, 158, 11, 0.1);
    color: #ffffff;
}

.btn-outline-blue {
    background: transparent;
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
}

.btn-outline-blue:hover {
    background: rgba(56, 189, 248, 0.15);
    color: #ffffff;
}

.btn-outline-light {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

.btn-outline-light:hover {
    background: var(--bg-hover);
    color: var(--text-main);
}

.btn-outline-danger {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.btn-outline-danger:hover {
    background: rgba(239, 68, 68, 0.15);
}

.btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
}

.btn-icon-link {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-icon-link:hover {
    background: var(--bg-hover);
    color: var(--text-main);
    border-color: var(--text-muted);
}

.btn-icon-link.logout:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: #ef4444;
}

/* ==========================================================================
   DASHBOARD LAYOUT
   ========================================================================== */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: 260px;
    background: var(--bg-panel);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    transition: transform 0.3s ease;
}

.sidebar-brand {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-brand .brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.sidebar-brand img {
    height: 34px;
}

.brand-title {
    font-size: 1.15rem;
    font-weight: 800;
}

.brand-title .med { color: var(--gold); }
.brand-title .hope { color: #ffffff; }

.badge-admin {
    display: inline-block;
    background: rgba(245, 158, 11, 0.15);
    color: var(--gold-light);
    border: 1px solid var(--border-gold);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius-sm);
    margin-left: 0.25rem;
}

.sidebar-nav {
    flex: 1;
    padding: 1.25rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    overflow-y: auto;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    width: 100%;
}

.nav-tab i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.nav-tab:hover {
    background: var(--bg-hover);
    color: var(--text-main);
}

.nav-tab.active {
    background: rgba(245, 158, 11, 0.15);
    color: var(--gold-light);
    font-weight: 600;
    border: 1px solid var(--border-gold);
}

.count-pill {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
}

.count-pill.enq-pill {
    background: rgba(16, 185, 129, 0.2);
    color: var(--green);
}

.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(5, 9, 18, 0.6);
}

.user-meta {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    overflow: hidden;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gold-glow);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.user-info {
    overflow: hidden;
}

.user-info strong {
    display: block;
    font-size: 0.8rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.online-status {
    font-size: 0.7rem;
    color: var(--green);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.online-status .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 6px var(--green);
}

.sidebar-actions {
    display: flex;
    gap: 0.35rem;
}

/* ==========================================================================
   MAIN CONTENT
   ========================================================================== */
.admin-main {
    flex: 1;
    margin-left: 260px;
    padding: 2rem 2.5rem;
    min-height: 100vh;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.topbar-left h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-main);
}

.topbar-left p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-only {
    display: none;
}

/* Tab Panes */
.tab-pane {
    display: none;
    animation: fadeIn 0.25s ease-out;
}

.tab-pane.active {
    display: block;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.icon-gold { background: rgba(245, 158, 11, 0.15); color: var(--gold); border: 1px solid var(--border-gold); }
.icon-blue { background: rgba(56, 189, 248, 0.15); color: var(--blue); border: 1px solid rgba(56, 189, 248, 0.3); }
.icon-green { background: rgba(16, 185, 129, 0.15); color: var(--green); border: 1px solid rgba(16, 185, 129, 0.3); }
.icon-purple { background: rgba(168, 85, 247, 0.15); color: var(--purple); border: 1px solid rgba(168, 85, 247, 0.3); }

.stat-content .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-content h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
    margin: 0.2rem 0;
}

.stat-content .stat-sub {
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* Panels */
.content-panel {
    padding: 1.75rem;
    margin-bottom: 2rem;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.panel-header h2, .panel-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.panel-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* Visibility Toggle Switch Cards in Headers */
.toggle-switch-card {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.toggle-switch-card:hover {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(15, 23, 42, 0.85);
}

.toggle-meta {
    display: flex;
    flex-direction: column;
    text-align: right;
    line-height: 1.2;
}

.toggle-meta strong {
    font-size: 0.82rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
}

.toggle-meta small {
    font-size: 0.7rem;
    color: var(--text-dim);
}

.toggle-switch-card input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: #334155;
    border-radius: 9999px;
    transition: background 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.toggle-switch-card input[type="checkbox"]:checked + .toggle-slider {
    background: #10b981;
}

.toggle-switch-card input[type="checkbox"]:checked + .toggle-slider::after {
    transform: translateX(20px);
}

.dashboard-sections-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Filter & Search Bar */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.search-input {
    position: relative;
    width: 320px;
}

.search-input i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    font-size: 0.85rem;
}

.search-input input {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.5rem;
    background: rgba(10, 16, 30, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 0.875rem;
}

.search-input input:focus {
    outline: none;
    border-color: var(--gold);
}

/* Place Banner */
.place-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.place-banner-icon {
    font-size: 1.5rem;
    color: #38bdf8;
}

.place-banner-text {
    flex: 1;
}

.place-banner-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #e0f2fe;
}

.place-banner-text p {
    font-size: 0.8rem;
    color: #93c5fd;
    margin-top: 0.15rem;
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.admin-table th {
    text-align: left;
    padding: 0.85rem 1rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

.admin-table tbody tr {
    transition: background 0.15s;
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.batch-title-cell strong {
    display: block;
    color: var(--text-main);
    font-size: 0.95rem;
}

.batch-title-cell span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.success { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.status-badge.warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.status-badge.info { background: rgba(56, 189, 248, 0.15); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.3); }
.status-badge.neutral { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.3); }

.action-btns {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
}

.btn-action {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-action * {
    pointer-events: none;
}

.btn-action:hover {
    background: var(--bg-hover);
    color: var(--text-main);
    border-color: var(--text-muted);
}

.btn-action.delete:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: #ef4444;
}

/* Star Ratings */
.stars-display {
    color: #fbbf24;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.verified-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #38bdf8;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Mini Previews */
.mini-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mini-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    background: rgba(10, 16, 30, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.mini-item-content h4 {
    font-size: 0.9rem;
    color: var(--text-main);
}

.mini-item-content p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

/* Settings Form Grid */
.settings-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.settings-card {
    background: rgba(10, 16, 30, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.settings-card.full-width {
    grid-column: 1 / -1;
    background: transparent;
    border: none;
    padding: 0;
}

.settings-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
}

.settings-card small {
    color: var(--text-dim);
    font-size: 0.75rem;
}

/* ==========================================================================
   MODALS
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 1.5rem;
    animation: fadeIn 0.2s ease-out;
}

.modal-card {
    width: 100%;
    max-width: 580px;
    padding: 2rem;
    border: 1px solid var(--border-gold);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), var(--shadow-glow);
    animation: slideUp 0.25s ease-out;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.btn-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.75rem;
    cursor: pointer;
    line-height: 1;
}

.btn-close:hover {
    color: var(--text-main);
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    background: #0f172a;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    min-width: 280px;
    animation: slideLeft 0.3s ease-out;
}

.toast.success { border-left: 4px solid var(--green); }
.toast.info { border-left: 4px solid var(--blue); }
.toast.error { border-left: 4px solid var(--red); }

/* Keyframe Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideLeft {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.text-gold { color: var(--gold); }
.text-blue { color: var(--blue); }

.icon-amber {
    background: rgba(245, 158, 11, 0.15);
    color: var(--gold);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Dropzone and Photo Previews */
.dropzone-area {
    border: 2px dashed rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.6);
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    outline: none;
}

.dropzone-area:hover,
.dropzone-area:focus,
.dropzone-area.dragover {
    border-color: var(--gold);
    background: rgba(245, 158, 11, 0.08);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.dropzone-icon {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--gold);
}

.dropzone-text {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.dropzone-hint {
    color: var(--text-dim);
    font-size: 0.8rem;
}

.photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 0.75rem;
}

.photo-thumb-card {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #0b1220;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.photo-thumb-card:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
}

.photo-thumb-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-thumb-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.photo-thumb-remove:hover {
    background: #dc2626;
    transform: scale(1.15);
}

/* Table Achiever Avatar Stack */
.achiever-photos-cell {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.achiever-avatar-stack {
    display: inline-flex;
    align-items: center;
}

.achiever-thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid rgba(245, 158, 11, 0.4);
    background: #070c18;
    margin-left: -12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease, z-index 0.2s ease;
}

.achiever-thumb:first-child {
    margin-left: 0;
}

.achiever-thumb:hover {
    transform: scale(1.2) translateY(-2px);
    z-index: 5;
    border-color: var(--gold);
}

.achiever-photo-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.2);
    color: var(--gold);
    border: 1px solid rgba(245, 158, 11, 0.3);
    margin-left: 0.35rem;
}

.no-photos-pill {
    font-size: 0.75rem;
    color: var(--text-dim);
    font-style: italic;
}

.achiever-name-cell strong {
    display: block;
    color: #ffffff;
    font-size: 0.95rem;
}

.achiever-name-cell span {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.icon-amber {
    background: rgba(245, 158, 11, 0.15);
    color: var(--gold);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Dropzone and Photo Previews */
.dropzone-area {
    border: 2px dashed rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.6);
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    outline: none;
}

.dropzone-area:hover,
.dropzone-area:focus,
.dropzone-area.dragover {
    border-color: var(--gold);
    background: rgba(245, 158, 11, 0.08);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.dropzone-icon {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--gold);
}

.dropzone-text {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.dropzone-hint {
    color: var(--text-dim);
    font-size: 0.8rem;
}

.photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 0.75rem;
}

.photo-thumb-card {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #0b1220;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.photo-thumb-card:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
}

.photo-thumb-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-thumb-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    z-index: 3;
}

.photo-thumb-remove:hover {
    background: #dc2626;
    transform: scale(1.15);
}

.photo-thumb-crop {
    position: absolute;
    bottom: 4px;
    left: 4px;
    right: 4px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.85);
    color: var(--gold);
    border: 1px solid rgba(245, 158, 11, 0.4);
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    z-index: 3;
}

.photo-thumb-crop:hover {
    background: var(--gold);
    color: #000000;
    border-color: var(--gold);
}

/* Cropper Modal Controls */
.aspect-btn.active {
    background: var(--gold);
    color: #070c18;
    border-color: var(--gold);
    font-weight: 700;
}

.cropper-container-wrapper {
    position: relative;
    width: 100%;
    min-height: 280px;
}

.cropper-view-box,
.cropper-face {
    border-radius: 4px;
}

/* Table Achiever Avatar Stack */
.achiever-photos-cell {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.achiever-avatar-stack {
    display: inline-flex;
    align-items: center;
}

.achiever-thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid rgba(245, 158, 11, 0.4);
    background: #070c18;
    margin-left: -12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease, z-index 0.2s ease;
}

.achiever-thumb:first-child {
    margin-left: 0;
}

.achiever-thumb:hover {
    transform: scale(1.2) translateY(-2px);
    z-index: 5;
    border-color: var(--gold);
}

.achiever-photo-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.2);
    color: var(--gold);
    border: 1px solid rgba(245, 158, 11, 0.3);
    margin-left: 0.35rem;
}

.no-photos-pill {
    font-size: 0.75rem;
    color: var(--text-dim);
    font-style: italic;
}

.achiever-name-cell strong {
    display: block;
    color: #ffffff;
    font-size: 0.95rem;
}

.achiever-name-cell span {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .dashboard-sections-grid, .settings-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.open {
        transform: translateX(0);
    }
    .admin-main {
        margin-left: 0;
        padding: 1.25rem;
    }
    .mobile-only {
        display: inline-flex;
    }
    .form-row {
        flex-direction: column;
    }
}
