/* dagwijding.css — Styling voor de dagwijding pagina */
/* Consistent met het Koningsdag thema */

/* ========================================
   PUBLIEKE PAGINA
   ======================================== */

.dw-header-simple {
    padding: 150px var(--safe-padding, 8%) 40px; /* Meer ruimte aan de bovenkant om menu te ontwijken */
    text-align: center;
    background: #f7f7f7;
}

.dw-header-simple h1 {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(1.6rem, 3.5vw, 2.1rem); /* Iets kleiner gemaakt */
    color: var(--adv-blue);
    margin-bottom: 10px;
}

.dw-header-simple .dw-datum {
    font-size: 1rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

/* Dagwijding kaart (vandaag) */
.dw-vandaag {
    max-width: 800px;
    margin: 30px auto 60px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
    z-index: 5;
}

.dw-vandaag-inner {
    padding: 50px 45px;
}

.dw-titel {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--adv-blue, #004682);
    margin-bottom: 30px;
    line-height: 1.3;
}

.dw-bijbeltekst {
    border-left: 4px solid var(--adv-blue, #004682);
    padding: 20px 25px;
    margin: 30px 0;
    background: rgba(0, 70, 130, 0.03);
    border-radius: 0 8px 8px 0;
}

.dw-bijbeltekst p {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 10px;
}

.dw-bijbeltekst .dw-verwijzing {
    font-family: 'Noto Sans', sans-serif;
    font-style: normal;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--adv-blue, #004682);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0;
}

.dw-overdenking {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #444;
    margin-top: 30px;
}

.dw-overdenking p {
    margin-bottom: 15px;
}

.dw-afbeelding {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.dw-geen-vandaag {
    max-width: 800px;
    margin: -40px auto 60px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    padding: 60px 45px;
    text-align: center;
    position: relative;
    z-index: 5;
}

.dw-geen-vandaag i {
    font-size: 3rem;
    color: var(--adv-blue, #004682);
    opacity: 0.3;
    margin-bottom: 20px;
}

.dw-geen-vandaag p {
    font-size: 1.1rem;
    color: #888;
}

/* Archief sectie */
.dw-archief {
    max-width: 800px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.dw-archief h2 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.6rem;
    color: var(--adv-blue, #004682);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 70, 130, 0.1);
}

.dw-maand-groep {
    margin-bottom: 40px;
}

.dw-maand-titel {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.2rem;
    color: var(--adv-dark, #222);
    margin-bottom: 15px;
    text-transform: capitalize;
}

.dw-archief-item {
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.dw-archief-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.dw-archief-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    background: white;
    gap: 15px;
    user-select: none;
    transition: background 0.2s;
}

.dw-archief-header:hover {
    background: #fafafa;
}

.dw-archief-datum {
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    background: var(--adv-blue, #004682);
    padding: 6px 12px;
    border-radius: 4px;
    white-space: nowrap;
    min-width: 50px;
    text-align: center;
}

.dw-archief-datum .dw-dag-nr {
    font-size: 1.2rem;
    display: block;
    line-height: 1;
}

.dw-archief-datum .dw-dag-naam {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.dw-archief-titel {
    flex: 1;
    font-weight: 500;
    color: var(--adv-dark, #222);
    font-size: 0.95rem;
}

.dw-archief-chevron {
    color: #ccc;
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.dw-archief-item.open .dw-archief-chevron {
    transform: rotate(180deg);
}

.dw-archief-body {
    display: none;
    padding: 20px 25px;
    background: #fcfcfc;
    border-top: 1px solid #eee;
}

.dw-archief-item.open .dw-archief-body {
    display: block;
}

.dw-archief-body .dw-bijbeltekst {
    margin: 15px 0;
}

.dw-archief-body .dw-overdenking {
    margin-top: 15px;
    font-size: 0.95rem;
}

.dw-archief-body .dw-archief-afbeelding {
    max-width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 6px;
    margin-top: 15px;
}

/* ========================================
   ADMIN PAGINA
   ======================================== */

.dw-admin-wrap {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Login */
.dw-login-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 20px;
}

.dw-login-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    padding: 50px 40px;
    max-width: 420px;
    width: 100%;
    text-align: center;
}

.dw-login-box h2 {
    font-family: 'Libre Baskerville', serif;
    color: var(--adv-blue, #004682);
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.dw-login-box p {
    color: #888;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.dw-login-box .dw-form-group {
    margin-bottom: 20px;
    text-align: left;
}

/* Formulier elementen */
.dw-form-group {
    margin-bottom: 20px;
}

.dw-form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--adv-dark, #222);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.dw-form-group label .required {
    color: #e74c3c;
}

.dw-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: white;
    box-sizing: border-box;
}

.dw-input:focus {
    outline: none;
    border-color: var(--adv-blue, #004682);
    box-shadow: 0 0 0 3px rgba(0, 70, 130, 0.1);
}

textarea.dw-input {
    resize: vertical;
    min-height: 100px;
}

textarea.dw-input.dw-textarea-large {
    min-height: 200px;
}

.dw-file-input {
    padding: 10px;
    border: 2px dashed #d0d0d0;
    border-radius: 8px;
    cursor: pointer;
    background: #fafafa;
    transition: border-color 0.3s;
}

.dw-file-input:hover {
    border-color: var(--adv-blue, #004682);
}

/* Knoppen */
.dw-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.dw-btn-primary {
    background: var(--adv-blue, #004682);
    color: white;
}

.dw-btn-primary:hover {
    background: #003366;
    box-shadow: 0 4px 15px rgba(0, 70, 130, 0.3);
    color: white;
    text-decoration: none;
}

.dw-btn-success {
    background: #27ae60;
    color: white;
}

.dw-btn-success:hover {
    background: #219a52;
}

.dw-btn-danger {
    background: #e74c3c;
    color: white;
}

.dw-btn-danger:hover {
    background: #c0392b;
}

.dw-btn-outline {
    background: transparent;
    border: 2px solid #ddd;
    color: #666;
}

.dw-btn-outline:hover {
    border-color: var(--adv-blue, #004682);
    color: var(--adv-blue, #004682);
    text-decoration: none;
}

.dw-btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
}

/* Admin header */
.dw-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 15px;
}

.dw-admin-header h1 {
    color: var(--adv-blue, #004682);
    font-size: 1.4rem;
    margin: 0;
}

.dw-admin-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Admin tabel */
.dw-tabel-wrap {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 30px;
}

.dw-tabel-wrap h3 {
    font-family: 'Libre Baskerville', serif;
    color: var(--adv-blue, #004682);
    padding: 20px 25px 0;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.dw-tabel {
    width: 100%;
    border-collapse: collapse;
}

.dw-tabel th {
    text-align: left;
    padding: 14px 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 600;
}

.dw-tabel td {
    padding: 14px 20px;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.9rem;
    color: #444;
}

.dw-tabel tr:last-child td {
    border-bottom: none;
}

.dw-tabel tr:hover td {
    background: #fafafa;
}

.dw-tabel .dw-datum-cell {
    font-weight: 600;
    color: var(--adv-dark, #222);
    white-space: nowrap;
}

.dw-tabel .dw-vandaag-row td {
    background: rgba(0, 70, 130, 0.04);
}

.dw-tabel .dw-actions-cell {
    white-space: nowrap;
    display: flex;
    gap: 6px;
}

.dw-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dw-badge-vandaag {
    background: #ffd700;
    color: #333;
}

.dw-badge-toekomst {
    background: rgba(0, 70, 130, 0.1);
    color: var(--adv-blue, #004682);
}

.dw-badge-verleden {
    background: #f0f0f0;
    color: #999;
}

/* Formulier kaart */
.dw-form-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 35px 30px;
    margin-bottom: 30px;
}

.dw-form-card h2 {
    font-family: 'Libre Baskerville', serif;
    color: var(--adv-blue, #004682);
    font-size: 1.4rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 70, 130, 0.08);
}

.dw-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dw-form-actions {
    margin-top: 30px;
    display: flex;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.dw-current-image {
    margin-top: 10px;
}

.dw-current-image img {
    max-width: 200px;
    max-height: 120px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #eee;
}

.dw-current-image label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.85rem;
    font-weight: 400;
    color: #e74c3c;
    cursor: pointer;
}

.dw-btn-text-danger {
    background: transparent;
    border: none;
    color: #e74c3c;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s;
}

.dw-btn-text-danger:hover {
    opacity: 0.8;
}

/* Modal voor Cropping */
.dw-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.dw-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.dw-modal-content h3 {
    font-family: 'Libre Baskerville', serif;
    color: var(--adv-blue);
    margin-top: 0;
    margin-bottom: 20px;
}

.dw-cropper-container {
    width: 100%;
    max-height: 60vh;
    background: #f0f0f0;
    margin-bottom: 25px;
    overflow: hidden;
    border-radius: 8px;
}

.dw-cropper-container img {
    max-width: 100%;
}

.dw-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.dw-cropper-tools {
    display: flex;
    gap: 8px;
}

.dw-cropper-tools .dw-btn {
    padding: 8px 12px;
    font-size: 1rem;
}

/* Meldingen */
.dw-alert {
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dw-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.dw-alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.dw-alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Wachtwoord wijzigen sectie */
.dw-password-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.dw-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #aaa;
}

.dw-empty-state i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

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

@media (max-width: 768px) {
    .dw-vandaag-inner {
        padding: 30px 20px;
    }

    .dw-hero {
        padding: 60px 20px 50px;
    }
    
    .dw-form-row {
        grid-template-columns: 1fr;
    }
    
    .dw-admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dw-tabel th:nth-child(3),
    .dw-tabel td:nth-child(3) {
        display: none; /* Verberg verwijzing op mobiel */
    }

    .dw-archief-header {
        padding: 12px 15px;
    }

    .dw-form-actions {
        flex-direction: column;
    }

    .dw-form-actions .dw-btn {
        width: 100%;
        justify-content: center;
    }
}
