/* Main agenda table styles */
.mitis-agenda-tabel {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    font-family: Arial, sans-serif;
}

/* Each agenda item row */
.mitis-agenda-item {
    background-color: var(--bg-color);
    color: white; /* default fallback */
    transition: background-color 0.3s ease;
}

.mitis-agenda-tabel {
    width: 100%;
    border-collapse: separate; /* IMPORTANT for border-radius on table */
    border-spacing: 0;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    overflow: hidden; /* to clip any overflow */
}

/* Also round the top left/right corners of the first row's first and last cells */
.mitis-agenda-tabel tbody tr:first-child td:first-child {
    border-top-left-radius: 15px;
}

.mitis-agenda-tabel tbody tr:first-child td:last-child {
    border-top-right-radius: 15px;
}

/* Apply overflow hidden so border-radius applies nicely */
.mitis-agenda-item.first-item > td {
    overflow: hidden;
}

/* Font color classes */
.mitis-agenda-item.white {
    color: white;
}

.mitis-agenda-item.black {
    color: black;
}

/* Date column styling */
.agenda-datum {
    width: 170px;
    vertical-align: top;
    padding: 10px;
}

/* Date box with white background and rounded corners */
.agenda-datum-box {
    background: white;
    border-radius: 15px; /* full rounding for the small date box */
    padding: 10px;
    color: #000000;
}

/* Day number styling */
.agenda-dag {
    font-size: 40px;
    font-weight: bold;
    line-height: 1;
}

/* End day (for multi-day events) styling */
.agenda-dag-einde {
    font-size: 16px;
    font-weight: normal;
    margin-left: 6px;
}

/* Month name styling */
.agenda-maand {
    font-size: 14px;
    margin-top: 4px;
}

/* Details column styling */
.agenda-details {
    padding: 10px;
    vertical-align: top;
}

/* Title of the agenda item */
.agenda-titel {
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 8px;
}

/* Time range and subject text */
.agenda-tijd,
.agenda-onderwerp {
    font-size: 16px;
    margin-bottom: 6px;
}

/* Optional: hover effect on rows */
.mitis-agenda-item:hover {
    filter: brightness(0.9);
    cursor: pointer;
}

/* Responsive tweaks (optional) */
@media (max-width: 600px) {
    .agenda-datum {
        width: 100px;
        padding: 6px;
    }

    .agenda-dag {
        font-size: 30px;
    }

    .agenda-titel {
        font-size: 28px;
    }

    .agenda-tijd,
    .agenda-onderwerp {
        font-size: 14px;
    }
}
