﻿body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

.calendar-container {
    background-color: #6a1b9a; /* Paarse achtergrond */
    padding: 20px;
    color: white;
    text-align: center;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 800px;
}

.calendar-day.today {
    outline: 2px solid #ffcc00;
    outline-offset: -2px;
}

.calendar-body {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr)); /* voorkomt overflow */
    grid-auto-rows: 1fr;
    gap: 2px;
    background: #f1f1f1;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.calendar-day {
    min-width: 0; /* zorgt dat lange titels de kolom niet oprekken */
    box-sizing: border-box;
}

/* --- Dagenbalk boven de kalender --- */
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #4A3C8C; /* zelfde paars als header */
    color: white;
    padding: 10px 0;
    font-weight: bold;
    text-align: center;
    font-size: 1.1em;
    width: 100%;
    box-sizing: border-box;
}



.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

    .calendar-header a {
        text-decoration: none;
        color: white;
        font-weight: bold;
        padding: 10px 15px;
        background-color: #5e35b1;
        border-radius: 5px;
    }

        .calendar-header a:hover {
            background-color: #9c27b0;
        }

.calendar-container .table {
    width: 100%;
    border-collapse: collapse;
    color: black;
}

    .calendar-container .table th,
    .calendar-container .table td {
        border: 1px solid #ddd;
        padding: 10px;
        text-align: center;
        height: 100px;
    }

    .calendar-container .table th {
        background-color: #ab47bc;
        color: white;
    }


.event {
    color: #2196f3; /* Blauw voor evenementen */
    font-size: 12px;
    font-weight: bold;
    margin-top: 5px;
}

/*@media (max-width: 576px) {
    .calendar-container {
        overflow-x: auto;
    }

    .calendar {
        min-width: 700px;
        width: 700px;
        box-sizing: border-box;
        margin: 0 auto;
    }

    html, body {
        overflow-x: hidden;
    }
}*/

@media (max-width: 576px) {
    .calendar-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .calendar {
        min-width: 700px;
        width: 700px;
        box-sizing: border-box;
        margin: 0 auto;
    }

    html, body {
        overflow-x: hidden !important;
    }

    .container, .container-fluid, .row, .col, [class*="col-"] {
        overflow-x: visible !important;
    }
}
