﻿

/* ================= ROOT ================= */
.events-calendar {
    font-family: Segoe UI, Arial, sans-serif;
    padding: 18px 24px;
}
/* ================= ADD EVENT ================= */


    /* IMPORTANT:
   - Do NOT use fixed height with large padding
   - Use min-height + box-sizing
*/
    .add-event-box input,
    .add-event-box select {
        min-height: 32px; /* allows content to size correctly */
        padding: 6px 8px; /* safe vertical padding */
        font-size: 13px;
        border: 1px solid #cfcfcf;
        border-radius: 3px;
        box-sizing: border-box; /* CRITICAL */
        background-color: #fff;
    }

        /* Event Title – slightly larger but still safe */
        .add-event-box input[placeholder="Event Title"] {
            min-height: 40px;
            padding: 8px 12px;
            font-size: 14px;
        }

/* ================= VIEW SWITCH ================= */


/* ================= HEADER ================= */

.month-title {
    text-align: center;
    font-size: 22px;
    font-weight: 500;
}

/* ================= MAIN LAYOUT ================= */

/* ================= GRID ================= */


/* ================= CELLS ================= */


    .calendar-cell.other-month {
        opacity: .6;
    }

.cell-date {
    font-weight: 600;
    margin-bottom: 4px;
}

/* ================= EVENTS ================= */


/* ================= LIST / WEEK ================= */
/* ================= DAY VIEW ================= */

/* ================= EVENT DETAILS ================= */

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
    .calendar-layout {
        grid-template-columns: 1fr;
    }

    .calendar-details {
        border-left: none;
        padding-left: 0;
        margin-top: 16px;
    }
}

.add-event-box input[placeholder="Event Title"] {
    width: 360px; /* increase length only */
}
.details-table {
    width: 100%;
    table-layout: fixed;
    margin-bottom: 15px;
}

    .details-table td {
        border: none !important;
        vertical-align: top;
        padding: 10px 8px;
    }

    .details-table .label-cell {
        width: 45%;
    }

    .details-table .value-gap {
        width: 10%;
    }

    .details-table strong {
        display: block;
        margin-bottom: 4px;
        white-space: nowrap;
        font-size: 13px;
    }

    .details-table span {
        display: block;
        font-size: 13px;
    }

.free-event {
    margin: 18px 0;
    font-size: 13px;
    font-weight: 600;
}
.event-location-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin-top: 16px;
    font-size: 13px;
}

    .event-location-table th,
    .event-location-table td {
        border: 1px solid var(--mud-palette-lines-default);
        padding: 8px;
        text-align: left;
        vertical-align: middle;
        word-break: break-word;
    }

        .event-location-table th:first-child,
        .event-location-table td:first-child {
            width: 40px;
            text-align: center;
        }

        .event-location-table th:nth-child(2),
        .event-location-table td:nth-child(2) {
            width: 28%;
        }

        .event-location-table th:nth-child(3),
        .event-location-table td:nth-child(3),
        .event-location-table th:nth-child(4),
        .event-location-table td:nth-child(4) {
            width: 30%;
        }
.alert-danger {
    background: #f8d7da;
    border: 1px solid #f5c2c7;
    color: #842029;
    padding: 12px 16px;
    border-radius: 3px;
    margin-bottom: 20px;
    font-size: 13px;
}
/* ===== Month Calendar ===== */

.month-calendar {
    display: grid;
    grid-template-columns: repeat(7,1fr);
    border: 1px solid;
}

.month-header {
    display: grid;
    grid-template-columns: repeat(7,1fr);
    text-align: center;
    font-weight: 600;
    border: 1px solid;
    border-bottom: none;
}

.month-day-name {
    padding: 8px;
}

.month-grid {
    display: grid;
    grid-template-columns: repeat(7,1fr);
    border-left: 1px solid;
    border-top: 1px solid;
}

.month-cell {
    min-height: 140px;
    padding: 5px;
    position: relative;
    border-right: 1px solid;
    border-bottom: 1px solid;
}

.month-date {
    text-align: right;
    font-size: 12px;
    margin-bottom: 4px;
}

.month-event {
    color: #fff;
    padding: 2px 4px;
    margin-top: 2px;
    border-radius: 2px;
    font-size: 11px;
    cursor: pointer;
}
/* ================= WEEK VIEW ================= */

.week-calendar {
    display: grid;
    grid-template-columns: 45px repeat(7,1fr);
    border-top: 1px solid;
    border-left: 1px solid;
}

.week-empty-header {
    height: 40px;
    border-right: 1px solid;
    border-bottom: 1px solid;
}

.week-day-header {
    height: 40px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    padding-top: 8px;
    border-right: 1px solid;
    border-bottom: 1px solid;
}

.week-time {
    height: 55px;
    padding: 4px;
    font-size: 12px;
    border-right: 1px solid;
    border-bottom: 1px solid;
}

.week-cell {
    position: relative;
    height: 55px;
    border-right: 1px solid;
    border-bottom: 1px solid;
}

.week-event {
    position: absolute;
    left: 2px;
    right: 2px;
    top: 2px;
    padding: 4px;
    color: white;
    font-size: 11px;
    border-radius: 3px;
    cursor: pointer;
}
/* ================= DAY VIEW ================= */

.day-calendar {
    display: grid;
    grid-template-columns: 50px 1fr;
    border-top: 1px solid;
    border-left: 1px solid;
}

.day-empty-header {
    height: 35px;
    border-right: 1px solid;
    border-bottom: 1px solid;
}

.day-header {
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-right: 1px solid;
    border-bottom: 1px solid;
}

.day-time {
    height: 55px;
    padding: 4px;
    font-size: 12px;
    border-right: 1px solid;
    border-bottom: 1px solid;
}

.day-cell {
    position: relative;
    height: 55px;
    border-right: 1px solid;
    border-bottom: 1px solid;
}

.day-event {
    position: absolute;
    left: 5px;
    right: 5px;
    top: 2px;
    padding: 4px;
    border-radius: 3px;
    color: #fff;
    font-size: 11px;
    cursor: pointer;
}
/* ================= LIST VIEW ================= */

.list-container {
    border: 1px solid;
}

.list-date-header {
    padding: 10px;
    font-weight: 600;
    border-top: 1px solid;
}

.list-event {
    display: flex;
    align-items: center;
    padding: 12px;
    border-top: 1px solid;
    cursor: pointer;
}

.list-event-time {
    width: 160px;
    font-size: 13px;
}

.list-event-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

.list-event-title {
    flex: 1;
}

.list-empty {
    padding: 30px;
    text-align: center;
    font-size: 14px;
}
/* Toolbar above calendar */
.calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin-bottom: 16px;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.toolbar-center {
    flex: 1;
    text-align: center;
}

    .toolbar-center h4 {
        margin: 0;
        font-weight: 500;
    }

.toolbar-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    flex: 1;
}
.event-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 36px;
    row-gap: 18px;
    margin: 18px 0;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.detail-value {
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
}