/* ============================================================
   base.css — Platform breed beleid
   ============================================================ */

/* ── Reset ─────────────────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ── Body & typografie ─────────────────────────────────── */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a2e;
    color: #e0e0e0;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ── Navigatie ─────────────────────────────────────────── */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 56px;
    background: #0d1526;
    border-bottom: 1px solid #1a2a4a;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: #00d4ff;
    text-decoration: none;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #00d4ff;
}

.nav-uitloggen {
    color: #6a7a9a !important;
    font-size: 0.85rem !important;
}

.nav-uitloggen:hover {
    color: #ff4444 !important;
}

/* ── Hamburger knop ────────────────────────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #a0a0a0;
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobiel uitklapmenu ────────────────────────────────── */
.mobile-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 56px;
    right: 0;
    width: 220px;
    background: #0d1526;
    border-left: 1px solid #1a2a4a;
    border-bottom: 1px solid #1a2a4a;
    padding: 12px 0;
    z-index: 99;
    transform: translateX(100%);
    transition: transform 0.25s ease;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu a {
    padding: 14px 24px;
    color: #a0a0a0;
    font-size: 0.95rem;
    border-bottom: 1px solid #1a2040;
    transition: background 0.2s, color 0.2s;
}

.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { background: #16213e; color: #00d4ff; }

.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 98;
}

.menu-overlay.open { display: block; }

/* ── Layout ────────────────────────────────────────────── */
main {
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-container {
    max-width: 1200px;
}

.page-container h1 {
    color: #00d4ff;
    margin-bottom: 25px;
}

/* ── Flash berichten ───────────────────────────────────── */
.flash {
    background-color: #0f3460;
    border-left: 4px solid #00d4ff;
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

/* ── Secties ───────────────────────────────────────────── */
.section {
    background-color: #16213e;
    border: 1px solid #0f3460;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

.section h2 {
    color: #00d4ff;
    font-size: 1.1em;
    margin-bottom: 15px;
}

.section h3 {
    color: #a0a0a0;
    font-size: 0.9em;
    margin-bottom: 10px;
    margin-top: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header h2 { margin-bottom: 0; }

/* ── Card ──────────────────────────────────────────────── */
.card {
    background-color: #16213e;
    border: 1px solid #0f3460;
    border-radius: 12px;
    padding: 25px;
}

/* ── Danger zone ───────────────────────────────────────── */
.danger-zone {
    border-color: rgba(255, 82, 82, 0.4);
    background-color: rgba(255, 82, 82, 0.05);
}

.danger-zone h2 { color: #ff5252; }

/* ── Hulpklassen ───────────────────────────────────────── */
.label {
    color: #a0a0a0;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.muted  { color: #a0a0a0; }
.small  { font-size: 0.78em; font-weight: normal; }
.groen  { color: #00e676; }
.rood   { color: #ff5252; }

/* ── Terug knop ────────────────────────────────────────── */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #a0a0a0;
    padding: 8px 14px;
    border: 1px solid #0f3460;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.9em;
    transition: border-color 0.2s, color 0.2s;
}

.back-link:hover { border-color: #00d4ff; color: #00d4ff; }

/* ── Buttons ───────────────────────────────────────────── */
button, .btn {
    padding: 10px 20px;
    background-color: #00d4ff;
    color: #1a1a2e;
    border: none;
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    display: inline-block;
    text-align: center;
}

button:hover, .btn:hover { background-color: #00b4d8; }

.btn-small { padding: 4px 10px; font-size: 0.8em; }

.btn-secondary {
    background-color: transparent;
    border: 1px solid #0f3460;
    color: #a0a0a0;
    font-weight: normal;
}

.btn-secondary:hover {
    border-color: #00d4ff;
    color: #00d4ff;
    background-color: transparent;
}

.btn-rood {
    background-color: rgba(255, 82, 82, 0.2);
    color: #ff5252;
    border: 1px solid #ff5252;
}

.btn-rood:hover { background-color: rgba(255, 82, 82, 0.4); }

/* ── Badges ────────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
    min-width: 60px;
    text-align: center;
}

.badge-groen {
    background-color: rgba(0, 230, 118, 0.15);
    color: #00e676;
    border: 1px solid #00e676;
}

.badge-rood {
    background-color: rgba(255, 82, 82, 0.15);
    color: #ff5252;
    border: 1px solid #ff5252;
}

/* ── Forms ─────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #a0a0a0;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #0f3460;
    border-radius: 6px;
    background-color: #1a1a2e;
    color: #e0e0e0;
    font-size: 1em;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #00d4ff;
}

.inline-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.inline-form input,
.inline-form select {
    padding: 10px;
    border: 1px solid #0f3460;
    border-radius: 6px;
    background-color: #1a1a2e;
    color: #e0e0e0;
    font-size: 0.9em;
    flex: 1;
    min-width: 120px;
}

.inline-form input:focus,
.inline-form select:focus {
    outline: none;
    border-color: #00d4ff;
}

/* ── Tabellen ──────────────────────────────────────────── */
.tabel-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    min-width: 500px;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #0f3460;
    white-space: nowrap;
}

.data-table th {
    color: #a0a0a0;
    font-size: 0.85em;
    font-weight: normal;
}

.data-table tr:hover { background-color: rgba(0, 212, 255, 0.05); }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 640px) {
    /* Nav — alleen hamburger op mobiel */
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .mobile-menu { display: flex; }

    main { padding: 15px; }

    .inline-form { flex-direction: column; }
    .inline-form input,
    .inline-form select { min-width: 100%; }

    .section { padding: 16px; }
}