/* -------------------------------------------------
   DBMS Planner - Frontend Styling (v0.6)
   ------------------------------------------------- */

/* === DBMS Planner Checkbox Toggle (gecombineerde versie) === */

.dbms-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
    padding: 6px 8px;
    background: #f9fafb;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.dbms-toggle:hover {
    background: #eefaf1;
    transform: scale(1.01);
}

/* Verberg native checkbox maar laat het aanklikbaar */
.dbms-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* visueel blokje */
.dbms-box {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    background: #16a34a; /* groen standaard */
    border: 1px solid #0f8a3b;
    transition: all 0.25s ease-in-out;
}

/* Vinkje bij checked */
.dbms-toggle input[type="checkbox"]:checked + .dbms-box::after {
    content: "✓";
}

/* Uitgevinkt = rood kruisje */
.dbms-toggle input[type="checkbox"]:not(:checked) + .dbms-box {
    background: #dc2626;
    border-color: #b91c1c;
}
.dbms-toggle input[type="checkbox"]:not(:checked) + .dbms-box::after {
    content: "✕";
}

/* Hover glow */
.dbms-toggle:hover .dbms-box {
    box-shadow: 0 0 4px rgba(0, 142, 71, 0.3);
}

/* Tekstgedeelte */
.dbms-text {
    flex: 1;
    color: #111827;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* focus toegankelijkheid */
.dbms-toggle:focus-within {
    outline: 2px solid #008e47;
    outline-offset: 3px;
    border-radius: 10px;
}


.dbms-counter {
    margin-top: 1.2rem;
    padding: 0.8rem 1rem;
    background: #f5f9f6;
    border: 1px solid #cde6d3;
    border-radius: 10px;
    font-size: 1rem;
    color: #155724;
}

/* Beschikbare datumtekst */
.dbms-event-date {
    font-size: 1rem;
    color: #333;
}

/* Bevestigingsmelding */
.dbms-notice {
    background: #e6fff1;
    border: 1px solid #b6e5c3;
    color: #005d2a;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.dbms-error {
    background: #ffecec;
    border: 1px solid #f3aaaa;
    color: #900;
    padding: 1rem;
    border-radius: 10px;
}

/* Mobile responsiviteit */
@media (max-width: 600px) {
    .dbms-form {
        /*padding: 1rem;*/
    }
    .dbms-toggle-box {
        width: 20px;
        height: 20px;
    }
    .dbms-event-date {
        font-size: 0.95rem;
    }
}


/* Event lijst uitbreidingen */
.dbms-event {
    border-bottom: 1px solid #eee;
    padding: 0.5rem 0 0.75rem;
}

.dbms-event:last-child {
    border-bottom: none;
}

.dbms-event-main {
    display: flex;
    flex-direction: column;
}

.dbms-event-title {
    font-weight: 600;
    color: #333;
    margin-top: 2px;
}

.dbms-event-more {
    margin-left: 30px;
    padding: 0.4rem 0.6rem;
    background: #f8f9f8;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #444;
}

.dbms-event-toggle {
    display: inline-block;
    padding: 3px 8px;
    background-color: #F3F4F6;       /* iets donkerder dan #F9FAFB */
    border: 1px solid #D1D5DB;       /* subtiele rand */
    border-radius: 4px;
    color: #1F2937;                  /* bijna zwart voor goed contrast */
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.dbms-event-toggle:hover {
    background-color: #E5E7EB;       /* iets donkerder bij hover */
    border-color: #9CA3AF;
}

.dbms-event-details {
    display: none;
    margin-top: 6px;
    background: #f9faf9;
    border-left: 3px solid #2271b1;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #333;
}

.dbms-event-link {
    color: #0a7b42;
    font-weight: 500;
    text-decoration: none;
}
.dbms-event-link:hover {
    text-decoration: underline;
}


.dbms-privacy-note {
    background: #f7f9f8;
    border-left: 4px solid #008e47;
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #374151;
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.dbms-privacy-note a {
    color: #0a7b42;
    text-decoration: underline;
}

