:root {
    --bg-dark: #050509;
    --bg-panel: #111018;
    --gold: #d4af37;
    --gold-soft: #f3d88a;
    --text-light: #f7f7f7;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #f3d88a 0, #050509 55%, #000 100%);
    background-attachment: fixed;
    background-size: cover;
    color: var(--gold);
}

/* HEADER */
header {
    padding: 18px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(12px);
    background: linear-gradient(to bottom, rgba(5, 5, 9, 0.95), rgba(5, 5, 9, 0.7));
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

/* FOOTER */
footer {
    text-align: center;
    padding: 22px 16px 32px;
    font-size: 0.85rem;
    color: #aaa;
    border-top: 1px solid rgba(212, 175, 55, 0.25);
    margin-top: 40px;
}

.logo {
    font-size: 2.3rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
}

nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.25s;
}

nav a:hover::after {
    width: 100%;
}

/* MAIN */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 20px 70px;
}

/* PANEL */
.admin-panel {
    background: var(--bg-panel);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 18px;
    padding: 28px 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    margin-top: 40px;
}

.admin-panel h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: var(--gold);
}

/* ============================================= */
/* ========== FORMULIEREN (ALGEMEEN) =========== */
/* ============================================= */

form:not(.search-form) {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

form label {
    color: #ccc;
    font-weight: 500;
    font-size: 0.9rem;
}

form input {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    background: var(--bg-dark);
    color: var(--text-light);
    font-size: 1rem;
}

form input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
    outline: none;
}

/* ============================================= */
/* ================== KNOPPEN ================== */
/* ============================================= */

button {
    padding: 10px 20px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--gold), var(--gold-soft));
    color: #1a1308;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.45);
}

.btn-new {
    margin-bottom: 20px;
}

.btn-reset {
    background: #ccc;
    color: #000;
    box-shadow: none;
}

/* ============================================= */
/* =============== ZOEKFORMULIER =============== */
/* ============================================= */

.search-form {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.search-form input[type="text"] {
    width: 250px;
}

/* ============================================= */
/* ===================== TABEL ================= */
/* ============================================= */

.klanten-tabel {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.klanten-tabel th,
.klanten-tabel td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.link-detail { color: var(--gold-soft); margin-right: 10px; }
.link-edit   { color: var(--gold-soft); margin-right: 10px; }
.link-delete { color: #ff6b6b; }

/* ============================================= */
/* ===================== MODAL ================= */
/* ============================================= */

#klantModal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: modalFade 0.25s ease-out;
}

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

#klantModal .modal-content {
    background: var(--bg-panel);
    padding: 28px 30px;
    border-radius: 18px;
    width: 90%;
    max-width: 460px;
    border: 1px solid rgba(212,175,55,0.35);
    box-shadow: 0 0 25px rgba(0,0,0,0.55);
    position: relative;
    animation: modalSlide 0.25s ease-out;
}

@keyframes modalSlide {
    from { transform: translateY(-20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

#klantModal .close-btn {
    position: absolute;
    top: 12px;
    right: 18px;
    cursor: pointer;
    font-size: 24px;
    color: var(--gold-soft);
    transition: 0.2s;
}

#klantModal .close-btn:hover {
    color: var(--gold);
    transform: scale(1.15);
}

#klantModal h3 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 1.4rem;
    color: var(--gold-soft);
    text-align: center;
    letter-spacing: 0.03em;
}

#klantModal label {
    color: #e6e6e6;
}

/* Witte invoervelden in modal */
#klantModal input {
    background: #fff;
    color: #000;
    border: 1px solid #ccc;
    padding: 10px 12px;
    border-radius: 12px;
}

#klantModal input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 8px rgba(212,175,55,0.4);
    outline: none;
}

#klantModal button {
    width: 100%;
    margin-top: 10px;
    border-radius: 12px;
    padding: 12px;
    font-size: 1rem;
}
/* ============================================= */
/* =============== STATUS BADGES =============== */
/* ============================================= */

.status-click {
    cursor: pointer;
}

/* Status badge, voor oude span-weergave */
.status-gepland,
.status-afgerond,
.status-geannuleerd {
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    background: rgba(255,255,255,0.05);
    display: inline-block;
}

.status-gepland {
    color: var(--gold);
}

.status-afgerond {
    color: #6bff8f;
}

.status-geannuleerd {
    color: #ff6b6b;
}

/* Status pulldown */
.status-select {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(255,255,255,0.05);
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

.status-select.status-gepland {
    color: var(--gold);
}

.status-select.status-afgerond {
    color: #6bff8f;
}

.status-select.status-geannuleerd {
    color: #ff6b6b;
}

.status-select option {
    background: #111018;
    color: var(--text-light);
}
/* =============================================
   VIDEO ACHTERGROND
============================================= */
.bg-video {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.55;
    pointer-events: none;
}

.bg-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(11,10,9,0.35);
    z-index: -1;
    pointer-events: none;
}