/* ===================================================
   GLOBAL & BASE
=================================================== */
*{
    box-sizing:border-box;
    font-family:Inter, system-ui, Arial, sans-serif;
}

body{
    margin:0;
    background:linear-gradient(135deg,#f5f7fb,#e9f0ff);
    color:#122;
    min-height:100vh;
}

/* ===================================================
   TOPBAR / HEADER
=================================================== */
.topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:12px 20px;
    backdrop-filter:blur(6px);
    position:sticky;
    top:0;
    z-index:50;
}

.brand{
    display:flex;
    align-items:center;
    gap:12px;
}

.text-logo{
    font-weight:700;
    font-size:20px;
    color:#103;
}

nav a{
    margin-left:10px;
    text-decoration:none;
    color:#103;
    padding:6px 8px;
    border-radius:8px;
    transition:0.2s;
}

nav a:hover{
    background:rgba(0,0,0,0.08);
}

/* ===================================================
   LAYOUT
=================================================== */
.container{
    max-width:1000px;
    margin:30px auto;
    padding:16px;
}

.hero{
    padding:30px;
    border-radius:14px;
    background:rgba(255,255,255,0.6);
    box-shadow:0 6px 30px rgba(16,24,40,0.06);
    backdrop-filter:blur(6px);
}

.glass{
    background:linear-gradient(180deg, rgba(255,255,255,0.65), rgba(255,255,255,0.5));
    border:1px solid rgba(255,255,255,0.6);
}

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:14px;
    margin-top:18px;
}

.card{
    padding:12px;
    border-radius:12px;
    background:rgba(255,255,255,0.6);
    border:1px solid rgba(255,255,255,0.6);
    box-shadow:0 6px 20px rgba(16,24,40,0.04);
}

.footer{
    padding:20px;
    text-align:center;
    color:#2b3;
}

.form{
    max-width:480px;
    margin:20px 0;
    padding:14px;
    border-radius:12px;
    background:rgba(255,255,255,0.6);
}

/* ===================================================
   FORM ELEMENTS
=================================================== */
input, select, textarea{
    width:100%;
    padding:10px;
    margin:6px 0;
    border-radius:8px;
    border:1px solid rgba(0,0,0,0.08);
}

button{
    padding:10px 14px;
    border-radius:10px;
    border:0;
    background:#0b76ff;
    color:#fff;
    cursor:pointer;
    font-weight:600;
}

button:hover{
    background:#095bcc;
}

.small{
    font-size:13px;
    color:#555;
}

/* ===================================================
   🌙 DARK MODE — COMPLETE THEME
=================================================== */
body.dark{
    background:#0f172a !important;
    color:#e2e8f0 !important;
}

/* Header dark mode */
body.dark .topbar{
    background:rgba(255,255,255,0.06) !important;
    border-bottom:1px solid rgba(255,255,255,0.15);
}

body.dark .text-logo{
    color:#f8fafc !important;
}

body.dark nav a{
    color:#e2e8f0 !important;
}

body.dark nav a:hover{
    background:rgba(255,255,255,0.12) !important;
}

/* Typography */
body.dark p,
body.dark h1,
body.dark h2,
body.dark h3,
body.dark h4,
body.dark h5,
body.dark h6,
body.dark span,
body.dark div{
    color:#e2e8f0 !important;
}

/* Cards & Glass Elements */
body.dark .card,
body.dark .glass,
body.dark .hero,
body.dark .form{
    background:rgba(255,255,255,0.08) !important;
    border:1px solid rgba(255,255,255,0.15) !important;
    color:#e2e8f0 !important;
    box-shadow:0 6px 20px rgba(0,0,0,0.45) !important;
}

/* Inputs */
body.dark input,
body.dark select,
body.dark textarea{
    background:rgba(255,255,255,0.1) !important;
    border:1px solid rgba(255,255,255,0.2) !important;
    color:#e2e8f0 !important;
}

body.dark input::placeholder,
body.dark textarea::placeholder{
    color:#94a3b8 !important;
}

/* Buttons */
body.dark button{
    background:#1e40af !important;
    color:white !important;
}

body.dark button:hover{
    background:#1e3a8a !important;
}

/* Footer */
body.dark .footer{
    color:#94a3b8 !important;
}
