/* LoL Scrim Tool – Statisch Design System */
/* Geen @apply nodig – plain CSS */

:root {
    --color-brand-400: #6b8efd;
    --color-brand-500: #4361ee;
    --color-brand-600: #2f45d4;
    --color-surface-900: #0d0e1a;
    --color-surface-800: #13141f;
    --color-surface-700: #1a1c2d;
    --color-surface-600: #21243a;
    --color-surface-500: #2a2e4a;
    --color-gold-400: #f0c060;
    --color-gold-500: #e5a500;
}

/* ─── Opacity classes die Tailwind CDN niet altijd genereert ─── */
/* border-white/opacity */
.border-white\/8  { border-color: rgba(255,255,255,0.08) !important; }
.border-white\/10 { border-color: rgba(255,255,255,0.10) !important; }
.border-white\/20 { border-color: rgba(255,255,255,0.20) !important; }
.border-white\/30 { border-color: rgba(255,255,255,0.30) !important; }

/* text-white/opacity */
.text-white\/30 { color: rgba(255,255,255,0.30) !important; }
.text-white\/40 { color: rgba(255,255,255,0.40) !important; }
.text-white\/50 { color: rgba(255,255,255,0.50) !important; }
.text-white\/60 { color: rgba(255,255,255,0.60) !important; }
.text-white\/70 { color: rgba(255,255,255,0.70) !important; }

/* bg-white/opacity */
.bg-white\/5  { background-color: rgba(255,255,255,0.05) !important; }
.bg-white\/8  { background-color: rgba(255,255,255,0.08) !important; }
.bg-white\/10 { background-color: rgba(255,255,255,0.10) !important; }

/* hover:bg-white/opacity */
.hover\:bg-white\/8:hover  { background-color: rgba(255,255,255,0.08) !important; }
.hover\:bg-white\/10:hover { background-color: rgba(255,255,255,0.10) !important; }
.hover\:text-white { color: white !important; }

/* bg-surface/opacity */
.bg-surface-800\/50 { background-color: rgba(19,20,31,0.50) !important; }

/* bg-brand opacity variants */
.bg-brand-500\/20 { background-color: rgba(67,97,238,0.20) !important; }
.bg-brand-500\/15 { background-color: rgba(67,97,238,0.15) !important; }
.border-brand-500\/30 { border-color: rgba(67,97,238,0.30) !important; }
.border-brand-500\/50 { border-color: rgba(67,97,238,0.50) !important; }

/* bg-red opacity variants */
.bg-red-500\/15 { background-color: rgba(239,68,68,0.15) !important; }
.bg-red-500\/20 { background-color: rgba(239,68,68,0.20) !important; }
.border-red-500\/30 { border-color: rgba(239,68,68,0.30) !important; }

/* focus:ring */
.focus\:ring-brand-500\/50:focus { --tw-ring-color: rgba(67,97,238,0.50); }

/* ring */
.ring-white\/20 { --tw-ring-color: rgba(255,255,255,0.20); }

/* ─── Reset / Base ─── */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-surface-900);
    color: #e2e4f0;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Outfit', 'Inter', sans-serif; }

/* ─── Scrollbar ─── */
.scrollbar-thin { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.15) transparent; }
.scrollbar-thin::-webkit-scrollbar { width: 4px; }
.scrollbar-thin::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

/* ─── Knoppen ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background-color: var(--color-brand-500);
    color: white;
    box-shadow: 0 4px 14px rgba(67, 97, 238, 0.25);
}
.btn-primary:hover {
    background-color: var(--color-brand-600);
    box-shadow: 0 4px 18px rgba(47, 69, 212, 0.35);
}

.btn-ghost {
    background: transparent;
    color: rgba(255,255,255,0.7);
}
.btn-ghost:hover {
    color: white;
    background: rgba(255,255,255,0.08);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.btn-danger:hover {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

.btn-sm { font-size: 0.75rem; padding: 0.375rem 0.75rem; }

/* ─── Kaarten ─── */
.card {
    background-color: var(--color-surface-800);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0.75rem;
}

.card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-body { padding: 1.5rem; }

/* ─── Formulieren ─── */
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.375rem;
}

.form-input {
    width: 100%;
    background-color: var(--color-surface-700);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.5rem;
    padding: 0.625rem 0.875rem;
    color: white;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s ease;
}
.form-input::placeholder { color: rgba(255,255,255,0.3); }
.form-input:focus {
    border-color: rgba(67, 97, 238, 0.5);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.form-select {
    width: 100%;
    background-color: var(--color-surface-700);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.5rem;
    padding: 0.625rem 0.875rem;
    color: white;
    font-size: 0.875rem;
    outline: none;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.form-select:focus {
    border-color: rgba(67, 97, 238, 0.5);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.form-error { color: #f87171; font-size: 0.75rem; margin-top: 0.25rem; }

/* ─── Tabellen ─── */
.table { width: 100%; font-size: 0.875rem; border-collapse: collapse; }
.table thead th {
    padding: 0.75rem 1rem;
    text-align: left;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.table tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.table tbody tr { transition: background 0.15s; }
.table tbody tr:hover { background: rgba(255,255,255,0.03); }

/* ─── Badges ─── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid;
}

/* ─── Alerts ─── */
.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ─── Sidebar Navigatie ─── */
.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}
.nav-item:hover {
    color: white;
    background: rgba(255,255,255,0.08);
}
.nav-item.active {
    color: var(--color-brand-400);
    background: rgba(67, 97, 238, 0.15);
}

/* ─── Stat Kaarten ─── */
.stat-card {
    background-color: var(--color-surface-800);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0.75rem;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ─── Kleur helpers ─── */
.bg-surface-900 { background-color: var(--color-surface-900); }
.bg-surface-800 { background-color: var(--color-surface-800); }
.bg-surface-700 { background-color: var(--color-surface-700); }
.text-brand-400 { color: var(--color-brand-400); }
.text-gold-400  { color: var(--color-gold-400); }
.text-gold-500  { color: var(--color-gold-500); }
.bg-brand-500-20 { background: rgba(67, 97, 238, 0.2); }
.bg-green-500-20 { background: rgba(34, 197, 94, 0.2); }
.bg-purple-500-20 { background: rgba(168, 85, 247, 0.2); }
.bg-gold-500-10  { background: rgba(229, 165, 0, 0.1); }
.bg-cyan-500-20  { background: rgba(6, 182, 212, 0.2); }
.bg-red-500-20   { background: rgba(239, 68, 68, 0.2); }
.bg-yellow-500-10 { background: rgba(234, 179, 8, 0.1); }
