/* Timetable Grid System */
.agenda-week-grid {
    display: grid;
    grid-template-columns: 60px repeat(7, 1fr);
    /* Time column + 7 Days */
    /* Rows will be defined by time slots (e.g., 15min or 30min increments) */
    grid-auto-rows: 40px;
    /* Base height for 1 hour approx, but we use calculations */
    gap: 1px;
    background-color: #e5e7eb;
    /* Grid line color */
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
    position: relative;
    overflow-x: auto;
}

/* Header Cells (Days) */
.agenda-header {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    grid-row: 1;
    /* Always first row */
}

/* Time Column cells */
.agenda-time-col {
    background-color: #ffffff;
    color: #6c757d;
    font-size: 0.75rem;
    display: flex;
    align-items: start;
    justify-content: center;
    padding-top: 5px;
    border-right: 1px solid #e5e7eb;
    grid-column: 1;
}

/* Empty grid slots background */
.agenda-slot-bg {
    background-color: #ffffff;
    grid-column-end: span 1;
    grid-row-end: span 1;
}

/* Actual Event Cards */
/* Actual Event Cards */
.agenda-event {
    z-index: 10;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 3px solid rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Overlapping handling */
    opacity: 0.85;
    border: 1px solid rgba(255, 255, 255, 0.5);
    mix-blend-mode: multiply;
    /* Helps seeing overlaps on supported browsers */
}

.agenda-event:hover {
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 100 !important;
    /* Force on top */
    opacity: 1;
    mix-blend-mode: normal;
    border-color: white;
}

.agenda-event strong {
    display: block;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agenda-event span {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* Badge for "Closed" or special status if needed */
.agenda-status-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: white;
}