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

:root {
    --qf-green-dark: #1a5c3a;
    --qf-green: #2d7a50;
    --qf-green-light: #3a9d68;
    --qf-mint: #b8e6cc;
    --qf-mint-light: #d4f0e0;
    --qf-mint-pale: #e8f5ee;
    --qf-white: #ffffff;
    --qf-text: #1a2e23;
    --qf-text-light: #5a7568;
    --qf-red: #d94f4f;
    --qf-border: #c8ddd1;
    --qf-shadow: rgba(26, 92, 58, 0.1);
    --qf-shadow-strong: rgba(26, 92, 58, 0.18);
    --bg-main: linear-gradient(145deg, #d6efe0 0%, #b3dcc4 30%, #9fcfb5 60%, #c5e8d5 100%);
    --bg-topbar: rgba(255,255,255,0.7);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --qf-white: #1a2e23;
    --qf-text: #e8f5ee;
    --qf-text-light: #a0b8aa;
    --qf-border: #2d4a3a;
    --qf-shadow: rgba(0, 0, 0, 0.3);
    --qf-shadow-strong: rgba(0, 0, 0, 0.5);
    --bg-main: linear-gradient(145deg, #0f1e16 0%, #1a2e23 30%, #253d30 60%, #1a2e23 100%);
    --bg-topbar: rgba(26, 46, 35, 0.9);
    --qf-mint-pale: #1e3329;
}

body {
    font-family: 'DM Sans', sans-serif;
    min-height: 100vh;
    background: linear-gradient(145deg, #d6efe0 0%, #b3dcc4 30%, #8fcbaa 60%, #b8e0c8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}
body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}
body::before {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #7ccba2, transparent);
    top: -120px; right: -100px;
    animation: floatOrb 18s ease-in-out infinite;
}
body::after {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #a3e4c1, transparent);
    bottom: -80px; left: -60px;
    animation: floatOrb 22s ease-in-out infinite reverse;
}
@keyframes floatOrb {
    0%, 100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(30px,-20px) scale(1.05); }
    66% { transform: translate(-20px,15px) scale(0.95); }
}

/* ====== AUTH CONTAINER ====== */
.auth-wrapper {
    position: relative; z-index: 1; width: 100%;
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; padding: 24px;
}
.auth-container {
    width: 100%; max-width: 1080px; min-height: 620px;
    display: flex; border-radius: 24px; overflow: hidden;
    box-shadow: 0 4px 6px var(--qf-shadow), 0 20px 50px var(--qf-shadow-strong), 0 0 0 1px rgba(255,255,255,0.3);
    background: var(--qf-white);
    animation: slideUp 0.7s cubic-bezier(0.22,1,0.36,1) forwards;
    opacity: 0; transform: translateY(30px);
}
@keyframes slideUp { to { opacity:1; transform:translateY(0); } }

/* LEFT BRAND PANEL */
.brand-panel {
    width: 44%;
    background: linear-gradient(165deg, #1a5c3a 0%, #2d7a50 50%, #3a9d68 100%);
    padding: 48px 40px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center;
    position: relative; overflow: hidden;
}
.brand-panel::before {
    content:''; position:absolute; top:-100px; right:-100px;
    width:350px; height:350px; border-radius:50%;
    background: rgba(255,255,255,0.04);
}
.brand-panel::after {
    content:''; position:absolute; bottom:-60px; left:-60px;
    width:250px; height:250px; border-radius:50%;
    background: rgba(255,255,255,0.04);
}
.brand-logo {
    display: flex; flex-direction: column; align-items: center; gap: 20px;
    position: relative; z-index: 1;
}
.brand-logo .logo-icon {
    width: 100px; height: 100px;
    background: rgba(255,255,255,0.95);
    border-radius: 22px;
    display: flex; align-items: center; justify-content: center;
    padding: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.brand-logo .logo-icon img {
    width: 100%; height: 100%; object-fit: contain;
}
.brand-logo-text {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.brand-logo-text span:first-child {
    font-family: 'Playfair Display', serif;
    font-size: 22px; font-weight: 600; color: #fff;
    letter-spacing: 0.5px;
}
.brand-logo-text span:last-child {
    font-size: 13px; color: rgba(255,255,255,0.65);
    letter-spacing: 1px;
}
.brand-content {
    position: relative; z-index: 1; margin-top: 32px;
}
.brand-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 30px; font-weight: 600; color: #fff;
    line-height: 1.3; margin-bottom: 14px;
}
.brand-content p {
    font-size: 14px; color: rgba(255,255,255,0.7);
    line-height: 1.65; max-width: 320px; margin: 0 auto;
}

/* RIGHT FORM PANEL */
.form-panel {
    flex: 1; padding: 44px 52px;
    display: flex; flex-direction: column; justify-content: center;
    background: #ffffff; overflow-y: auto;
}
.form-logo {
    display: none; align-items: center; gap: 12px; margin-bottom: 24px;
}
.form-logo img { width: 44px; height: 44px; object-fit: contain; }
.form-logo span {
    font-family: 'Playfair Display', serif;
    font-size: 16px; font-weight: 600; color: var(--qf-green-dark);
}
@media (max-width: 860px) {
    .brand-panel { display: none; }
    .auth-container { max-width: 500px; }
    .form-panel { padding: 36px 28px; }
    .form-logo { display: flex; }
}
@media (max-width: 480px) {
    .form-panel { padding: 28px 20px; }
    .captcha-row { flex-direction: column; }
}

/* FORM PAGES */
.form-page { display:none; opacity:0; transform:translateX(20px); transition: opacity 0.4s ease, transform 0.4s ease; }
.form-page.active { display:block; opacity:1; transform:translateX(0); }

.form-header { margin-bottom: 28px; }
.form-header .badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; background: var(--qf-mint-pale);
    border-radius: 20px; font-size: 11.5px; font-weight: 600;
    color: var(--qf-green); text-transform: uppercase; letter-spacing: 0.8px;
    margin-bottom: 14px;
}
.form-header .badge svg { width:14px; height:14px; stroke:var(--qf-green); fill:none; stroke-width:2; }
.form-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px; font-weight: 600; color: #1a2e23; margin-bottom: 6px;
}
.form-header p { font-size: 14px; color: #5a7568; line-height: 1.5; }

.form-group { margin-bottom: 18px; position: relative; }
.form-group label { display:block; font-size:13px; font-weight:500; color:var(--qf-text); margin-bottom:7px; }
.form-group label .required { color: var(--qf-red); }

.input-wrap { position: relative; }
.input-wrap .input-icon {
    position:absolute; left:16px; top:50%; transform:translateY(-50%);
    width:18px; height:18px; stroke:var(--qf-text-light); fill:none;
    stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round;
    pointer-events:none; transition: stroke var(--transition);
}
.input-wrap input, .input-wrap textarea, .input-wrap select {
    width:100%; padding:13px 16px 13px 46px;
    border:1.5px solid var(--qf-border); border-radius:var(--radius-sm);
    font-family:'DM Sans',sans-serif; font-size:14px; color:var(--qf-text);
    background:#f8fbf9; transition:var(--transition); outline:none;
}
.input-wrap textarea { min-height: 80px; resize: vertical; }
.input-wrap input::placeholder, .input-wrap textarea::placeholder { color:#a0b8aa; }
.input-wrap input:focus, .input-wrap textarea:focus, .input-wrap select:focus {
    border-color:var(--qf-green); background:#fff;
    box-shadow:0 0 0 3px rgba(45,122,80,0.08);
}
.input-wrap input:focus ~ .input-icon { stroke:var(--qf-green); }
.input-wrap input.error {
    border-color:var(--qf-red); box-shadow:0 0 0 3px rgba(217,79,79,0.08);
}

.toggle-password {
    position:absolute; right:14px; top:50%; transform:translateY(-50%);
    background:none; border:none; cursor:pointer; padding:4px;
}
.toggle-password svg {
    width:18px; height:18px; stroke:#5a7568; fill:none;
    stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round;
    transition: stroke var(--transition);
}
.toggle-password:hover svg { stroke:var(--qf-green); }

.error-msg {
    font-size:12px; color:var(--qf-red); margin-top:5px;
    display:none; align-items:center; gap:4px;
}
.error-msg.show { display:flex; }
.error-msg svg { width:14px; height:14px; stroke:var(--qf-red); fill:none; stroke-width:2; flex-shrink:0; }

/* Captcha */
.captcha-row { display:flex; gap:12px; align-items:flex-end; }
.captcha-row .form-group { flex:1; }
.captcha-display {
    height:48px; min-width:130px;
    background: linear-gradient(135deg, #e8f5ee, #d4f0e0);
    border:1.5px solid #c8ddd1; border-radius:var(--radius-sm);
    display:flex; align-items:center; justify-content:center;
    position:relative; user-select:none; overflow:hidden;
}
.captcha-display::before {
    content:''; position:absolute; inset:0;
    background: repeating-linear-gradient(90deg,transparent,transparent 8px,rgba(26,92,58,0.04) 8px,rgba(26,92,58,0.04) 9px),
                 repeating-linear-gradient(0deg,transparent,transparent 6px,rgba(26,92,58,0.03) 6px,rgba(26,92,58,0.03) 7px);
}
.captcha-text {
    font-family:'Playfair Display',serif; font-size:22px; font-weight:700;
    color:var(--qf-green-dark); letter-spacing:6px; position:relative; z-index:1;
}
.captcha-refresh {
    position:absolute; right:5px; top:5px; width:22px; height:22px;
    border-radius:6px; background:rgba(255,255,255,0.6); border:none;
    cursor:pointer; display:flex; align-items:center; justify-content:center; z-index:2;
}
.captcha-refresh:hover { background:rgba(255,255,255,0.9); }
.captcha-refresh svg { width:13px; height:13px; stroke:var(--qf-green-dark); fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }

.form-options { display:flex; justify-content:space-between; align-items:center; margin-bottom:22px; }
.remember-me { display:flex; align-items:center; gap:8px; cursor:pointer; }
.remember-me input[type="checkbox"] { display:none; }
.checkmark {
    width:18px; height:18px; border:1.5px solid #c8ddd1;
    border-radius:5px; display:flex; align-items:center; justify-content:center;
    transition:var(--transition); background:#f8fbf9;
}
.remember-me input:checked ~ .checkmark { background:var(--qf-green); border-color:var(--qf-green); }
.checkmark svg { width:12px; height:12px; stroke:#fff; fill:none; stroke-width:2.5; opacity:0; transform:scale(0.5); transition:var(--transition); }
.remember-me input:checked ~ .checkmark svg { opacity:1; transform:scale(1); }
.remember-me span { font-size:13px; color:#5a7568; }

.link-btn {
    background:none; border:none; color:var(--qf-green); font-size:13px;
    font-weight:500; cursor:pointer; font-family:'DM Sans',sans-serif; transition:var(--transition);
}
.link-btn:hover { color:var(--qf-green-dark); text-decoration:underline; }

.btn-primary {
    width:100%; padding:14px; background:linear-gradient(135deg,var(--qf-green-dark),var(--qf-green));
    color:#fff; border:none; border-radius:var(--radius-sm);
    font-family:'DM Sans',sans-serif; font-size:15px; font-weight:600;
    cursor:pointer; position:relative; overflow:hidden; transition:var(--transition); letter-spacing:0.3px;
}
.btn-primary::before {
    content:''; position:absolute; top:0; left:-100%; bottom:0; width:100%;
    background:linear-gradient(90deg,transparent,rgba(255,255,255,0.15),transparent);
    transition:left 0.5s ease;
}
.btn-primary:hover { box-shadow:0 6px 20px rgba(26,92,58,0.3); transform:translateY(-1px); }
.btn-primary:hover::before { left:100%; }
.btn-primary:active { transform:translateY(0); }

.form-footer { text-align:center; margin-top:24px; font-size:13.5px; color:#5a7568; }
.form-footer .link-btn { font-size:13.5px; font-weight:600; }

.back-to-login {
    display:flex; align-items:center; gap:6px; background:none; border:none;
    cursor:pointer; font-family:'DM Sans',sans-serif; font-size:13px;
    font-weight:500; color:#5a7568; margin-bottom:20px; transition:var(--transition);
}
.back-to-login svg { width:16px; height:16px; stroke:#5a7568; fill:none; stroke-width:2; transition:var(--transition); }
.back-to-login:hover { color:var(--qf-green); }
.back-to-login:hover svg { stroke:var(--qf-green); transform:translateX(-3px); }

.password-strength { display:flex; gap:4px; margin-top:6px; }
.strength-bar { flex:1; height:3px; border-radius:3px; background:#c8ddd1; transition:background 0.3s ease; }
.strength-bar.weak { background:var(--qf-red); }
.strength-bar.medium { background:#e6a23c; }
.strength-bar.strong { background:var(--qf-green-light); }
.strength-bar.very-strong { background:var(--qf-green-dark); }
.strength-label { font-size:11px; margin-top:3px; color:#5a7568; }

.toast {
    position:fixed; top:24px; right:24px; padding:16px 24px;
    background:var(--qf-green); color:#fff; border-radius:12px;
    font-size:14px; font-weight:500; box-shadow:0 8px 30px rgba(26,92,58,0.3);
    transform:translateX(120%); transition:transform 0.4s cubic-bezier(0.22,1,0.36,1);
    z-index:1000; display:flex; align-items:center; gap:10px;
}
.toast.show { transform:translateX(0); }
.toast svg { width:20px; height:20px; stroke:#fff; fill:none; stroke-width:2; }

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

/* ============================== */
/* ========== DASHBOARD ========= */
/* ============================== */
.dashboard-wrapper {
    display: none;
    width: 100%;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}
.dashboard-wrapper.active {
    display: flex;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--qf-white);
    border-right: 1px solid var(--qf-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 50;
    transition: transform 0.3s ease;
    box-shadow: 2px 0 20px var(--qf-shadow);
}
.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--qf-border);
}
.sidebar-logo {
    display: flex; align-items: center; gap: 12px;
}
.sidebar-logo img { width: 50px; height: 50px; object-fit: contain; }
.sidebar-logo-text {
    display: flex; flex-direction: column;
}
.sidebar-logo-text span:first-child {
    font-family: 'Playfair Display', serif;
    font-size: 13px; font-weight: 600; color: var(--qf-green-dark);
}
.sidebar-logo-text span:last-child {
    font-size: 10px; color: var(--qf-text-light);
}

.sidebar-profile {
    padding: 20px;
    display: flex; align-items: center; gap: 12px;
    border-bottom: 1px solid var(--qf-border);
    background: linear-gradient(135deg, #f8fbf9, #f0f7f3);
}
[data-theme="dark"] .sidebar-profile {
    background: linear-gradient(135deg, #1e3329, #253d30);
}
.profile-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, var(--qf-green), var(--qf-green-light));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 16px;
    flex-shrink: 0;
}
.profile-info .profile-name { font-size: 14px; font-weight: 600; color: var(--qf-text); }
.profile-info .profile-role { font-size: 12px; color: var(--qf-green); }

.sidebar-nav { flex: 1; padding: 16px 12px; overflow-y: auto; }
.nav-label {
    font-size: 11px; font-weight: 600; color: var(--qf-text-light);
    text-transform: uppercase; letter-spacing: 1px;
    padding: 12px 12px 8px;
}
.nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-radius: 12px;
    font-size: 13.5px; color: var(--qf-text);
    cursor: pointer; transition: var(--transition);
    text-decoration: none; border: none; background: none; width: 100%;
    font-family: 'DM Sans', sans-serif;
    margin-bottom: 4px;
}
.nav-item:hover { background: var(--qf-mint-pale); }
.nav-item.active {
    background: var(--qf-green); color: #fff;
    box-shadow: 0 4px 15px rgba(26,92,58,0.3);
}
.nav-item svg {
    width: 20px; height: 20px; stroke: currentColor;
    fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid var(--qf-border);
}
.nav-item.logout { color: var(--qf-red); }
.nav-item.logout:hover { background: rgba(217,79,79,0.08); }

/* Main content area */
.dash-main {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--bg-main);
}

/* Top bar */
.topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 32px;
    background: var(--bg-topbar);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(200,221,209,0.5);
    position: sticky; top: 0; z-index: 40;
}
.topbar h2 {
    font-family: 'Playfair Display', serif;
    font-size: 24px; font-weight: 600; color: var(--qf-green-dark);
}
.topbar-actions { display: flex; align-items: center; gap: 10px; position: relative; }
.topbar-btn {
    width: 40px; height: 40px; border-radius: 50%;
    border: none; background: var(--qf-white);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: var(--transition); position: relative;
    box-shadow: 0 2px 8px var(--qf-shadow);
}
.topbar-btn:hover { background: var(--qf-mint-pale); transform: translateY(-2px); }
.topbar-btn svg {
    width: 18px; height: 18px; stroke: var(--qf-text);
    fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.notif-badge {
    position: absolute; top: -2px; right: -2px;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--qf-red); color: #fff;
    font-size: 10px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}

/* Search Bar */
.search-container {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
}
.search-container.active { display: flex; }
.search-box {
    width: 90%;
    max-width: 600px;
    background: var(--qf-white);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.search-input-wrap {
    position: relative;
}
.search-input-wrap input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    border: 2px solid var(--qf-border);
    border-radius: 12px;
    font-size: 16px;
    color: var(--qf-text);
    background: var(--qf-white);
}
.search-input-wrap input:focus {
    outline: none;
    border-color: var(--qf-green);
}
.search-close {
    position: absolute;
    right: 10px; top: 50%;
    transform: translateY(-50%);
    width: 32px; height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
}
.search-close:hover { background: var(--qf-mint-pale); }
.search-close svg {
    width: 18px; height: 18px;
    stroke: var(--qf-text-light);
}

/* Notification Dropdown */
.notification-dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    width: 360px;
    background: var(--qf-white);
    border-radius: 16px;
    box-shadow: 0 10px 40px var(--qf-shadow-strong);
    display: none;
    flex-direction: column;
    max-height: 500px;
    overflow: hidden;
    animation: slideDown 0.3s ease;
}
.notification-dropdown.active { display: flex; }
.notification-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--qf-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.notification-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--qf-text);
}
.mark-read-btn {
    font-size: 12px;
    color: var(--qf-green);
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
}
.notification-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}
.notif-item {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: var(--transition);
    border-left: 3px solid transparent;
}
.notif-item:hover {
    background: var(--qf-mint-pale);
}
.notif-item.unread {
    background: var(--qf-mint-pale);
    border-left-color: var(--qf-green);
}
.notif-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}
.notif-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--qf-text);
}
.notif-time {
    font-size: 11px;
    color: var(--qf-text-light);
}
.notif-message {
    font-size: 12px;
    color: var(--qf-text-light);
    line-height: 1.4;
}

/* Dashboard content */
.dash-content { padding: 28px 32px; flex: 1; }
.dash-section { display: none; }
.dash-section.active { display: block; }

/* Stats Cards Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--qf-white);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px var(--qf-shadow);
    transition: var(--transition);
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--qf-shadow-strong);
}
.stat-info h4 {
    font-size: 13px;
    color: var(--qf-text-light);
    font-weight: 500;
    margin-bottom: 8px;
}
.stat-value {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.stat-value span:first-child {
    font-size: 32px;
    font-weight: 700;
    color: var(--qf-text);
}
.stat-change {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}
.stat-change.positive {
    color: var(--qf-green);
    background: var(--qf-mint-pale);
}
.stat-change.negative {
    color: var(--qf-red);
    background: rgba(217,79,79,0.1);
}
.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stat-icon.green { background: var(--qf-mint-pale); }
.stat-icon.blue { background: #e8f4fd; }
.stat-icon.purple { background: #f3e8fd; }
.stat-icon.orange { background: #fff3e0; }
.stat-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}
.stat-icon.green svg { stroke: var(--qf-green); }
.stat-icon.blue svg { stroke: #4a90d9; }
.stat-icon.purple svg { stroke: #9b59b6; }
.stat-icon.orange svg { stroke: #f5a623; }

/* Analytics Grid */
.analytics-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
.analytics-card {
    background: var(--qf-white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px var(--qf-shadow);
}
.analytics-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}
.analytics-card-header h4 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--qf-text);
}
.analytics-card-header p {
    font-size: 12px;
    color: var(--qf-text-light);
    margin-top: 4px;
}
.card-menu-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-menu-btn:hover { background: var(--qf-mint-pale); }
.card-menu-btn svg {
    width: 16px;
    height: 16px;
    stroke: var(--qf-text-light);
    fill: none;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 4px;
    background: #f5f7f6;
    padding: 4px;
    border-radius: 8px;
    margin-bottom: 20px;
}
[data-theme="dark"] .tabs {
    background: #1e3329;
}
.tab-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    color: var(--qf-text-light);
    cursor: pointer;
    transition: var(--transition);
}
.tab-btn.active {
    background: var(--qf-white);
    color: var(--qf-text);
    box-shadow: 0 2px 8px var(--qf-shadow);
}
.tab-btn:hover:not(.active) {
    color: var(--qf-text);
}

/* Line Chart */
.line-chart-container {
    height: 180px;
    position: relative;
}
.line-chart {
    width: 100%;
    height: 100%;
}

/* Top Users */
.top-users-section h5 {
    font-size: 13px;
    font-weight: 600;
    color: var(--qf-text);
    margin-bottom: 12px;
}
.top-users-table {
    width: 100%;
    border-collapse: collapse;
}
.top-users-table th {
    font-size: 11px;
    font-weight: 600;
    color: var(--qf-text-light);
    text-align: left;
    padding: 8px 0;
    border-bottom: 1px solid var(--qf-border);
}
.top-users-table td {
    font-size: 13px;
    color: var(--qf-text);
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}
.status-dot.active { background: var(--qf-green); }
.status-dot.inactive { background: var(--qf-text-light); }

.view-more-btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: var(--qf-green);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 16px;
}
.view-more-btn:hover {
    background: var(--qf-green-dark);
    transform: translateY(-2px);
}

/* Bar Chart */
.bar-chart-container {
    height: 140px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 12px;
    padding: 20px 0;
}
.bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}
.bar {
    width: 100%;
    max-width: 40px;
    border-radius: 6px 6px 0 0;
    transition: height 0.6s cubic-bezier(0.22,1,0.36,1);
}
.bar.blue { background: linear-gradient(180deg, #4a90d9, #6ba8e8); }
.bar.green { background: linear-gradient(180deg, var(--qf-green), var(--qf-green-light)); }
.bar.orange { background: linear-gradient(180deg, #f5a623, #f7bc5c); }
.bar.purple { background: linear-gradient(180deg, #9b59b6, #b07cc6); }
.bar-label {
    font-size: 11px;
    color: var(--qf-text-light);
}

/* Notifications Card */
.notifications-card {
    background: var(--qf-white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px var(--qf-shadow);
}
.notifications-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--qf-text);
    margin-bottom: 16px;
}
.notification-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    color: var(--qf-text);
    line-height: 1.5;
}
.notification-item:last-child {
    border-bottom: none;
}
.notification-item a {
    color: var(--qf-green);
    font-weight: 500;
    text-decoration: none;
}
.notification-item a:hover {
    text-decoration: underline;
}

/* Learner Management */
.learner-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.learner-stat-card {
    background: var(--qf-white);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 12px var(--qf-shadow);
}
.learner-stat-card h5 {
    font-size: 12px;
    color: var(--qf-text-light);
    margin-bottom: 8px;
}
.learner-stat-card .number {
    font-size: 28px;
    font-weight: 700;
    color: var(--qf-text);
}

.students-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.action-btn.primary {
    background: var(--qf-green);
    color: #fff;
}
.action-btn.primary:hover {
    background: var(--qf-green-dark);
    transform: translateY(-2px);
}
.action-btn.secondary {
    background: var(--qf-white);
    color: var(--qf-green);
    border: 1.5px solid var(--qf-green);
}
.action-btn.secondary:hover {
    background: var(--qf-mint-pale);
}
.action-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.students-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}
.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.filter-group label {
    font-size: 13px;
    color: var(--qf-text-light);
    font-weight: 500;
}
.filter-select {
    padding: 8px 14px;
    border: 1.5px solid var(--qf-border);
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: var(--qf-text);
    background: var(--qf-white);
    cursor: pointer;
    transition: var(--transition);
}
.filter-select:focus {
    outline: none;
    border-color: var(--qf-green);
}
.date-input {
    padding: 8px 14px;
    border: 1.5px solid var(--qf-border);
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: var(--qf-text);
    background: var(--qf-white);
}
.date-input:focus {
    outline: none;
    border-color: var(--qf-green);
}

.students-table-card {
    background: var(--qf-white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px var(--qf-shadow);
    margin-bottom: 24px;
}
.students-table-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--qf-text);
    margin-bottom: 20px;
}
.students-table {
    width: 100%;
    border-collapse: collapse;
}
.students-table th {
    font-size: 12px;
    font-weight: 600;
    color: var(--qf-text-light);
    text-align: left;
    padding: 12px;
    border-bottom: 2px solid var(--qf-border);
    background: var(--qf-mint-pale);
}
.students-table td {
    font-size: 13px;
    color: var(--qf-text);
    padding: 14px 12px;
    border-bottom: 1px solid #f0f0f0;
}
.students-table tr:hover {
    background: var(--qf-mint-pale);
}
.students-table tbody tr {
    cursor: pointer;
}
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}
.badge.certified {
    background: #d4f0e0;
    color: var(--qf-green-dark);
}
.badge.enrolled {
    background: #e8f4fd;
    color: #4a90d9;
}
.badge.in-progress {
    background: #fff3cd;
    color: #856404;
}
.badge.logged-in, .badge.active {
    background: #d4edda;
    color: #155724;
}
.badge.inactive {
    background: #f8d7da;
    color: #721c24;
}
.badge.pending {
    background: #fff3cd;
    color: #856404;
}
.badge.deactivated {
    background: #e2e3e5;
    color: #383d41;
}

/* Courses Section */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}
.course-card {
    background: var(--qf-white);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px var(--qf-shadow);
    transition: var(--transition);
}
.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--qf-shadow-strong);
}
.course-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}
.course-header h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--qf-text);
    margin-bottom: 4px;
}
.course-category {
    font-size: 11px;
    color: var(--qf-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.course-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}
.course-stat {
    background: var(--qf-mint-pale);
    padding: 10px;
    border-radius: 8px;
}
.course-stat-label {
    font-size: 11px;
    color: var(--qf-text-light);
    margin-bottom: 4px;
}
.course-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--qf-text);
}
.view-course-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: var(--qf-green);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.view-course-btn:hover {
    background: var(--qf-green-dark);
}

/* Opportunity Cards */
.opportunity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.add-opportunity-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    background: var(--qf-green);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.add-opportunity-btn:hover {
    background: var(--qf-green-dark);
    transform: translateY(-2px);
}
.add-opportunity-btn svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
}

.opportunities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.opportunity-card {
    background: var(--qf-white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px var(--qf-shadow);
    transition: var(--transition);
}
.opportunity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--qf-shadow-strong);
}
.opportunity-card-header {
    margin-bottom: 16px;
}
.opportunity-card-header h5 {
    font-size: 18px;
    font-weight: 600;
    color: var(--qf-text);
    margin-bottom: 8px;
}
.opportunity-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--qf-text-light);
    margin-bottom: 12px;
}
.opportunity-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.opportunity-meta svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}
.opportunity-description {
    font-size: 13px;
    color: var(--qf-text);
    line-height: 1.6;
    margin-bottom: 16px;
}
.opportunity-skills {
    margin-bottom: 16px;
}
.opportunity-skills-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--qf-text-light);
    margin-bottom: 8px;
}
.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.skill-tag {
    padding: 4px 10px;
    background: var(--qf-mint-pale);
    color: var(--qf-green-dark);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}
.opportunity-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--qf-border);
}
.applicants-count {
    font-size: 12px;
    color: var(--qf-text-light);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal.active { display: flex; }
.modal-content {
    background: var(--qf-white);
    border-radius: 16px;
    padding: 30px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideDown 0.3s ease;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}
.modal-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--qf-text);
}
.close-modal {
    width: 36px; height: 36px;
    border: none;
    background: var(--qf-mint-pale);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.close-modal svg {
    width: 20px; height: 20px;
    stroke: var(--qf-text);
}

/* Bulk Upload Instructions */
.upload-instructions {
    background: var(--qf-mint-pale);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
}
.upload-instructions h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--qf-text);
    margin-bottom: 12px;
}
.upload-steps {
    list-style: none;
    counter-reset: step-counter;
}
.upload-steps li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 32px;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--qf-text);
    line-height: 1.5;
}
.upload-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    width: 22px;
    height: 22px;
    background: var(--qf-green);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}
.download-sample-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--qf-white);
    color: var(--qf-green);
    border: 1.5px solid var(--qf-green);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 12px;
}
.download-sample-btn:hover {
    background: var(--qf-green);
    color: #fff;
}
.download-sample-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.file-upload-area {
    border: 2px dashed var(--qf-border);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}
.file-upload-area:hover {
    border-color: var(--qf-green);
    background: var(--qf-mint-pale);
}
.file-upload-area svg {
    width: 48px;
    height: 48px;
    stroke: var(--qf-text-light);
    margin-bottom: 12px;
}
.file-upload-area p {
    font-size: 14px;
    color: var(--qf-text);
    margin-bottom: 4px;
}
.file-upload-area span {
    font-size: 12px;
    color: var(--qf-text-light);
}
.file-upload-area input[type="file"] {
    display: none;
}

/* Reports Grid */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

/* Verifier Stats Grid */
.verifier-detail-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.verifier-detail-stat {
    background: var(--qf-mint-pale);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}
.verifier-detail-stat-label {
    font-size: 12px;
    color: var(--qf-text-light);
    margin-bottom: 8px;
}
.verifier-detail-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--qf-text);
}

.subjects-list {
    background: var(--qf-mint-pale);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
}
.subjects-list h5 {
    font-size: 13px;
    font-weight: 600;
    color: var(--qf-text);
    margin-bottom: 10px;
}
.subject-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--qf-border);
}
.subject-item:last-child {
    border-bottom: none;
}
.subject-name {
    font-size: 13px;
    color: var(--qf-text);
}
.subject-students {
    font-size: 12px;
    color: var(--qf-text-light);
}

/* Course Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}
.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}
.status-badge.approved {
    background: #d4edda;
    color: #155724;
}
.status-badge.rejected {
    background: #f8d7da;
    color: #721c24;
}

/* Action Buttons in Modal */
.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: flex-end;
}
.modal-action-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.modal-action-btn.approve {
    background: var(--qf-green);
    color: #fff;
}
.modal-action-btn.approve:hover {
    background: var(--qf-green-dark);
}
.modal-action-btn.reject {
    background: var(--qf-red);
    color: #fff;
}
.modal-action-btn.reject:hover {
    background: #c0392b;
}

/* Responsive */
@media (max-width: 1200px) {
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .analytics-grid { grid-template-columns: 1fr; }
    .learner-stats { grid-template-columns: repeat(2, 1fr); }
    .reports-grid { grid-template-columns: 1fr; }
    .verifier-detail-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .stats-row { grid-template-columns: 1fr; }
    .learner-stats { grid-template-columns: 1fr; }
    .courses-grid { grid-template-columns: 1fr; }
    .opportunities-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .dash-main { margin-left: 0; }
    .dash-content { padding: 20px 16px; }
    .topbar { padding: 14px 16px; }
    .notification-dropdown { width: 90vw; right: 5vw; }
}

/* Animations */
@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.stat-card, .analytics-card, .notifications-card, .students-table-card, .course-card, .opportunity-card {
    animation: cardFadeIn 0.5s cubic-bezier(0.22,1,0.36,1) forwards;
    opacity: 0;
}
.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.15s; }
.stat-card:nth-child(3) { animation-delay: 0.2s; }
.stat-card:nth-child(4) { animation-delay: 0.25s; }
.analytics-card:nth-child(1) { animation-delay: 0.25s; }
.analytics-card:nth-child(2) { animation-delay: 0.3s; }
.notifications-card { animation-delay: 0.35s; }
