/* ============================================================
   DoodlyKids v0.5 — Main Stylesheet
   Theme: Pink + Purple + Blue | Kids-friendly + Professional
   ============================================================ */

/* ── Logo light/dark switching ── */
.logo-img        { display: block; height: 44px; width: auto; object-fit: contain; }
.logo-light      { display: block; }
.logo-dark       { display: none;  }
[data-theme="dark"] .logo-light { display: none;  }
[data-theme="dark"] .logo-dark  { display: block; }

/* Sidebar brand text */
.sb-brand-text {
    font-size: 1.1rem; font-weight: 900;
    color: var(--text); margin-left: 4px;
}

/* ── Google Font ── */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

/* ── CSS Variables — Light Mode ── */
:root {
    --pink:          #f4517a;
    --pink-light:    #fce4ec;
    --pink-dark:     #d63160;
    --purple:        #7c3aed;
    --purple-light:  #ede9fe;
    --blue:          #2563eb;
    --blue-light:    #dbeafe;

    --bg:            #f7f8fc;
    --bg-card:       #ffffff;
    --bg-alt:        #f0f2f8;
    --bg-sidebar:    #ffffff;

    --text:          #1a1a2e;
    --text-secondary:#5a6282;
    --text-muted:    #9aa5c0;

    --border:        #e5e9f5;
    --shadow:        0 2px 16px rgba(100,110,170,.10);
    --shadow-lg:     0 8px 32px rgba(100,110,170,.16);

    --radius-sm:     8px;
    --radius:        14px;
    --radius-lg:     20px;

    --grad-hero:     linear-gradient(135deg, #fce4ec 0%, #ede9fe 50%, #dbeafe 100%);
    --grad-btn:      linear-gradient(135deg, #f4517a, #7c3aed);
    --grad-card:     linear-gradient(135deg, #fff 0%, #f7f8fc 100%);
}

/* ── Dark Mode ── */
[data-theme="dark"] {
    --bg:            #0f0f1a;
    --bg-card:       #1a1a2e;
    --bg-alt:        #16162a;
    --bg-sidebar:    #13132a;

    --text:          #eef0ff;
    --text-secondary:#a0a8cc;
    --text-muted:    #606488;

    --border:        #2a2a48;
    --shadow:        0 2px 16px rgba(0,0,0,.4);
    --shadow-lg:     0 8px 32px rgba(0,0,0,.5);

    --grad-hero:     linear-gradient(135deg, #1a0a14 0%, #1a0a2e 50%, #0a0f2e 100%);
    --grad-card:     linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

a { color: var(--pink); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--grad-btn);
    color: #fff;
    box-shadow: 0 4px 14px rgba(244,81,122,.35);
}
.btn-primary:hover { box-shadow: 0 6px 20px rgba(244,81,122,.45); }

.btn-outline {
    background: transparent;
    color: var(--pink);
    border: 2px solid var(--pink);
}
.btn-outline:hover { background: var(--pink-light); }

.btn-danger {
    background: #ef4444;
    color: #fff;
}
.btn-danger:hover { background: #dc2626; }

.btn-lg  { padding: 14px 30px; font-size: 1.05rem; border-radius: var(--radius); }
.btn-full { width: 100%; }
.btn-sm  { padding: 7px 14px; font-size: 0.85rem; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-weight: 600;
    border-left: 4px solid transparent;
}
.alert-success { background: #dcfce7; color: #166534; border-color: #22c55e; }
.alert-error   { background: #fee2e2; color: #991b1b; border-color: #ef4444; }
.alert-info    { background: #dbeafe; color: #1e40af; border-color: #3b82f6; }
[data-theme="dark"] .alert-success { background: #052e16; color: #86efac; }
[data-theme="dark"] .alert-error   { background: #2d0a0a; color: #fca5a5; }
[data-theme="dark"] .alert-info    { background: #0a1628; color: #93c5fd; }

/* ============================================================
   THEME TOGGLE
   ============================================================ */
.theme-toggle {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 50%;
    width: 40px; height: 40px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.theme-toggle:hover { border-color: var(--pink); transform: scale(1.1); }
.theme-toggle.fixed {
    position: fixed;
    bottom: 24px; right: 24px;
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

/* ============================================================
   LOGO
   ============================================================ */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
/* legacy emoji logo (unused but kept for fallback) */
.logo-icon { font-size: 28px; }
.logo-text {
    font-size: 1.5rem; font-weight: 900;
    background: var(--grad-btn);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
   NAVBAR (Homepage)
   ============================================================ */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.nav-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 14px 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-links {
    display: flex; align-items: center; gap: 12px;
}
.hamburger {
    display: none;
    background: none; border: none;
    font-size: 24px; cursor: pointer; color: var(--text);
}
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--text); font-weight: 700; padding: 8px 0; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: block; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    background: var(--grad-hero);
    padding: 80px 24px 60px;
    display: flex; align-items: center; justify-content: center;
    gap: 32px;
    min-height: 80vh;
    position: relative; overflow: hidden;
}
.hero-content { max-width: 560px; }
.hero-badge {
    display: inline-block;
    background: var(--pink-light); color: var(--pink-dark);
    padding: 6px 16px; border-radius: 99px;
    font-size: 0.85rem; font-weight: 800;
    margin-bottom: 16px;
}
[data-theme="dark"] .hero-badge { background: #3d0a18; color: #f9a8c9; }
.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 900; line-height: 1.2;
    margin-bottom: 20px;
}
.highlight {
    background: var(--grad-btn);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 460px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-stats {
    display: flex; align-items: center; gap: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-lg); padding: 16px 24px;
    box-shadow: var(--shadow); display: inline-flex;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-size: 1.4rem; font-weight: 900; color: var(--pink); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 700; }
.stat-div { width: 1px; height: 36px; background: var(--border); }

/* Hero visual */
.hero-visual {
    position: relative;
    width: 420px; height: 380px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.hero-icon-img { width: 110px; height: 110px; object-fit: contain; }
.hero-circle {
    width: 190px; height: 190px;
    background: var(--grad-btn);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 80px;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 20px 60px rgba(244,81,122,.35);
    z-index: 1;
}
.hero-card {
    position: absolute;
    background: var(--bg-card);
    padding: 10px 16px;
    border-radius: var(--radius);
    font-size: 0.85rem; font-weight: 800;
    box-shadow: var(--shadow-lg);
    white-space: nowrap;
    animation: floatCard 3s ease-in-out infinite;
    z-index: 2;
}
/* Top-left: A = aaa */
.float-1 { top: 20px;  left: 0px;   animation-delay: 0s; color: var(--purple); }
/* Bottom-left: CAT = kuh+aaa+tuh */
.float-2 { bottom: 20px; left: 0px; animation-delay: 1s; color: var(--blue); }
/* Top-right: Achievement Unlocked */
.float-3 { top: 20px;  right: 0px;  animation-delay: 2s; color: var(--pink); }
@keyframes floatCard {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

@media (max-width: 900px) {
    .hero { flex-direction: column; min-height: auto; padding: 50px 24px 40px; }
    .hero-visual { display: none; }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 72px 24px; }
.section-alt { background: var(--bg-alt); }
.section-inner { max-width: 1160px; margin: 0 auto; text-align: center; }
.section-badge {
    display: inline-block;
    background: var(--purple-light); color: var(--purple);
    padding: 6px 16px; border-radius: 99px;
    font-size: 0.85rem; font-weight: 800; margin-bottom: 12px;
}
[data-theme="dark"] .section-badge { background: #1e0a3d; color: #c4b5fd; }
.section-title { font-size: clamp(1.8rem,4vw,2.6rem); font-weight: 900; margin-bottom: 12px; }
.section-sub { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 40px; }

/* ── Grades ── */
.grades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px,1fr));
    gap: 20px; margin-top: 10px;
}
.grade-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px 16px;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    transition: all 0.2s;
    text-align: center;
}
.grade-card.active { border-color: var(--pink-light); }
.grade-card.active:hover { border-color: var(--pink); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.grade-card.coming { opacity: 0.6; }
.grade-icon  { font-size: 36px; margin-bottom: 10px; }
.grade-name  { font-size: 1rem; font-weight: 900; margin-bottom: 6px; }
.grade-desc  { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 12px; }
.grade-badge {
    display: inline-block; background: var(--pink-light); color: var(--pink-dark);
    font-size: 0.72rem; font-weight: 800; padding: 3px 10px; border-radius: 99px;
}
.coming-badge { background: var(--bg-alt); color: var(--text-muted); }

/* ── Steps ── */
.steps-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 24px; text-align: left;
}
.step-card {
    background: var(--bg-card); border-radius: var(--radius);
    padding: 28px; box-shadow: var(--shadow); position: relative;
}
.step-num {
    position: absolute; top: -14px; left: 20px;
    background: var(--grad-btn); color: #fff;
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 0.9rem;
}
.step-icon { font-size: 32px; margin-bottom: 12px; margin-top: 8px; }
.step-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; }
.step-card p  { color: var(--text-secondary); font-size: 0.9rem; }

/* ── Features ── */
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
    gap: 24px; text-align: left;
}
.feature-card {
    background: var(--bg-card); border-radius: var(--radius);
    padding: 28px; box-shadow: var(--shadow);
    border-left: 4px solid var(--pink);
    transition: transform 0.2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feat-icon { font-size: 36px; margin-bottom: 14px; }
.feature-card h3 { font-weight: 800; margin-bottom: 8px; }
.feature-card p  { color: var(--text-secondary); font-size: 0.9rem; }

/* ── Parents ── */
.parents-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
    text-align: left; align-items: center;
}
@media (max-width: 800px) { .parents-grid { grid-template-columns: 1fr; } }
.parent-point {
    display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start;
}
.pp-icon { font-size: 22px; flex-shrink: 0; }
.parent-point h4 { font-weight: 800; margin-bottom: 4px; }
.parent-point p  { color: var(--text-secondary); font-size: 0.9rem; }

/* Dashboard mock */
.dashboard-mock {
    background: var(--bg-card); border-radius: var(--radius-lg);
    padding: 24px; box-shadow: var(--shadow-lg);
    border: 2px solid var(--border);
}
.mock-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px; font-weight: 800;
}
.mock-badge {
    background: var(--pink-light); color: var(--pink-dark);
    font-size: 0.78rem; padding: 4px 10px; border-radius: 99px;
}
.mock-child {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 14px; font-size: 0.9rem; font-weight: 600;
}
.mock-bar {
    flex: 1; height: 8px; background: var(--border); border-radius: 99px; overflow: hidden;
}
.mock-fill { height: 100%; background: var(--grad-btn); border-radius: 99px; }
.mock-pct  { font-size: 0.8rem; color: var(--text-muted); min-width: 36px; text-align: right; }
.mock-actions {
    display: flex; gap: 10px; margin-top: 20px;
}
.mock-btn {
    flex: 1; background: var(--bg-alt); border-radius: var(--radius-sm);
    padding: 10px; text-align: center; font-size: 0.85rem; font-weight: 700;
    cursor: pointer;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--text);
    color: rgba(255,255,255,.8);
    padding-top: 48px;
}
[data-theme="dark"] .footer { background: #08081a; }
.footer-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 0 24px 40px;
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
}
@media (max-width: 700px) {
    .footer-inner { grid-template-columns: 1fr; }
}
.footer-brand .logo-text { color: #fff; -webkit-text-fill-color: #fff; }
.footer-brand .logo-icon { font-size: 24px; }
/* Footer always shows dark logo (footer bg is dark in both modes) */
.footer-brand .logo-light { display: none !important; }
.footer-brand .logo-dark  { display: block !important; }
.footer-brand p { margin-top: 12px; font-size: 0.88rem; opacity: 0.7; }
.footer-links h4, .footer-langs h4 { font-weight: 900; margin-bottom: 14px; color: #fff; }
.footer-links a { display: block; color: rgba(255,255,255,.7); font-size: 0.9rem; margin-bottom: 8px; }
.footer-links a:hover { color: var(--pink); text-decoration: none; }
.footer-langs span { display: block; font-size: 0.9rem; margin-bottom: 8px; opacity: 0.8; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 18px 24px;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* ============================================================
   AUTH PAGES (Login / Register)
   ============================================================ */
.auth-body {
    background: var(--grad-hero);
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
}
.auth-wrap {
    display: flex; gap: 0;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    width: 100%; max-width: 880px;
    min-height: 520px;
}
.auth-card {
    flex: 1; padding: 44px 40px; display: flex;
    flex-direction: column; justify-content: center;
}
.auth-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; text-decoration: none; }
.auth-title { font-size: 1.8rem; font-weight: 900; margin-bottom: 6px; }
.auth-sub   { color: var(--text-secondary); margin-bottom: 24px; }

.auth-form { display: flex; flex-direction: column; gap: 0; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-weight: 700; font-size: 0.9rem; }
.form-group input,
.form-group select {
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit; font-size: 0.95rem;
    background: var(--bg); color: var(--text);
    transition: border-color 0.2s;
    width: 100%;
}
.form-group input:focus,
.form-group select:focus {
    outline: none; border-color: var(--pink);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.file-input { padding: 8px !important; }
.form-hint  { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

.input-pw { position: relative; }
.input-pw input { padding-right: 48px; }
.pw-toggle {
    position: absolute; right: 10px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none; cursor: pointer; font-size: 18px;
}
.auth-switch {
    margin-top: 20px; text-align: center;
    font-size: 0.9rem; color: var(--text-secondary);
}

/* Auth visual panel */
.auth-visual {
    width: 300px; flex-shrink: 0;
    background: var(--grad-btn);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 40px 28px; color: #fff; text-align: center;
}
.av-circle {
    width: 100px; height: 100px;
    background: rgba(255,255,255,.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 48px; margin-bottom: 20px;
}
.auth-visual h3 { font-size: 1.4rem; font-weight: 900; margin-bottom: 10px; }
.auth-visual p  { font-size: 0.88rem; opacity: 0.85; margin-bottom: 24px; }
.av-bubbles { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.av-bubbles span {
    background: rgba(255,255,255,.2);
    padding: 6px 14px; border-radius: 99px;
    font-size: 0.8rem; font-weight: 700;
}

@media (max-width: 680px) {
    .auth-visual { display: none; }
    .auth-card { padding: 32px 24px; }
    .form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   DASHBOARD
   ============================================================ */
.dash-body {
    background: var(--bg);
    min-height: 100vh;
    display: flex;
}

/* Sidebar */
.sidebar {
    width: 260px; flex-shrink: 0;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; bottom: 0;
    z-index: 200; transition: transform 0.3s;
}
.sb-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}
.sb-close {
    display: none;
    background: none; border: none; cursor: pointer;
    font-size: 18px; color: var(--text-muted);
}
.sb-nav {
    padding: 20px 12px; flex: 1;
    display: flex; flex-direction: column; gap: 4px;
}
.sb-link {
    display: block; padding: 11px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary); font-weight: 700;
    font-size: 0.92rem; transition: all 0.2s;
    text-decoration: none;
}
.sb-link:hover  { background: var(--bg-alt); color: var(--text); text-decoration: none; }
.sb-link.active { background: var(--pink-light); color: var(--pink-dark); }
[data-theme="dark"] .sb-link.active { background: #3d0a18; color: #f9a8c9; }
.sb-footer { padding: 20px; border-top: 1px solid var(--border); }

/* Main content */
.dash-main {
    margin-left: 260px;
    flex: 1;
    display: flex; flex-direction: column;
    min-height: 100vh;
}

/* Topbar */
.dash-topbar {
    position: sticky; top: 0; z-index: 100;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 14px 24px;
    display: flex; align-items: center; justify-content: space-between;
    box-shadow: var(--shadow);
}
.topbar-title { font-weight: 900; font-size: 1.1rem; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-user  { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.9rem; }
.user-avatar  { font-size: 24px; }

/* Dashboard content */
.dash-content { padding: 28px; max-width: 1000px; }
.dash-heading { font-size: 1.6rem; font-weight: 900; margin-bottom: 24px; }
.sub-heading  { font-size: 1.1rem; font-weight: 800; margin: 28px 0 16px; }
.hidden { display: none !important; }

/* Stats row */
.stats-row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr));
    gap: 16px; margin-bottom: 8px;
}
.stat-box {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px; text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.sb-icon { font-size: 32px; margin-bottom: 8px; }
.sb-num  { font-size: 2rem; font-weight: 900; color: var(--pink); line-height: 1; }
.sb-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 700; margin-top: 4px; }

/* Empty state */
.empty-state {
    background: var(--bg-card); border-radius: var(--radius-lg);
    padding: 56px 32px; text-align: center;
    box-shadow: var(--shadow); border: 2px dashed var(--border);
    margin: 24px 0;
}
.es-icon { font-size: 56px; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; }
.empty-state p  { color: var(--text-secondary); margin-bottom: 20px; }

/* Children grid */
.children-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr));
    gap: 20px;
}
.child-card {
    background: var(--bg-card); border-radius: var(--radius-lg);
    padding: 24px; box-shadow: var(--shadow);
    border: 1px solid var(--border); transition: transform 0.2s;
}
.child-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cc-avatar {
    font-size: 52px; margin-bottom: 12px; text-align: center; line-height: 1;
}
.cc-avatar img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.cc-info { text-align: center; margin-bottom: 16px; }
.cc-info h4 { font-size: 1.1rem; font-weight: 900; }
.cc-grade {
    display: inline-block; background: var(--purple-light); color: var(--purple);
    font-size: 0.75rem; font-weight: 800; padding: 3px 10px;
    border-radius: 99px; margin: 4px 4px 0 0;
}
[data-theme="dark"] .cc-grade { background: #1e0a3d; color: #c4b5fd; }
.cc-gender {
    display: inline-block; background: var(--blue-light); color: var(--blue);
    font-size: 0.75rem; font-weight: 800; padding: 3px 10px; border-radius: 99px;
}
[data-theme="dark"] .cc-gender { background: #0a1628; color: #93c5fd; }
.cc-progress { margin-bottom: 16px; }
.prog-bar {
    height: 8px; background: var(--border); border-radius: 99px; overflow: hidden;
    margin-bottom: 4px;
}
.prog-fill { height: 100%; background: var(--grad-btn); border-radius: 99px; transition: width 0.6s; }
.cc-progress span { font-size: 0.78rem; color: var(--text-muted); }
.cc-actions { display: flex; gap: 8px; }
.cc-actions .btn { flex: 1; }

/* Quick actions */
.qa-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
    gap: 14px;
}
.qa-btn {
    background: var(--bg-card); border: 2px solid var(--border);
    border-radius: var(--radius); padding: 18px;
    font-family: inherit; font-weight: 800; font-size: 0.92rem;
    cursor: pointer; transition: all 0.2s; color: var(--text);
    text-align: center;
}
.qa-btn:hover { border-color: var(--pink); color: var(--pink); transform: translateY(-2px); }
.qa-disabled { opacity: 0.5; cursor: not-allowed; }
.qa-disabled:hover { border-color: var(--border); color: var(--text); transform: none; }

/* Form card */
.form-card {
    background: var(--bg-card); border-radius: var(--radius-lg);
    padding: 32px; box-shadow: var(--shadow);
    max-width: 560px;
}

/* Modals */
.modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.55); z-index: 500;
    align-items: center; justify-content: center;
    padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
    background: var(--bg-card); border-radius: var(--radius-lg);
    padding: 28px; width: 100%; max-width: 480px;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.25s ease;
}
.modal-sm { max-width: 380px; }
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px;
}
.modal-header h3 { font-size: 1.1rem; font-weight: 900; }
.modal-header button {
    background: none; border: none; cursor: pointer;
    font-size: 18px; color: var(--text-muted);
}
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
@keyframes slideIn {
    from { transform: translateY(-10px); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}
.slide-in { animation: slideIn 0.3s ease; }

/* Mobile responsive — dashboard */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open { transform: translateX(0); }
    .sb-close { display: block; }
    .dash-main { margin-left: 0; }
    .hamburger { display: block; }
    .dash-content { padding: 16px; }
    .topbar-title { display: none; }
}

.hamburger {
    background: none; border: none; font-size: 24px;
    cursor: pointer; color: var(--text); display: none;
}
@media (max-width: 768px) {
    .hamburger { display: block; }
}
