/* ==========================================================================
   VK Digital - Admin Dashboard Stylesheet
   File: admin.css
   Modern, Dark SaaS Dashboard UI with Pixel-Perfect Alignment
   ========================================================================== */

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #f59e0b;
    --accent: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    
    --bg-darkest: #070b14;
    --bg-main: #0b1120;
    --bg-sidebar: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #24344d;
    --bg-input: #0a0f1d;
    --border-color: #334155;
    --border-light: rgba(255, 255, 255, 0.08);
    
    --text-main: #f8fafc;
    --text-sub: #94a3b8;
    --text-muted: #64748b;

    --font: 'Inter', 'Noto Sans Tamil', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 9999px;
    --transition: all 0.2s ease-in-out;
}

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

html, body {
    width: 100%;
    min-height: 100vh;
    font-family: var(--font);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   1. ADMIN MAIN APP LAYOUT
   ========================================================================== */
.admin-app {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 50;
}

.sidebar-header {
    padding: 22px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-logo {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-brand h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.badge-role {
    font-size: 0.72rem;
    color: #34d399;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-weight: 700;
    display: inline-block;
    width: fit-content;
}

.sidebar-nav {
    padding: 18px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-sub);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.nav-icon {
    font-size: 1.15rem;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-label {
    flex: 1;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    transform: translateX(3px);
}

.nav-btn.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
    font-weight: 700;
}

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

.btn-preview-site {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-sub);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-preview-site:hover {
    background: rgba(37, 99, 235, 0.15);
    border-color: #3b82f6;
    color: #ffffff;
}

/* ==========================================================================
   2. MAIN CONTENT AREA & HEADER
   ========================================================================== */
.main-content {
    flex: 1;
    background-color: var(--bg-main);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    min-width: 0;
}

/* Top Bar */
.top-bar {
    padding: 20px 32px;
    background-color: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 40;
}

.top-bar-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.top-bar-left h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.top-bar-left p {
    color: var(--text-sub);
    font-size: 0.85rem;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 14px 6px 6px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
}

.profile-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.profile-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.profile-info strong {
    font-size: 0.85rem;
    color: #ffffff;
}

.status-online {
    font-size: 0.72rem;
    color: #34d399;
    font-weight: 600;
}

/* ==========================================================================
   3. TAB PANES & CONTAINERS
   ========================================================================== */
.tab-pane {
    padding: 32px;
    display: none;
    flex-direction: column;
    gap: 24px;
    animation: fadeInTab 0.25s ease-out;
}

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

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

/* Panel Card */
.panel-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 26px;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.panel-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 14px;
}

.panel-header-simple {
    margin-bottom: 20px;
}

.panel-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}

.panel-desc {
    color: var(--text-sub);
    font-size: 0.88rem;
}

.max-w-700 {
    max-width: 720px;
}

/* ==========================================================================
   4. BUTTONS & CONTROLS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    line-height: 1.3;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.75;
    cursor: wait !important;
    pointer-events: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-large {
    width: 100%;
    padding: 13px 20px;
    font-size: 0.98rem;
    margin-top: 10px;
    border-radius: var(--radius-md);
}

.btn-sm {
    padding: 7px 13px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   5. STATS GRID (TAB 1)
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 22px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.stat-card:hover {
    border-color: rgba(96, 165, 250, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.stat-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-icon-wrap.blue { background: rgba(37, 99, 235, 0.18); border: 1px solid rgba(37, 99, 235, 0.3); }
.stat-icon-wrap.amber { background: rgba(245, 158, 11, 0.18); border: 1px solid rgba(245, 158, 11, 0.3); }
.stat-icon-wrap.cyan { background: rgba(6, 182, 212, 0.18); border: 1px solid rgba(6, 182, 212, 0.3); }
.stat-icon-wrap.green { background: rgba(16, 185, 129, 0.18); border: 1px solid rgba(16, 185, 129, 0.3); }

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

.stat-title {
    font-size: 0.8rem;
    color: var(--text-sub);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.stat-value {
    font-size: 1.65rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.stat-trend {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.stat-trend.positive {
    color: #34d399;
    font-weight: 600;
}

/* ==========================================================================
   6. OVERVIEW TWO-COLUMN GRID (TAB 1)
   ========================================================================== */
.content-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.quick-settings-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-row label,
.form-group label {
    font-size: 0.88rem;
    color: var(--text-sub);
    font-weight: 600;
    display: block;
}

.form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group input,
.form-row input,
.v-input,
.flex-input {
    width: 100%;
    height: 44px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0 14px;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-row input:focus,
.v-input:focus,
.flex-input:focus {
    border-color: #3b82f6;
    background-color: #0d1527;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.form-help {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 4px;
    display: block;
}

/* Status Checklist */
.status-checklist {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    transition: var(--transition);
}

.check-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(15, 23, 42, 0.8);
}

.check-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.check-dot.green {
    background-color: #10b981;
    box-shadow: 0 0 10px #10b981;
}

.check-content {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.check-content strong {
    color: #ffffff;
}

.check-content span {
    color: var(--text-sub);
}

/* ==========================================================================
   7. COURSE VIDEOS MANAGER (TAB 2)
   ========================================================================== */
.video-config-box {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px;
    margin-bottom: 26px;
}

.config-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.config-box-title {
    font-size: 1.05rem;
    color: #60a5fa;
    font-weight: 700;
    margin: 0;
}

.demo-url-group {
    margin-bottom: 0;
}

.url-input-group {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.url-input-group .flex-input {
    flex: 1;
}

.url-input-group .btn {
    height: 44px;
}

.admin-preview-container {
    margin-top: 18px;
}

.section-sub-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 28px 0 14px;
    flex-wrap: wrap;
    gap: 8px;
}

.sub-title {
    font-size: 1.12rem;
    font-weight: 700;
    color: #ffffff;
}

.sub-note {
    font-size: 0.8rem;
    color: #34d399;
}

/* 6 Videos Table Grid */
.videos-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
}

.videos-manage-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 840px;
}

.v-row {
    display: grid;
    grid-template-columns: 80px 180px 1fr 220px 95px;
    gap: 14px;
    align-items: center;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.v-row:hover:not(.head) {
    border-color: rgba(96, 165, 250, 0.3);
    background: rgba(15, 23, 42, 0.7);
}

.v-row.head {
    background: rgba(30, 41, 59, 0.85);
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--text-sub);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-color: rgba(255, 255, 255, 0.1);
    padding: 10px 16px;
}

.v-col-num, .v-num {
    text-align: center;
    font-weight: 800;
    color: #60a5fa;
    font-size: 0.88rem;
}

.v-col-status {
    text-align: center;
}

.v-input {
    height: 40px;
    padding: 0 12px;
    font-size: 0.9rem;
}

.v-status.locked {
    color: #f87171;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    padding: 6px 10px;
    border-radius: var(--radius-full);
    text-align: center;
    display: inline-block;
}

/* ==========================================================================
   8. PRICING & SETTINGS FORMS (TAB 3 & 5)
   ========================================================================== */
.admin-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
}

.admin-form .form-group {
    margin-bottom: 0;
}

/* ==========================================================================
   9. STUDENTS & ORDERS TABLE (TAB 4)
   ========================================================================== */
.orders-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
    min-width: 650px;
}

.orders-table th {
    padding: 14px 18px;
    background: rgba(15, 23, 42, 0.8);
    color: var(--text-sub);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.orders-table td {
    padding: 15px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    vertical-align: middle;
    white-space: nowrap;
}

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

.orders-table tbody tr {
    transition: var(--transition);
}

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

.amount-cell {
    color: #34d399;
    font-weight: 800;
}

.badge-status {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    display: inline-block;
}

.badge-status.paid {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-status.pending {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ==========================================================================
   10. TOAST NOTIFICATION
   ========================================================================== */
.admin-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #10b981;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 14px 22px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(16, 185, 129, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ==========================================================================
   11. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .admin-app {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .sidebar-header {
        padding: 12px 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
        padding: 10px 14px;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .sidebar-nav::-webkit-scrollbar {
        display: none;
    }

    .nav-btn {
        flex-shrink: 0;
        width: auto;
        min-height: 44px;
        padding: 8px 14px;
        font-size: 0.88rem;
    }

    .sidebar-footer {
        display: none;
    }

    .top-bar {
        padding: 14px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .top-bar-right {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        flex-wrap: wrap;
    }

    .tab-pane {
        padding: 16px 14px;
    }

    .table-container,
    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    input, select, textarea {
        font-size: 16px; /* Prevents auto zoom on mobile */
    }
}

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

    .panel-card {
        padding: 18px 14px;
    }

    .url-input-group {
        flex-direction: column;
        gap: 10px;
    }

    .url-input-group .btn {
        width: 100%;
        min-height: 44px;
    }

    .admin-login-screen {
        padding: 14px;
    }

    .admin-login-card {
        padding: 26px 18px;
        width: 100%;
        max-width: 100%;
    }

    .admin-login-header h2 {
        font-size: 1.25rem;
    }

    .admin-login-logo {
        width: 58px;
        height: 58px;
    }

    .password-input-wrapper input {
        font-size: 16px;
    }
}

/* ==========================================================================
   10. ADMIN LOGIN GATEWAY & LOGOUT STYLES
   ========================================================================== */
.admin-login-screen {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 20%, #1e293b 0%, #0b1120 60%, #070b14 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 20px;
}

.admin-login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 420px;
    padding: 36px 28px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(37, 99, 235, 0.15);
    text-align: center;
    position: relative;
    animation: fadeInScale 0.3s ease-out;
}

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

.admin-login-header {
    margin-bottom: 24px;
}

.admin-login-logo-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.admin-login-logo {
    width: 68px;
    height: 68px;
    border-radius: var(--radius-md);
    border: 2px solid var(--primary);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
    object-fit: cover;
    display: block;
}

.admin-login-lock-badge {
    position: absolute;
    bottom: -4px;
    right: -6px;
    background: var(--primary);
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    border: 2px solid var(--bg-card);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.admin-login-header h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.admin-login-header p {
    font-size: 0.86rem;
    color: var(--text-sub);
    line-height: 1.4;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-input-wrapper input {
    width: 100%;
    height: 48px;
    background: var(--bg-input);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    color: #ffffff;
    padding: 0 46px 0 14px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
}

.password-input-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
    outline: none;
}

.password-input-wrapper.shake input {
    border-color: var(--danger);
    animation: shake 0.4s ease-in-out;
}

.btn-toggle-pwd {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 1.15rem;
    cursor: pointer;
    color: var(--text-sub);
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-toggle-pwd:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.login-error-msg {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-top: 14px;
    margin-bottom: 6px;
    text-align: left;
    animation: shake 0.35s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.btn-login-submit {
    width: 100%;
    height: 48px;
    font-size: 0.98rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.admin-login-footer {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border-light);
    font-size: 0.85rem;
}

.back-to-site-link {
    color: var(--text-sub);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.back-to-site-link:hover {
    color: #60a5fa;
    text-decoration: underline;
}

.btn-sidebar-logout {
    width: 100%;
    margin-top: 10px;
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-sidebar-logout:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

.btn-top-logout {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-top-logout:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

/* ==========================================================================
   10. FAQ ADMIN MANAGEMENT STYLES
   ========================================================================== */
.faq-admin-card {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition);
}

.faq-admin-card:hover {
    border-color: #475569;
}

.faq-admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-admin-card-header .faq-num {
    font-size: 0.88rem;
    font-weight: 700;
    color: #38bdf8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.faq-admin-card .faq-btn-delete {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.8rem;
    font-family: inherit;
    font-weight: 600;
    transition: var(--transition);
}

.faq-admin-card .faq-btn-delete:hover {
    background: #ef4444;
    color: #ffffff;
}

.faq-admin-card input,
.faq-admin-card textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: #ffffff;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 0.92rem;
    transition: var(--transition);
}

.faq-admin-card textarea {
    min-height: 75px;
    resize: vertical;
    line-height: 1.5;
}

.faq-admin-card input:focus,
.faq-admin-card textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

