/* --- STIJLEN SPECIFIEK VOOR ACTIVITEITENPAGINA --- */
/* Gebruikt de :root variabelen uit style.css */

/* LAYOUT ------------------------- */
.main-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 30px;
}
.activities-section, .panel-section {
    background-color: var(--white-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}
.right-panel {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.panel-section .section-title {
    font-size: 1.8rem;
    font-family: var(--header-font);
    color: var(--dark-color);
    text-align: left;
    margin-bottom: 20px;
}


/* ACTIVITEITEN LIJST ------------------------- */
.activities-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.month-nav { display: flex; align-items: center; gap: 1rem; }

.nav-btn {
    background-color: transparent; /* Maak de achtergrond doorzichtig */
    color: var(--dark-color); /* De pijl krijgt de donkere kleur */
    border: 2px solid var(--dark-color); /* Geef het een strakke rand */
    width: 40px; /* Iets groter voor een betere klikbaarheid */
    height: 40px;
    border-radius: 50%; /* Maakt de knop perfect rond */
    cursor: pointer;
    
    /* Zorgt ervoor dat het SVG-icoon netjes in het midden staat */
    display: flex;
    justify-content: center;
    align-items: center;
    
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: var(--dark-color); /* Donkere achtergrond bij hover */
    color: var(--accent-color); /* Gele pijl bij hover */
}

/* Nu vervangen we de tekst-pijltjes door SVG-iconen */
.nav-btn {
    font-size: 0; /* Verberg het originele < en > teken */
}

.nav-btn::before {
    content: '';
    width: 1em; /* Basisgrootte van het icoon */
    height: 1em;
    font-size: 18px; /* Grootte van het icoon aanpassen */
    background-color: currentColor; /* Neemt de 'color' van .nav-btn over */
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-position: center;
            mask-position: center;
}

/* Specifiek icoon voor de 'vorige' knop */
button[onclick="changeMonth(-1)"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z'/%3E%3C/svg%3E");
}

/* Specifiek icoon voor de 'volgende' knop */
button[onclick="changeMonth(1)"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z'/%3E%3C/svg%3E");
}

.current-month {
    font-size: 1.5rem; font-weight: 700; font-family: var(--header-font);
    color: var(--dark-color); min-width: 180px; text-align: center;
}
.activities-list { overflow-y: auto; padding-right: 5px; }

.activity-item {
    background-color: var(--bg-color);
    border: 1px solid #eee;
    border-left: 4px solid #eee;
    border-radius: 8px; margin-bottom: 10px; padding: 15px;
    cursor: pointer; transition: all 0.3s ease;
    display: flex; align-items: center; gap: 20px;
}
.activity-item:hover {
    border-left-color: var(--accent-color);
    background-color: var(--white-color);
}
.activity-item.selected {
    border-left-color: var(--accent-color);
    border-color: var(--accent-color);
    background-color: #fffcf0;
}
.activity-date .day-name { color: #888; font-weight: 600; }
.activity-date .date-number { font-size: 24px; font-weight: 700; line-height: 1; color: var(--dark-color); }
.activity-content .activity-title { font-weight: 700; color: var(--dark-color); }


/* ACTIVITEIT DETAILS  ------------------------- */
.activity-details, .participation-form {
    min-height: 150px; /* Zorgt voor consistente hoogte */
}
.no-activity, #noParticipation {
    text-align: center; color: var(--text-color); font-style: italic; padding: 40px 0;
}
.activity-info { display: none; }
.activity-info.active { display: grid; gap: 12px; } /* Gebruik grid voor uitlijning */
.info-row {
    display: grid;
    grid-template-columns: 120px 1fr; /* Vaste breedte voor label, rest voor waarde */
    align-items: start;
}
.info-label { font-weight: 700; color: var(--dark-color); }
.info-value { color: #555; }
.participants-list { display: flex; flex-wrap: wrap; gap: 5px; }
.participant-tag {
    background-color: var(--accent-color);
    color: var(--dark-color);
    padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: 600;
}


/* DEELNAME FORMULIER  ------------------------- */
.participation-form { display: none; }
.participation-form.active { display: block; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 700; color: var(--dark-color); }
.form-input {
    width: 100%; padding: 1rem; border: 1px solid #ddd; border-radius: 8px;
    font-family: var(--body-font); font-size: 1rem;
}
.form-input:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(254, 191, 17, 0.2); }
.form-buttons { display: flex; gap: 10px; margin-top: 20px; }
.btn {
    padding: 0.8rem 1.5rem; border: none; border-radius: 8px;
    cursor: pointer; font-weight: 700; transition: all 0.3s ease;
    border: 2px solid transparent;
}
.btn-primary { background: var(--dark-color); color: var(--accent-color); }
.btn-secondary { background: transparent; color: var(--dark-color); border-color: var(--dark-color); }
.btn:hover { transform: translateY(-2px); }
.form-note { margin-top: 15px; color: var(--text-color); font-size: 0.9em; }


/* BERICHTEN ------------------------- */
.messages-list { max-height: 250px; overflow-y: auto; padding-right: 5px; }
.message-item {
    background-color: var(--bg-color);
    border: 1px solid #eee;
    padding: 15px; border-radius: 8px; margin-bottom: 10px;
    cursor: pointer; transition: background-color 0.3s ease;
}
.message-item:hover { background-color: #e9e9e9; }
.message-date { font-size: 12px; color: var(--text-color); margin-bottom: 5px; }
.message-subject { font-weight: 600; color: var(--dark-color); }


/* MODAL ------------------------- */
.modal {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0;
    width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7);
}
.modal.active { display: flex; align-items: center; justify-content: center; }
.modal-content {
    background-color: var(--white-color); padding: 30px; border-radius: 8px;
    max-width: 600px; max-height: 80vh; overflow-y: auto;
    margin: 20px; position: relative; box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.modal-close {
    position: absolute; top: 10px; right: 15px; background: none; border: none;
    color: var(--text-color); font-size: 28px; cursor: pointer;
}
.modal-title {
    color: var(--dark-color); margin-bottom: 15px; font-family: var(--header-font);
}


/* --- STIJL VOOR HET BREDERE BERICHTENBLOK --- */

.messages-full-width {
    margin-top: 30px;
    margin-bottom: 4rem;
}

.messages-full-width .messages-list {
    max-height: none;
}

.messages-full-width .section-title {
    text-align: center;
}


/* RESPONSIVE ------------------------- */
@media (max-width: 900px) {
    .main-content { grid-template-columns: 1fr; }
}