#calendar {
    width: 100%;
    margin: 20px 0;
}

/* Override height constraints on FullCalendar containers (but preserve day cell scrolling) */
#calendar .fc-scroller,
#calendar .fc-scroller-liquid,
#calendar .fc-scroller-liquid-absolute {
    max-height: none !important;
    height: auto !important;
    min-height: auto !important;
}

#calendar .fc-view-harness,
#calendar .fc-view-harness-active,
#calendar .fc-daygrid-body,
#calendar .fc-daygrid-body-wrapper,
#calendar .fc-daygrid-table,
#calendar .fc-col-header,
#calendar .fc-col-header-cell,
#calendar .fc-daygrid-day-row {
    max-height: none !important;
    height: auto !important;
}

/* Preserve scrolling for day event containers ONLY */
#calendar .fc-daygrid-day-events {
    max-height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* Ensure day cells have proper structure for scrolling */
#calendar .fc-daygrid-day {
    overflow: hidden !important;
}

#calendar .fc-daygrid-day-frame {
    overflow: hidden !important;
}

/* Ensure all FullCalendar containers allow full display */
.fc {
    overflow: visible !important;
    height: auto !important;
}

.fc-view-harness {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
}

.fc-view-harness-active {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
}

/* Fix absolute positioning that prevents calendar from displaying */
.fc-view-harness-active>.fc-view {
    position: relative !important;
    height: auto !important;
    max-height: none !important;
}

.fc-view-harness>.fc-view {
    position: relative !important;
    height: auto !important;
    max-height: none !important;
}

/* Scroller must expand to fit ALL content - display all content without scrolling */
.fc-scroller {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    min-height: auto !important;
    position: relative !important;
}

.fc-scroller-liquid {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    min-height: auto !important;
    position: relative !important;
}

.fc-scroller-liquid-absolute {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    min-height: auto !important;
    position: relative !important;
}

/* Force scroller content to expand naturally */
.fc-scroller>* {
    height: auto !important;
    max-height: none !important;
    position: relative !important;
}

.fc-scroller-liquid>* {
    height: auto !important;
    max-height: none !important;
    position: relative !important;
}

.fc-daygrid-body {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    min-height: auto !important;
    display: block !important;
}

.fc-daygrid-body-wrapper {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    min-height: auto !important;
    display: block !important;
}

.fc-daygrid-table {
    height: auto !important;
    max-height: none !important;
    min-height: auto !important;
}

.fc-col-header {
    height: auto !important;
    max-height: none !important;
    min-height: auto !important;
}

.fc-col-header-cell {
    height: auto !important;
    max-height: none !important;
    min-height: auto !important;
}

/* Force all table rows to expand naturally */
.fc-daygrid-day-row {
    height: auto !important;
    max-height: none !important;
}

/* Day cells need minimum height but can grow */
.fc-daygrid-day {
    height: auto !important;
    max-height: none !important;
    min-height: 100px !important;
}

/* Override any inline styles that might be set by FullCalendar */
#calendar .fc-scroller[style*="height"],
#calendar .fc-scroller[style*="max-height"],
#calendar .fc-view-harness[style*="height"],
#calendar .fc-view-harness[style*="max-height"] {
    height: auto !important;
    max-height: none !important;
}

/* Professional calendar height based on viewport */
@media (min-width: 1024px) {

    /* Target the main FullCalendar view harness - NO height constraints */
    .fc-view-harness {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }

    .fc-view-harness-active {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }

    /* Ensure scroller allows full calendar to display - but contain overflow */
    .fc-scroller {
        overflow: hidden !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }

    .fc-scroller-liquid {
        overflow: hidden !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }

    /* Force the day grid to fit within the harness */
    .fc-daygrid {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }

    /* Day cells - fixed minimum height but can grow */
    .fc-daygrid-day {
        min-height: 120px !important;
        height: auto !important;
        max-height: none !important;
    }

    .fc-daygrid-day-frame {
        height: 100% !important;
        min-height: 120px !important;
        max-height: none !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    /* ONLY this container scrolls - events within day cells */
    .fc-daygrid-day-events {
        flex: 1 !important;
        min-height: 0 !important;
        max-height: 100% !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        position: relative !important;
    }

    /* Adjust event text for responsive cells */
    .fc-event {
        font-size: clamp(8px, 1.2vw, 10px) !important;
    }

    /* Adjust date numbers for responsive cells */
    .fc-daygrid-day-number {
        font-size: clamp(10px, 1.5vw, 12px) !important;
        padding: 1px 2px !important;
    }
}

/* For larger screens, maintain good height with scrolling */
@media (min-width: 1440px) {
    .fc-view-harness {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }

    .fc-view-harness-active {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }

    .fc-scroller {
        overflow: hidden !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }

    .fc-scroller-liquid {
        overflow: hidden !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }

    .fc-daygrid {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }

    .fc-daygrid-day {
        min-height: 130px !important;
        height: auto !important;
        max-height: none !important;
    }

    .fc-daygrid-day-frame {
        height: 100% !important;
        min-height: 130px !important;
        max-height: none !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    /* ONLY this container scrolls - events within day cells */
    .fc-daygrid-day-events {
        flex: 1 !important;
        min-height: 0 !important;
        max-height: 100% !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        position: relative !important;
    }
}

/* Let FullCalendar handle the height naturally on mobile/tablet */

/* Fix date text color and make it readable over events */
.fc-daygrid-day-number {
    color: #222;
    font-weight: 600;
    font-size: 14px;
    z-index: 10 !important;
    position: relative !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

/* Improve event block appearance */
.fc-event {
    background-color: #f58220 !important;
    border: 1px solid #e6731a !important;
    color: white !important;
    font-size: 9px !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    overflow: hidden !important;
    display: block !important;
    margin: 2px 0 !important;
    z-index: 10 !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}

/* Enhanced hover effects */
.fc-event:hover {
    background-color: #1a4a8c;
    color: white;
    border: 2px solid #0f3a6b;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(26, 74, 140, 0.3);
    z-index: 10;
}

/* Add a subtle animation for the hover state */
.fc-event:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    -webkit-animation: shimmer 0.6s ease-in-out;
    animation: shimmer 0.6s ease-in-out;
}

@-webkit-keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Remove the dot indicator */
.fc-event::after {
    display: none !important;
}

/* Enhanced hover class for JavaScript interactions */
.fc-event-hover {
    background-color: #1a4a8c !important;
    color: white !important;
    border: 2px solid #0f3a6b !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(26, 74, 140, 0.3) !important;
    z-index: 10 !important;
}

/* Tooltip styling */
.event-tooltip {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    -webkit-animation: tooltipFadeIn 0.2s ease-out;
    animation: tooltipFadeIn 0.2s ease-out;
    pointer-events: none;
}

.event-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

/* Arrow pointing up when tooltip is below event */
.event-tooltip.tooltip-below::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: rgba(0, 0, 0, 0.9);
}

@-webkit-keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.tooltip-content {
    text-align: center;
    line-height: 1.4;
}

.tooltip-content strong {
    display: block;
    margin-bottom: 2px;
    color: #fff;
}

.tooltip-content small {
    color: #ccc;
    font-size: 11px;
}

/* Tablet responsiveness (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {

    /* Ensure all day cells have the same fixed height */
    .fc-daygrid-day-row {
        height: calc((100vh - 200px) / 6) !important;
    }

    .fc-daygrid-day {
        height: 100% !important;
        min-height: 100px !important;
        max-height: 100% !important;
        overflow: hidden !important;
    }

    .fc-daygrid-day-frame {
        height: 100% !important;
        min-height: 100px !important;
        max-height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    .fc-daygrid-day-events {
        flex: 1 !important;
        min-height: 0 !important;
        max-height: 100% !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
    }
}

/* Enhanced mobile responsiveness (0px - 767px) */
@media (max-width: 767px) {
    #calendar {
        width: 100%;
        font-size: 12px;
        margin: 10px 0;
    }

    /* Let FullCalendar handle mobile height naturally - NO constraints */
    .fc-view-harness {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }

    .fc-view-harness-active {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }

    .fc-scroller {
        overflow: hidden !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }

    .fc-scroller-liquid {
        overflow: hidden !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }

    /* Ensure all day cells have the same fixed height on mobile */
    .fc-daygrid-day-row {
        height: calc((100vh - 180px) / 6) !important;
    }

    .fc-daygrid-day {
        height: 100% !important;
        min-height: 70px !important;
        max-height: 100% !important;
        overflow: hidden !important;
    }

    .fc-daygrid-day-frame {
        height: 100% !important;
        min-height: 70px !important;
        max-height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    .fc-daygrid-day-events {
        flex: 1 !important;
        min-height: 0 !important;
        max-height: 100% !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .fc-event {
        font-size: 8px;
        padding: 0 !important;
        border-radius: 0 !important;
    }

    .fc-daygrid-day-number {
        font-size: 10px !important;
        padding: 1px 2px !important;
    }

    .event-tooltip {
        font-size: 11px;
        padding: 6px 10px;
    }

    .tooltip-content small {
        font-size: 10px;
    }
}

/* Additional styling improvements */
.fc-daygrid-event {
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Make sure the event covers the entire day cell */
.fc-daygrid-event-harness {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: auto !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.fc-daygrid-event-harness .fc-event {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 2px 0 !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: auto !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}

/* Force the event to cover the full cell - ONLY this container scrolls */
.fc-daygrid-day-events {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 !important;
    min-height: 0 !important;
    max-height: 100% !important;
    z-index: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    -webkit-overflow-scrolling: touch !important;
}

.fc-daygrid-day-events .fc-event {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: auto !important;
    height: auto !important;
    margin: 2px 0 !important;
    padding: 0 4px !important;
    border-radius: 3px !important;
}

/* Force the day cell to contain events - no scroll on cell itself */
.fc-daygrid-day {
    position: relative !important;
    overflow: hidden !important;
    height: 100% !important;
}

/* Target the specific day cell structure - no scroll on frame */
.fc-daygrid-day-frame {
    position: relative !important;
    overflow: hidden !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Force events to cover the entire cell */
.fc-daygrid-day-events {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    z-index: auto !important;
    pointer-events: auto !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.fc-daygrid-day-events .fc-event {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 2px 0 !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
    z-index: auto !important;
    pointer-events: auto !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}

.fc-daygrid-day-events {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.fc-event-title {
    font-weight: 500;
    letter-spacing: 0.3px;
    text-align: center !important;
    width: 100% !important;
}

/* Override FullCalendar's default event positioning */
.fc-daygrid-day-events .fc-event {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 2px 0 !important;
    padding: 2px 4px !important;
    z-index: auto !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}

/* Additional targeting for full coverage */
.fc-daygrid-day-events .fc-event-harness {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    z-index: auto !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.fc-daygrid-day-events .fc-event-harness .fc-event {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 2px 0 !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}

/* Most aggressive approach - target all possible event containers */
.fc-daygrid-day-events .fc-event-harness,
.fc-daygrid-day-events .fc-event-harness .fc-event,
.fc-daygrid-day-events .fc-event {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 2px 0 !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
    z-index: auto !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}

/* Ensure the event container takes full space - ONLY this container scrolls */
.fc-daygrid-day-events {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 !important;
    min-height: 0 !important;
    max-height: 100% !important;
    z-index: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    -webkit-overflow-scrolling: touch !important;
}

/* Ensure date numbers stay above events */
.fc-daygrid-day-top {
    z-index: 10 !important;
    position: relative !important;
    flex-shrink: 0 !important;
}

.fc-daygrid-day-number {
    z-index: 15 !important;
    position: relative !important;
}

/* Add padding to events container for better scrolling */
.fc-daygrid-day-events {
    padding: 2px 0 !important;
}

/* Custom scrollbar styling for day cells */
.fc-daygrid-day-events::-webkit-scrollbar {
    width: 6px;
}

.fc-daygrid-day-events::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px;
}

.fc-daygrid-day-events::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.fc-daygrid-day-events::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Firefox scrollbar */
.fc-daygrid-day-events {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

/* Focus states for accessibility */
.fc-event:focus {
    outline: 2px solid #d6006d;
    outline-offset: 2px;
}

/* Active state for better user feedback */
.fc-event:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* Timed events (non all-day) in month view should appear as dot items, not full-cell blocks */
.fc-daygrid-dot-event,
.fc-daygrid-dot-event .fc-event {
    position: static !important;
    width: auto !important;
    height: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin: 2px 0 !important;
    padding: 0 4px !important;
}

/* Make sure aggressive full-cell styles do not affect dot events */
.fc-daygrid-dot-event .fc-event,
.fc-daygrid-dot-event {
    box-sizing: border-box !important;
}

.fc-daygrid-dot-event .fc-event-time,
.fc-daygrid-dot-event .fc-event-title {
    font-size: 11px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

/* Optional: subtle styling for timed slots */
.fc-daygrid-dot-event .fc-event {
    background-color: #f58220 !important;
    border: 1px solid #e6731a !important;
    color: #fff !important;
    border-radius: 3px !important;
}

/* Selected event styling for admin */
.fc-event-selected {
    background-color: #ff6b6b !important;
    border: 2px solid #ff4757 !important;
    color: white !important;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.5) !important;
}

/* Admin form styling */
.calblock-forms {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.calblock-form-section {
    flex: 1;
    min-width: 300px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.calblock-form-section h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #d6006d;
    padding-bottom: 10px;
}

.form-row {
    margin-bottom: 15px;
}

.form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.form-row input,
.form-row select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.form-row input:focus,
.form-row select:focus {
    outline: none;
    border-color: #d6006d;
    box-shadow: 0 0 0 2px rgba(214, 0, 109, 0.1);
}

.delete-instructions {
    color: #666;
    line-height: 1.5;
}

.selected-event-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 10px;
    margin-top: 10px;
    color: #856404;
}

.selected-event-info strong {
    color: #856404;
}

/* Responsive admin forms */
@media (max-width: 768px) {
    .calblock-forms {
        flex-direction: column;
        gap: 20px;
    }

    .calblock-form-section {
        min-width: auto;
    }
}

/* Notification system */
.calblock-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.calblock-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    font-weight: 500;
}

.calblock-notification-success .notification-content {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.calblock-notification-error .notification-content {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.calblock-notification-info .notification-content {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 10px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.notification-close:hover {
    opacity: 1;
}

/* Button loading state */
input[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Mobile notifications */
@media (max-width: 768px) {
    .calblock-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Frontend date restrictions */
.fc-day-past {
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
}

.fc-day-past .fc-daygrid-day-number {
    color: #adb5bd !important;
}

.fc-day-past .fc-daygrid-day-events {
    opacity: 0.5;
}

/* Disable past date interactions */
.fc-day-past:hover {
    background-color: #f8f9fa !important;
}

/* Style navigation buttons for frontend */
.fc-prev-button {
    background-color: #f58220 !important;
    border-color: #f58220 !important;
    color: white !important;
    opacity: 1 !important;
}

.fc-prev-button:hover {
    background-color: #e6731a !important;
    border-color: #e6731a !important;
}

.fc-prev-button:disabled {
    background-color: #f58220 !important;
    border-color: #f58220 !important;
    color: white !important;
    opacity: 1 !important;
    cursor: pointer !important;
}

/* Style the next button for frontend */
.fc-next-button {
    background-color: #f58220 !important;
    border-color: #f58220 !important;
    color: white !important;
}

.fc-next-button:hover {
    background-color: #e6731a !important;
    border-color: #e6731a !important;
}

/* Style the today button */
.fc-today-button {
    background-color: #f58220 !important;
    border-color: #f58220 !important;
    color: white !important;
}

.fc-today-button:hover {
    background-color: #e6731a !important;
    border-color: #e6731a !important;
}

.fc-today-button:disabled {
    background-color: #f58220 !important;
    border-color: #f58220 !important;
    color: white !important;
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

/* Style view switcher buttons (Day/Month) */
.fc-button-group {
    display: inline-flex;
}

.fc-button-group .fc-button {
    background-color: #f58220 !important;
    border-color: #f58220 !important;
    color: white !important;
    margin-left: 2px !important;
}

.fc-button-group .fc-button:hover {
    background-color: #e6731a !important;
    border-color: #e6731a !important;
}

.fc-button-group .fc-button-active {
    background-color: #1a4a8c !important;
    border-color: #1a4a8c !important;
    color: white !important;
}

.fc-button-group .fc-button-active:hover {
    background-color: #0f3a6b !important;
    border-color: #0f3a6b !important;
}

/* Time Grid Day View Styling */
.fc-timegrid-slot {
    height: 3em !important;
    border-bottom: 1px solid #ddd !important;
}

.fc-timegrid-slot-label {
    padding: 0 8px !important;
    font-size: 12px !important;
    color: #666 !important;
}

.fc-timegrid-axis {
    width: 60px !important;
    border-right: 1px solid #ddd !important;
}

.fc-timegrid-col-frame {
    border-left: 1px solid #ddd !important;
}

.fc-timegrid-event {
    border-radius: 4px !important;
    padding: 2px 4px !important;
    font-size: 12px !important;
}

.fc-timegrid-event-harness {
    margin: 0 2px !important;
}

/* All-day slot styling */
.fc-timegrid-slot-lane {
    border-bottom: 1px dotted #ddd !important;
}

.fc-timegrid-divider {
    border-bottom: 2px solid #ddd !important;
}

/* Ensure time slots are visible even when empty */
.fc-timegrid-body {
    min-height: 600px !important;
}

.fc-timegrid-cols {
    min-height: 600px !important;
}