/* Mapijamadas Calendar — Custom Styles */

/* Prevent horizontal overflow on mobile */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Mobile-friendly status bars */
@media (max-width: 767px) {
    .status-bar {
        padding: 2px 4px;
        border-left-width: 3px;
    }
    .status-bar .status-label {
        font-size: 7px;
    }
    .calendar-grid,
    #weekday-header {
        width: 100%;
        min-width: 0;
    }
    .status-bar .status-label {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Prevent calendar cell content from expanding grid columns */
.calendar-grid > div {
    overflow: hidden;
}

/* Status indicator colors */
.status-available {
    background-color: rgba(190, 250, 127, 0.2);
    border-left: 4px solid #3a6700;
}
.status-available .status-label { color: #3a6700; }

.status-booked {
    background-color: rgba(183, 0, 77, 0.1);
    border-left: 4px solid #b7004d;
}
.status-booked .status-label { color: #b7004d; }

.status-tentative {
    background-color: rgba(255, 114, 148, 0.15);
    border-left: 4px solid #ff7294;
}
.status-tentative .status-label { color: #4d001c; }

.status-personal_off {
    background-color: rgba(172, 173, 173, 0.15);
    border-left: 4px solid #acadad;
}
.status-personal_off .status-label { color: #5a5c5c; }

/* Calendar cell hover */
.calendar-cell {
    transition: background-color 0.15s ease;
}
.calendar-cell:hover {
    background-color: #f0f1f1;
}

/* Modal backdrop */
.modal-backdrop {
    background-color: rgba(45, 47, 47, 0.4);
    backdrop-filter: blur(4px);
}

/* Smooth month transitions */
.calendar-transition {
    transition: opacity 0.2s ease;
}

/* Status bar in calendar cells */
.status-bar {
    border-radius: 2px;
    padding: 4px 8px;
}

/* Scroll styling for sidebar */
.sidebar-scroll::-webkit-scrollbar {
    width: 4px;
}
.sidebar-scroll::-webkit-scrollbar-thumb {
    background-color: #e1e3e3;
    border-radius: 2px;
}
