﻿.validation-message {
    color: #f44336;
    font-size: .8rem;
    margin: 3px 0 0;
    text-align: start;
    font-weight: 400;
    line-height: 1.66;
    letter-spacing: .03333em;
}

.mud-snackbar-location-bottom-left {
    bottom: 50px !important;
}

.mud-snackbar-location-bottom-right {
    bottom: 50px !important;
}

/* FullCalendar custom styles */
.full-calendar-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 160px); /* Adjusted to use more of the available space */
    min-height: 500px; /* Increased minimum height */
    width: 100%;
    margin-bottom: 20px;
}

.full-calendar {
    flex-grow: 1;
    width: 100%;
}

/* Scheduler container styles */
.scheduler-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 100px); /* Adjusted to take more vertical space */
    width: 100%;
    overflow: hidden; /* Prevent any potential overflow */
}

.scheduler-header {
    flex-shrink: 0;
    margin-bottom: 12px !important; /* Ensure consistent spacing */
}

/* View-specific styles to ensure proper rendering */
.fc-timeGridWeek-view, .fc-timeGridDay-view {
    min-height: 500px; /* Ensure week and day views have enough height */
}

/* Ensure time grid has proper height in week/day views */
.fc-time-grid-container {
    height: auto !important; /* Let it expand naturally */
    min-height: 400px; /* Minimum height for time grid */
}

/* Fix for timeline views if used */
.fc-timeline {
    min-height: 400px;
}

/* Responsive adjustments */
@media (max-height: 800px) {
    .full-calendar-container {
        height: calc(100vh - 140px);
    }

    .scheduler-container {
        height: calc(100vh - 80px);
    }
}

@media (max-height: 600px) {
    .full-calendar-container {
        height: calc(100vh - 120px);
    }

    .scheduler-container {
        height: calc(100vh - 70px);
    }
}

/* Make sure calendar adapts to different screen sizes */
.fc {
    height: 100% !important;
    overflow: hidden; /* Prevent scrollbars in the calendar itself */
}

/* Ensure all views have proper sizing */
.fc-view {
    height: auto !important;
    min-height: 450px; /* Ensure all views have minimum height */
    overflow: visible; /* Allow content to be visible */
}

/* Ensure day grid month view displays properly */
.fc-dayGridMonth-view {
    min-height: 450px;
}

/* Ensure all day cells are properly sized */
.fc-day {
    min-height: 80px; /* Minimum height for day cells */
}

/* Ensure calendar toolbar is visible on small screens */
@media (max-width: 768px) {
    .fc-toolbar {
        flex-direction: column;
    }

    .fc-toolbar-chunk {
        margin-bottom: 0.5rem;
    }

    /* Make buttons more responsive on small screens */
    .scheduler-header .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }

    .scheduler-header select {
        max-width: 120px;
    }

    /* Adjust heights for mobile */
    .full-calendar-container {
        min-height: 450px;
        height: calc(100vh - 130px);
    }
}