@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500&display=swap');

/* ============================================
   GLOBAL RESET & VARIABLES
============================================ */
:root {
    --bg: #0a0a0f;
    --bg2: #111118;
    --bg3: #18181f;
    --surface: #1e1e28;
    --surface2: #252530;
    --border: #2a2a38;
    --border-bright: #3a3a50;

    --lime: #c8f135;
    --lime-dim: #a8d020;
    --lime-glow: rgba(200, 241, 53, 0.15);
    --lime-glow-strong: rgba(200, 241, 53, 0.3);

    --red: #ff4757;
    --red-glow: rgba(255, 71, 87, 0.2);
    --amber: #ffa502;

    --text: #f0f0f8;
    --text-muted: #7070a0;
    --text-dim: #4a4a6a;

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

    --shadow: 0 4px 24px rgba(0,0,0,0.4);
    --shadow-lime: 0 0 30px rgba(200,241,53,0.2);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* OAT overrides */
body { background: var(--bg) !important; color: var(--text) !important; }

/* ============================================
   TYPOGRAPHY
============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text);
}

a { color: var(--lime); text-decoration: none; transition: opacity 0.15s; }
a:hover { opacity: 0.75; }

/* ============================================
   LAYOUT
============================================ */
.page-wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
}

/* ============================================
   NAVBAR
============================================ */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.brand {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.brand .dot { color: var(--lime); }

.nav-links {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-sm);
    transition: all 0.15s;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--text);
    background: var(--surface);
    opacity: 1;
}

.nav-pill {
    background: var(--lime);
    color: #0a0a0f !important;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.45rem 1rem;
    border-radius: 99px;
    text-decoration: none;
    transition: all 0.15s;
}
.nav-pill:hover { background: var(--lime-dim); opacity: 1; }

.nav-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 0.4rem 0.75rem 0.4rem 0.5rem;
    font-size: 0.85rem;
}

.avatar {
    width: 28px;
    height: 28px;
    background: var(--lime);
    color: #0a0a0f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 0.75rem;
}

/* ============================================
   FORMS & INPUTS
============================================ */
.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.field { margin-bottom: 1.25rem; }

.field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.field input,
.field select {
    width: 100%;
    background: var(--bg2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
    -webkit-appearance: none;
}

.field input:focus,
.field select:focus {
    border-color: var(--lime);
    box-shadow: 0 0 0 3px var(--lime-glow);
}

.field select option { background: var(--bg2); }

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media(max-width: 500px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

/* ============================================
   BUTTONS
============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--lime);
    color: #0a0a0f;
    width: 100%;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.9rem;
    border-radius: var(--radius);
    letter-spacing: 0.01em;
}
.btn-primary:hover { background: var(--lime-dim); box-shadow: var(--shadow-lime); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { background: var(--surface2); color: var(--text-dim); cursor: not-allowed; box-shadow: none; transform: none; }

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
}
.btn-ghost:hover { border-color: var(--border-bright); color: var(--text); }

.btn-danger {
    background: var(--red);
    color: #fff;
    border-radius: var(--radius);
}
.btn-danger:hover { opacity: 0.85; box-shadow: 0 0 20px var(--red-glow); }

/* ============================================
   ALERT
============================================ */
.alert {
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    border-left: 3px solid;
}
.alert-error { background: rgba(255,71,87,0.1); border-color: var(--red); color: #ff8898; }
.alert-success { background: rgba(200,241,53,0.08); border-color: var(--lime); color: #d4f560; }
.alert-info { background: rgba(112,112,160,0.1); border-color: var(--border-bright); color: var(--text-muted); }

/* ============================================
   PAGE HEADER
============================================ */
.page-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.page-header h1 { font-size: 2rem; margin-bottom: 0.4rem; }
.page-header p { color: var(--text-muted); font-size: 0.95rem; }

/* ============================================
   DIVIDER
============================================ */
.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--text-dim);
    font-size: 0.8rem;
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ============================================
   BADGE
============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.65rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-green { background: rgba(200,241,53,0.12); color: var(--lime); }
.badge-red { background: rgba(255,71,87,0.12); color: var(--red); }

/* ============================================
   TABLE
============================================ */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.data-table th {
    text-align: left;
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
}
.data-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface); color: var(--text); }

/* ============================================
   STAT CARDS
============================================ */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
}
.stat-val {
    font-family: 'Syne', sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--lime);
    line-height: 1;
    margin-bottom: 0.3rem;
}
.stat-lbl {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
@media(max-width: 480px) { .stats-row { grid-template-columns: 1fr 1fr; } }

/* ============================================
   SECTION HEADER
============================================ */
.section-hd {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.section-hd h3 {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ============================================
   ANIMATIONS
============================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.4s ease both; }
.fade-up-2 { animation: fadeUp 0.4s 0.08s ease both; }
.fade-up-3 { animation: fadeUp 0.4s 0.16s ease both; }
.fade-up-4 { animation: fadeUp 0.4s 0.24s ease both; }
