/* Calendar Container */
.dodn-calendar-container {
    max-width: 800px;
    margin: 0 auto 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Month Picker Styling */
.dodn-month-picker {
    margin-bottom: 15px;
    background-color: #012847;
    position: relative;
    padding: 15px 0 15px 0;
    cursor: pointer;
}

.dodn-month-picker::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: translateY(-60%) rotate(45deg);
    pointer-events: none;
}

.dodn-month-label {
    top: 0;
    min-height: 56px;
    margin: 0;
    position: absolute;
    display: flex;
    justify-content: center;
    width: 100%;
    align-items: center;
    padding: 0;
    font-family: "Montserrat", sans-serif;
    color: white;
    font-size: 21px;
    font-weight: 300;
    text-transform: uppercase;
    cursor: pointer;
}

.dodn-month-input {
    visibility: hidden; /* Hide the default input */
    cursor: pointer;
}



/* Calendar Content */
.dodn-calendar-content {
    position: relative;
    min-height: 300px;
}

.dodn-calendar-content.loading:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 5;
}

.dodn-calendar-content.loading:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #012847;
    border-radius: 50%;
    z-index: 10;
    animation: dodn-spin 1s linear infinite;
}

@keyframes dodn-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Calendar Wrapper */
.dodn-calendar-wrapper {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Day Names Header */
.dodn-calendar-day-names {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background-color: #f8f9fa;
}

.dodn-calendar-day-names .day-name {
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: #012847;
    text-transform: uppercase;
    font-family: "Montserrat", sans-serif;
    background-color: #f8f9fa;
}

/* Calendar Grid */
.dodn-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: #eaeaea;
    padding: 1px;
}

/* Calendar Days */
.dodn-calendar-grid .day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f6ff;
    font-size: 20px;
    font-weight: 300;
    position: relative;
    cursor: default;
    transition: background-color 0.2s ease;
    font-family: "Montserrat", sans-serif;
}

.dodn-calendar-grid .empty {
    background-color: #f9f9f9;
}

.dodn-calendar-grid .prev-month,
.dodn-calendar-grid .next-month {
    color: #cccccc;
    cursor: default;
    background-color: #f9f9f9;
    font-weight: 300;
}



.dodn-calendar-grid .event-day {
    background-color: #012847;
    color: #ffffff;
    cursor: pointer;
}

.dodn-calendar-grid .conference-day::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 8px 8px;
    border-color: transparent transparent #e74c3c transparent;
}

.dodn-calendar-grid .today {
    background-color: #ffce88;
    color: #012847;
}

/* Status Indicators */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 5px;
    vertical-align: middle;
}

.status-available {
    background-color: #4caf50; /* Green */
}

.status-full {
    background-color: #f44336; /* Red */
}

/* Calendar interactive elements */
.dodn-calendar-container *:focus {
    outline: none;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .dodn-calendar-grid .day {
        font-size: 14px;
    }
    
    .dodn-calendar-day-names .day-name {
        padding: 8px 4px;
        font-size: 12px;
    }
    
    .dodn-month-display {
        font-size: 16px;
        padding: 12px;
    }
}

@media (max-width: 400px) {
    .dodn-calendar-grid .day {
        font-size: 12px;
    }
    
    .dodn-calendar-day-names .day-name {
        padding: 6px 2px;
        font-size: 10px;
    }
}

/* FullCalendar Tooltip Styling */

.dodn-tooltip-content {
    text-align: left;
}

.dodn-tooltip-title {
    font-size: 15px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.dodn-tooltip-row {
    margin-bottom: 6px;
    font-size: 12px;
    line-height: 1.4;
}

.dodn-tooltip-row:last-child {
    margin-bottom: 0;
}

.dodn-tooltip-row strong {
    color: #ffffff;
    font-weight: 700;
}

/* FullCalendar Event Customization - Force block display */
.fc-event {
    cursor: pointer !important;
}

.fc-event-main {
    min-height: 40px !important;
}

.fc-event-time {
    font-size: 11px !important;
    font-weight: bold !important;
    display: block !important;
    margin-bottom: 2px !important;
}

.fc-event-title {
    font-weight: 500 !important;
    white-space: normal !important;
    line-height: 1.3 !important;
    font-size: 12px !important;
    word-break: break-word !important;
}

.fc-daygrid-event {
    white-space: normal !important;
    min-height: 40px !important;
    margin-bottom: 2px !important;
}

/* FORCE HIDE DOT EVENTS - NUCLEAR OPTION */
.fc-daygrid-event-dot {
    display: none !important;
    visibility: hidden !important;
}

.fc-daygrid-dot-event {
    display: none !important;
    visibility: hidden !important;
}

.fc-h-event .fc-event-main {
    color: inherit !important;
}

/* Force all events to be block events with full visibility */
.fc-daygrid-block-event {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.fc-daygrid-block-event .fc-event-main {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

/* Ensure proper spacing for two-line titles */
.fc-event-title-container {
    padding: 2px 4px !important;
}

/* Make events taller and more visible */
.fc-daygrid-event-harness {
    margin-bottom: 2px !important;
}

.fc-daygrid-day-events {
    margin-bottom: 0 !important;
}

/* Improve visibility of event content */
.fc-event-main-frame {
    min-height: 40px !important;
}

/* Force block layout for day grid */
.fc-daygrid-day-frame {
    min-height: 100px !important;
}

.fc-daygrid-day-top {
    flex-grow: 0 !important;
}

.fc-daygrid-day-events {
    flex-grow: 1 !important;
}

/* Override any FullCalendar defaults that might show dots */
.fc .fc-daygrid-event {
    position: relative !important;
    white-space: normal !important;
}

.fc .fc-daygrid-event .fc-event-time {
    white-space: normal !important;
    overflow: visible !important;
}

.fc .fc-daygrid-event .fc-event-title {
    white-space: normal !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

.fc-toolbar-title {
    text-transform: uppercase;
}

/* Mobile STYLES */

/* Hide default FullCalendar list view dots - we use custom ones */
.fc-list-event-dot {
    display: none !important;
    border-color: transparent !important;
}

.fc-list-event-graphic {
    display: none !important;
}

/* Conference indicator - red triangle in bottom right corner */
/* For desktop grid view */
.dodn-conference-event.fc-daygrid-event::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 10px 10px;
    border-color: transparent transparent #e74c3c transparent;
    z-index: 10;
}

/* For mobile list view */
.fc-list-event.dodn-conference-event .fc-list-event-title {
    position: relative;
}

.dodn-conference-triangle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 8px 8px;
    border-color: transparent transparent #e74c3c transparent;
}

@media (max-width: 768px) {
    .fc-toolbar-chunk {
        flex-basis: 100% !important;
        text-align: center !important;
        margin-bottom: 10px !important;
    }

    .fc-button-group {
        margin: 0 auto !important;
    }

    .fc-toolbar-title {
        font-size: 16px !important;
    }
    .fc .fc-toolbar.fc-header-toolbar {
        flex-flow: wrap;
    }
}