﻿#calendar {
    position: absolute; /* Ensures the calendar is positioned relative to its container */
    top: 100%; /* Positions the calendar directly below the input field */
    left: 0;
    z-index: 1000; /* Brings the calendar to the front */
    width: 100%; /* Matches the width of the input field */
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    display: none; /* Hidden by default */
}

    #calendar .calendar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        background-color: var(--drivschol-gray2, #f5f5f5);
        border-bottom: 1px solid #ccc;
    }

        #calendar .calendar-header button {
            border: none;
            background: none;
            font-size: 18px;
            cursor: pointer;
        }

            #calendar .calendar-header button:hover {
                color: #007bff;
            }

    #calendar .calendar-dates {
        display: grid;
        grid-template-columns: repeat(7, 1fr); /* 7 columns for days of the week */
        gap: 5px;
        padding: 10px;
    }

        #calendar .calendar-dates span,
        #calendar .calendar-dates button {
            text-align: center;
            padding: 10px;
            border: none;
            background: none;
            font-size: 14px;
            cursor: pointer;
        }

            #calendar .calendar-dates button:hover {
                background-color: #007bff;
                color: #fff;
                border-radius: 50%;
            }

            #calendar .calendar-dates button.active {
                background-color: #007bff;
                color: #fff;
                font-weight: bold;
                border-radius: 50%;
            }

    /* Ensure the calendar doesn't exceed its container */
    #calendar .calendar-dates {
        overflow: hidden;
    }

/* Add padding to prevent overlap at the edges */
#calendar {
    padding: 10px;
    box-sizing: border-box;
}



/* Card Container */
.custom-card {
    width: 100%;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 10px;
}

    .custom-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    }

/* Card Header */
.custom-card-header {
    background-color: #b81b0e;
    padding: 16px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* Card Body */
.custom-card-body {
    padding: 20px;
    color: #555;
    font-size: 16px;
    line-height: 1.5;
}

/* Card Footer */
.custom-card-footer {
    padding: 16px;
    background-color: #f5f5f5;
    text-align: center;
}

    .custom-card-footer a {
        color: #007bff;
        text-decoration: none;
        font-weight: 600;
    }

        .custom-card-footer a:hover {
            text-decoration: underline;
        }
/* Responsive design */
@media (max-width: 600px) {
    .custom-card {
        max-width: 100%;
        margin: 15px 0;
    }
}