/* ══════════════════════════════════════════════════════════════
   MOZHII.AI — Admin Panel Styles  (Premium Redesign)
   ══════════════════════════════════════════════════════════════ */

/* ── Login Screen ──────────────────────────────────────────── */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--bg);
}

.login-screen::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.12), transparent 70%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
    pointer-events: none;
}

.login-screen::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(11, 3, 119, 0.1), transparent 70%);
    bottom: -150px;
    left: -150px;
    border-radius: 50%;
    pointer-events: none;
}

.login-bg {
    position: absolute;
    inset: 0;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 52px 48px;
    width: 420px;
    max-width: 90vw;
    text-align: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.15), 0 0 0 1px var(--border);
    backdrop-filter: blur(16px);
}

[data-theme="dark"] .login-card {
    background: rgba(15, 15, 25, 0.85);
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
}

.login-card h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 26px;
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--text), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 32px;
}

.login-card .input-wrapper {
    margin-bottom: 0;
}

.login-card .input-wrapper input {
    transition: border-color 0.3s, box-shadow 0.3s;
}

.login-card .input-wrapper input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.12);
}

.login-card .btn {
    margin-top: 8px;
    font-size: 15px;
    padding: 14px;
    border-radius: 14px;
    letter-spacing: 0.3px;
}

.login-error {
    color: var(--danger);
    font-size: 13px;
    margin-top: 14px;
    text-align: left;
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-error::before {
    content: '\f071';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 13px;
    transition: color 0.3s;
}

.back-link:hover { color: var(--accent); }

/* ── Admin Layout ──────────────────────────────────────────── */
.admin-panel {
    display: flex;
    min-height: 100vh;
    background: var(--bg);
}

/* Sidebar */
.admin-sidebar {
    width: 272px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .admin-sidebar {
    background: rgba(10, 10, 20, 0.95);
    border-right-color: rgba(255, 255, 255, 0.06);
}

.sidebar-header {
    padding: 24px 24px 20px;
    border-bottom: 1px solid var(--border);
}

.sidebar-header .logo-text {
    font-size: 18px;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
}

.sidebar-section-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    padding: 16px 16px 6px;
    opacity: 0.7;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-radius: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
}

.sidebar-link:hover {
    background: var(--bg-card-hover);
    color: var(--text);
    transform: translateX(2px);
}

.sidebar-link.active {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.12), rgba(11, 3, 119, 0.08));
    color: var(--accent);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--accent);
}

[data-theme="dark"] .sidebar-link.active {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.15), rgba(11, 3, 119, 0.1));
}

.sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 15px;
}

.sidebar-badge {
    margin-left: auto;
    background: var(--accent);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    line-height: 1.4;
}

.sidebar-badge:empty { display: none; }

.sidebar-footer {
    padding: 16px 18px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.admin-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    color: white;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.25);
}

.admin-user-detail {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

#adminUsername {
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.sidebar-footer-actions {
    display: flex;
    gap: 8px;
}

.sidebar-footer .theme-toggle,
.logout-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--input-bg);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    flex-shrink: 0;
    font-size: 14px;
}

.sidebar-footer .theme-toggle:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: scale(1.05);
}

.logout-btn:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
    transform: scale(1.05);
}

/* Main Content */
.admin-main {
    flex: 1;
    margin-left: 272px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 36px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    gap: 16px;
}

[data-theme="dark"] .admin-header {
    background: rgba(0, 0, 0, 0.75);
}

.admin-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.admin-header-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin: 2px 0 0;
}

.admin-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.admin-search-box {
    position: relative;
}

.admin-search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
}

.admin-search-box input {
    padding: 9px 14px 9px 36px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 13px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    width: 220px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s, width 0.3s;
}

.admin-search-box input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
    width: 280px;
}

.mobile-sidebar-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--input-bg);
    color: var(--text);
    cursor: pointer;
    font-size: 16px;
    transition: all 0.25s;
}

.mobile-sidebar-toggle:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.admin-view {
    display: none;
    padding: 36px;
    animation: viewFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-view.active { display: block; }

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

/* ── Stats Cards ───────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    opacity: 0.06;
    transform: translate(30px, -30px);
    pointer-events: none;
}

.stat-pending::before  { background: #F59E0B; }
.stat-approved::before { background: #10B981; }
.stat-rejected::before { background: #EF4444; }
.stat-total::before    { background: var(--accent); }

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.stat-pending:hover  { box-shadow: 0 12px 32px rgba(245, 158, 11, 0.12); }
.stat-approved:hover { box-shadow: 0 12px 32px rgba(16, 185, 129, 0.12); }
.stat-rejected:hover { box-shadow: 0 12px 32px rgba(239, 68, 68, 0.12); }
.stat-total:hover    { box-shadow: 0 12px 32px rgba(108, 99, 255, 0.12); }

.stat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.stat-pending .stat-card-icon  { background: rgba(245, 158, 11, 0.12); color: #F59E0B; }
.stat-approved .stat-card-icon { background: rgba(16, 185, 129, 0.12); color: #10B981; }
.stat-rejected .stat-card-icon { background: rgba(239, 68, 68, 0.12); color: #EF4444; }
.stat-total .stat-card-icon    { background: rgba(108, 99, 255, 0.12); color: var(--accent); }

.stat-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-card-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    order: -1;
}

.stat-card-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 32px;
    font-weight: 700;
    display: block;
    letter-spacing: -0.5px;
}

.stat-card-trend {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.7;
}

/* ── Dashboard Grid ────────────────────────────────────────── */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
}

/* ── Language Breakdown ────────────────────────────────────── */
.lang-breakdown,
.quick-actions-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
    transition: box-shadow 0.3s;
}

.lang-breakdown:hover,
.quick-actions-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.card-header-row {
    margin-bottom: 22px;
}

.card-header-row h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header-row h3 i {
    color: var(--accent);
    font-size: 15px;
}

.lang-bars {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.lang-bar-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lang-bar-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
}

.lang-bar-label span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.tamil-dot   { background: #F59E0B; }
.sinhala-dot { background: #10B981; }
.english-dot { background: var(--accent); }

.lang-count {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--text);
}

.lang-bar-track {
    height: 8px;
    background: var(--input-bg);
    border-radius: 4px;
    overflow: hidden;
}

.lang-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-bar-fill.tamil   { background: linear-gradient(90deg, #F59E0B, #FBBF24); }
.lang-bar-fill.sinhala  { background: linear-gradient(90deg, #10B981, #34D399); }
.lang-bar-fill.english  { background: linear-gradient(90deg, var(--primary), var(--accent)); }

/* ── Quick Actions ─────────────────────────────────────────── */
.quick-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 22px 12px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-action-btn i {
    font-size: 22px;
    color: var(--accent);
    transition: transform 0.3s;
}

.quick-action-btn:hover {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.08), rgba(11, 3, 119, 0.05));
    border-color: var(--accent);
    color: var(--text);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.1);
}

.quick-action-btn:hover i {
    transform: scale(1.15);
}

/* ── Filter Bar ────────────────────────────────────────────── */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-select,
.filter-input {
    padding: 9px 14px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 13px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.filter-select:focus,
.filter-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.08);
}

.search-wrapper {
    position: relative;
}

.search-wrapper i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
}

.search-input {
    padding-left: 34px !important;
    min-width: 200px;
}

/* ── Table ─────────────────────────────────────────────────── */
.submissions-table-wrap {
    overflow-x: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.submissions-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.submissions-table th {
    text-align: left;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    background: var(--input-bg);
}

.submissions-table th:first-child {
    border-radius: 14px 0 0 0;
}

.submissions-table th:last-child {
    border-radius: 0 14px 0 0;
}

.submissions-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.submissions-table tbody tr {
    transition: background 0.2s;
}

.submissions-table tbody tr:hover td {
    background: var(--bg-card-hover);
}

.submissions-table tbody tr:last-child td {
    border-bottom: none;
}

.status-badge {
    display: inline-flex;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.status-PENDING  { background: rgba(245, 158, 11, 0.1); color: #F59E0B; }
.status-APPROVED { background: rgba(16, 185, 129, 0.1); color: #10B981; }
.status-REJECTED { background: rgba(239, 68, 68, 0.1);  color: #EF4444; }

.lang-badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

.lang-badge.tamil   { background: rgba(245, 158, 11, 0.1); color: #F59E0B; }
.lang-badge.sinhala  { background: rgba(16, 185, 129, 0.1); color: #10B981; }
.lang-badge.english  { background: rgba(108, 99, 255, 0.1); color: var(--accent); }

/* Default if no lang class */
.lang-badge:not(.tamil):not(.sinhala):not(.english) {
    background: rgba(108, 99, 255, 0.08);
    color: var(--accent);
}

.action-btns {
    display: flex;
    gap: 6px;
}

.action-btn {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--input-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-secondary);
}

.action-btn:hover { transform: scale(1.1); }
.action-btn.view:hover    { background: var(--accent); color: white; border-color: var(--accent); box-shadow: 0 4px 12px rgba(108, 99, 255, 0.25); }
.action-btn.approve:hover { background: #10B981; color: white; border-color: #10B981; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25); }
.action-btn.reject:hover  { background: #EF4444; color: white; border-color: #EF4444; box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25); }

/* ── Pagination ────────────────────────────────────────────── */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}

.page-btn {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.25s;
    font-family: 'Inter', sans-serif;
}

.page-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

.page-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.25);
}

/* ── Modal ─────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 22px;
    width: 660px;
    max-width: 95vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.92) translateY(16px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .modal-card {
    background: rgba(15, 15, 28, 0.95);
}

.modal-overlay.active .modal-card {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h2 i {
    color: var(--accent);
}

.modal-close {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--input-bg);
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px 28px;
    overflow-y: auto;
    flex: 1;
}

.detail-row {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 14px;
    align-items: baseline;
}

.detail-label {
    font-weight: 600;
    min-width: 120px;
    color: var(--text-muted);
    font-size: 13px;
}

.detail-value {
    flex: 1;
    word-break: break-word;
}

.detail-section {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.detail-section h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    margin-bottom: 12px;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
}

.flag-badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    margin: 2px;
    letter-spacing: 0.3px;
}

.flag-pii       { background: rgba(239, 68, 68, 0.1);  color: #EF4444; }
.flag-profanity { background: rgba(245, 158, 11, 0.1); color: #F59E0B; }
.flag-duplicate { background: rgba(139, 92, 246, 0.1); color: #8B5CF6; }
.flag-clean     { background: rgba(16, 185, 129, 0.1); color: #10B981; }

.text-preview {
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    font-size: 13px;
    line-height: 1.8;
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: 'Inter', sans-serif;
}

.modal-footer {
    padding: 20px 28px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.modal-footer .btn {
    flex: 1;
    justify-content: center;
    border-radius: 12px;
}

.reason-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 13px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    margin-bottom: 12px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.reason-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.08);
}

/* ── Feedbacks ─────────────────────────────────────────────── */
.feedbacks-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 16px;
}

.feedback-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    transition: all 0.3s;
    position: relative;
}

.feedback-card::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 18px;
    right: 20px;
    font-size: 28px;
    opacity: 0.04;
    color: var(--accent);
}

.feedback-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border-color: rgba(108, 99, 255, 0.15);
}

.feedback-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
}

.feedback-card-header .name {
    font-weight: 700;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 6px;
}

.feedback-card-header .name::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-block;
}

.feedback-card-header .date {
    color: var(--text-muted);
    font-size: 12px;
}

.feedback-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ── Settings ──────────────────────────────────────────────── */
.settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 36px;
    max-width: 620px;
    transition: box-shadow 0.3s;
}

.settings-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.settings-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.settings-card h3 i {
    color: var(--accent);
}

.settings-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.settings-card .btn {
    margin-top: 8px;
    border-radius: 12px;
}

/* ── Audit ─────────────────────────────────────────────────── */
.audit-action {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.audit-APPROVED { background: rgba(16, 185, 129, 0.1); color: #10B981; }
.audit-REJECTED { background: rgba(239, 68, 68, 0.1);  color: #EF4444; }

/* ── Empty States ──────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 15px;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.open {
        transform: translateX(0);
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.2);
    }

    .admin-main {
        margin-left: 0;
    }

    .mobile-sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

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

    .admin-header-subtitle {
        display: none;
    }

    .admin-search-box {
        display: none;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group { width: 100%; }
    .search-input { min-width: 0 !important; flex: 1; }

    .admin-view { padding: 20px; }

    .modal-footer {
        flex-direction: column;
    }

    .feedbacks-list {
        grid-template-columns: 1fr;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .login-card {
        padding: 36px 28px;
    }
}

/* ── Settings Grid ─────────────────────────────────────────── */
.settings-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.settings-card {
    max-width: 100%;
}

/* ── HF Config ─────────────────────────────────────────────── */
.hf-card {
    border-left: 3px solid var(--accent);
}

.hf-status {
    margin-top: 12px;
}

.hf-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.hf-ok {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.hf-warn {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
}

.hf-none {
    background: rgba(108, 99, 255, 0.08);
    color: var(--text-muted);
}

.hf-repos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
}

.hf-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.input-hint {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Category dots */
.cat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
}
.cat-raw_text { background: var(--accent); }
.cat-images   { background: #F59E0B; }
.cat-pdf      { background: #EF4444; }
.cat-scan_pdf { background: #8B5CF6; }
.cat-zip      { background: #10B981; }

/* ── Category Selector (Modal) ─────────────────────────────── */
.category-selector {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--input-bg);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: all 0.25s;
}

.cat-btn i { font-size: 13px; }

.cat-btn:hover {
    border-color: var(--accent);
    color: var(--text);
}

.cat-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.2);
}

/* ── Storage Info ──────────────────────────────────────────── */
.storage-card {
    border-left: 3px solid #F59E0B;
}

.storage-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.storage-stat {
    text-align: center;
    padding: 18px 12px;
    background: var(--input-bg);
    border-radius: 14px;
    border: 1px solid var(--border);
}

.storage-stat-number {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.storage-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.storage-note {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.12);
    border-radius: 10px;
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.storage-note i {
    color: #F59E0B;
}

@media (max-width: 768px) {
    .hf-repos-grid {
        grid-template-columns: 1fr;
    }
    .storage-stats {
        grid-template-columns: 1fr;
    }
    .hf-actions {
        flex-direction: column;
    }
    .category-selector {
        gap: 4px;
    }
    .cat-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
}