/* ======================================================
   Root / Branding (houd oud systeem volledig intact)
====================================================== */
:root {
    --brand-primary: #3498db;
    --brand-dark: #2c3e50;
    --brand-gradient: linear-gradient(135deg, #3498db, #2c3e50);
}

/* ======================================================
   Base / Reset aanvullingen (Bootstrap-safe)
====================================================== */
html, body {
    height: 100%;
}

body {
    margin: 0;
    background-color: #f8f9fa;
    color: #212529;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ======================================================
   Header (branding + Bootstrap layout)
====================================================== */
.site-header {
    background: var(--brand-gradient); /* gradient zoals in buttons */
    color: #fff;
    padding: 1rem 0;
    text-align: center; /* logo in het midden */
}

.site-header .logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}


/* ======================================================
   Inline Language Selector (header only)
====================================================== */
#language-selector-inline {
    background: rgba(255,255,255,0.95);
    border-radius: 0.5rem;
    padding: 0.25rem 0.75rem;
    z-index: 1000; /* boven header-content */
    font-weight: 500;
}

#language-selector-inline a {
    text-decoration: none;
    font-weight: 500;
    color: var(--brand-primary);
    margin: 0 0.25rem;
}

#language-selector-inline a:hover {
    text-decoration: underline;
}

body.index-page #language-selector-inline {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

/* ======================================================
   Content sections
====================================================== */
.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.6s ease;
}

/* ======================================================
   Cards (consistent met case_cr.php)
====================================================== */
.card {
    border-radius: 0.5rem;
}

.card-body {
    padding: 1.75rem;
}

/* ======================================================
   Forms
====================================================== */
.form-label {
    font-weight: 500;
}

.form-control::placeholder {
    color: #adb5bd;
}

/* ======================================================
   Buttons (Bootstrap-respecterend)
====================================================== */
.btn {
    font-weight: 500;
}

.btn-primary,
.btn-success,
.btn-outline-secondary {
    min-width: 160px;
}

.btn-std {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    padding: 12px 25px;
    min-width: 160px; /* zoals wall buttons */
}

.btn-wall-style:hover {
    opacity: 0.9;
    background: linear-gradient(135deg, #2c3e50, #3498db);
}

/* ======================================================
   Alerts
====================================================== */
.alert {
    font-size: 0.95rem;
}

/* ======================================================
   Footer
====================================================== */
.site-footer {
    background-color: #ffffff;
    font-size: 0.9rem;
    text-align: center;
    padding: 20px;
    color: #777;
}

/* ======================================================
   Animations (oud gedrag)
====================================================== */
@keyframes slideUp {
    from { transform: translateY(40px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ======================================================
   Mobile tweaks (oud gedrag behouden)
====================================================== */
@media (max-width: 480px) {

    .logo {
        font-size: 1.6em;
    }

    .lang-btn,
    .btn {
        width: 100%;
    }

    #language-selector-inline {
        position: static !important;
        transform: none !important;
        width: 100%;
        text-align: center;
        margin-bottom: 1rem;
        padding: 0.5rem;
    }

    #language-selector-inline a {
        display: inline-block;
        margin: 0 5px;
    }
}
