/* ============================================================
   CONTROLES
============================================================ */

.planning-controls {
    width: 90%;
    margin: 20px auto 30px auto;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.control-select {
    padding: 10px 16px;
    font-size: 18px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.15);
    color: white;
    backdrop-filter: blur(8px);
    cursor: pointer;
    min-width: 200px;
    transition: 0.25s;
}

.control-select:hover {
    background: rgba(255,255,255,0.25);
}

/* ============================================================
   KAARTEN
============================================================ */

.cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    width: 90%;
    margin: 0 auto;
}

.card {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 18px;
    min-height: 150px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
    transition: 0.25s;
}

.card:hover {
    transform: translateY(-4px);
}

.card h2 {
    margin: 0 0 14px 0;
    font-size: 22px;
    color: #7EC8FF;
    border-bottom: 1px solid rgba(255,255,255,0.18);
    padding-bottom: 6px;
}

/* ============================================================
   PERSONEN
============================================================ */

.persoon-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.22);
    border-radius: 10px;
    backdrop-filter: blur(8px);
    border-left: 4px solid #7EC8FF;
}

.persoon-row span {
    background: white;
    color: #000;
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 600;
    flex: 1;
}

.add-btn {
    background: #7EC8FF;
    color: #000;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: bold;
    cursor: pointer;
    transition: 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.25);
}

.add-btn:hover {
    background: #a7e0ff;
}

.remove-btn {
    background: #ff4d4d;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: bold;
    cursor: pointer;
    transition: 0.25s;
}

.remove-btn:hover {
    background: #cc0000;
}

/* ============================================================
   BIJZONDERHEDEN
============================================================ */

.bijzonderheden-container {
    margin: 30px auto;
    padding: 24px;
    background: rgba(255,255,255,0.15);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    width: 90%;
}

.bijzonderheden-container h2 {
    color: #7EC8FF;
    margin-bottom: 12px;
}

.bijzonderheden-textarea {
    width: 100%;
    height: 140px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.85);
    font-size: 16px;
    resize: vertical;
}

/* ============================================================
   POPUP
============================================================ */

.popup {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.55);
    z-index: 999;
}

.popup-content {
    background: rgba(255,255,255,0.18);
    border-radius: 14px;
    backdrop-filter: blur(14px);
    padding: 26px;
    width: 420px;
    color: white;
    box-shadow: 0 0 30px rgba(0,0,0,0.55);
}

.popup-content h2 {
    margin-top: 0;
    margin-bottom: 18px;
    color: #7EC8FF;
}

.popup-content label {
    display: block;
    margin-top: 12px;
    margin-bottom: 6px;
    font-size: 15px;
}

.popup-content select,
.popup-content textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.25);
    background: rgba(255,255,255,0.85);
    color: #000;
    font-size: 15px;
}

.popup-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

/* ============================================================
   KLEURACCENTEN
============================================================ */

.card[data-gebied="vrij"],
.card[data-gebied="vast vrij"] {
    background: rgba(0, 255, 0, 0.12);
    border-color: rgba(0, 255, 0, 0.25);
}

.card[data-gebied="verzuim"] {
    background: rgba(255, 0, 0, 0.12);
    border-color: rgba(255, 0, 0, 0.25);
}

.card[data-gebied="transport"] {
    background: rgba(0, 128, 255, 0.12);
    border-color: rgba(0, 128, 255, 0.25);
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 900px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .cards-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .planning-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .control-select,
    .dbm-button {
        width: 100%;
    }

    .popup-content {
        width: 90%;
    }
}

/* Donkere achtergrond voor dropdown opties */
.control-select option {
    background-color: rgba(20, 20, 20, 0.95);
    color: #fff;
}

/* Donkere achtergrond voor de select zelf */
.control-select {
    background-color: rgba(30, 30, 30, 0.85);
    color: #fff;
}
.control-select option:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

