/* ASSIDU.ai V2 — Base Styles (Apple Liquid Glass) */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    width: 100%; min-height: 100%;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Light mode — soft gradient mesh background */
body::before {
    content: '';
    position: fixed; inset: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(62,205,198,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(62,205,198,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(237,255,254,0.3) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

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

img { max-width: 100%; height: auto; }

input, select, textarea, button { font-family: inherit; font-size: inherit; }

/* Scrollbar — thin, translucent */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(62,205,198,0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(62,205,198,0.35); }

::selection { background: rgba(62,205,198,0.25); color: var(--text); }

/* Typography */
h1 { font-size: 24px; font-weight: 700; line-height: 1.2; }
h2 { font-size: 20px; font-weight: 700; line-height: 1.3; }
h3 { font-size: 16px; font-weight: 700; line-height: 1.4; }
h4 { font-size: 14px; font-weight: 600; line-height: 1.4; }

.page-title { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.page-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.section-title { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 12px; }

/* Utility */
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-sm { font-size: 12px; }
.text-xs { font-size: 10px; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.items-end { align-items: flex-end; }
.flex-1 { flex: 1; min-width: 0; }

/* ===== Dark Theme Base ===== */
[data-theme="dark"] body {
    background: linear-gradient(165deg, #0a1a1a 0%, #0c2020 40%, #0f2a2a 100%);
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
}
[data-theme="dark"] body::before {
    background:
        radial-gradient(ellipse at 15% 85%, rgba(62,205,198,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 15%, rgba(62,205,198,0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(0,228,200,0.03) 0%, transparent 60%);
}
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: rgba(62,205,198,0.15); }
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: rgba(62,205,198,0.25); }
[data-theme="dark"] ::selection { background: rgba(79,224,216,0.3); color: #fff; }
