/* Modern Calendar Styles - Combined */

/* Modern Calendar Container */
.modern-calendar-wrapper {
    max-width: 824px;
    margin: 0 auto;
    padding: 20px 15px 100px;
}

/* Calendar Header Text */
.main-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    text-align: left;
}

.main-title .highlight-text {
    color: #1447E6;
}

/* Year Filter Section */
.year-filter-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    gap: 15px;
}

.year-label {
    font-size: 15px;
    color: #555555;
    font-weight: 550;
    white-space: nowrap;
    margin-bottom: 18px;
}

.year-select-wrapper {
    position: relative;
    flex: 1;
    max-width: 200px;
}

.year-select {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    background: white;
    cursor: pointer;
    appearance: none;
    transition: all 0.2s ease;
}

.year-select:focus {
    outline: none;
    border-color: #1447E6;
}

.year-select-wrapper::after {
    content: '\f078';
    font-family: 'FontAwesome';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
    font-size: 12px;
}

/* Year Navigation */
.year-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.year-nav-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.year-nav-btn:hover {
    background: #e0e0e0;
}

.year-nav-btn i {
    font-size: 16px;
    color: #666;
}

.year-display {
    font-size: 17px;
    font-weight: 700;
    color: #333;
    min-width: 80px;
    text-align: center;
}

/* Scrollable Calendar Container */
.scrollable-calendar-container {
    max-height: 65vh;
    overflow-y: auto;
    padding-bottom: 20px;
    border-radius: 20px;
}

/* Calendar Box */
.modern-calendar-box {
    background: white;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 20px;
}

.modern-calendar-box:last-child {
    margin-bottom: 0;
}

/* Month Header */
.month-header {
    padding: 15px 20px;
    background: transparent;
    border-bottom: 1px solid #f0f0f0;
}

.month-title-text {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    text-align: center;
}

/* Weekdays Header */
.modern-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 12px 15px 8px;
    background: white;
}

.modern-weekdays div {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Calendar Grid */
.modern-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    padding: 10px 15px 20px;
    background: white;
}

.modern-calendar-grid>div {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border: 2px solid transparent;
}

/* Other Month Days */
.cal-other-month {
    color: #d0d0d0 !important;
    background: transparent !important;
    cursor: default !important;
    pointer-events: none !important;
    border: none !important;
}

/* Disabled Days (weekdays, past dates) */
.cal-disabled {
    color: #ccc !important;
    background: transparent !important;
    cursor: not-allowed !important;
    border: none !important;
}

/* Available Days */
.cal-available {
    color: #333;
    background: transparent;
    border: 2px solid transparent;
}

.cal-available:hover {
    background: #f0f7ff;
    border-color: #1447E6;
}

/* Normal/Enabled Days (for admin view - all clickable) */
.cal-normal {
    color: #333;
    background: transparent;
    border: 2px solid transparent;
}

.cal-normal:hover {
    background: #f0f7ff;
    border-color: #1447E6;
}

/* Selected Date */
.cal-selected {
    background: #4caf50 !important;
    color: white !important;
    font-weight: 700;
    border: 2px solid #2e7d32 !important;
}

/* Booked Dates */
.cal-booked {
    background: #fff3e0;
    color: #e65100;
    font-weight: 600;
    border: 2px solid #ff9800;
}

.cal-booked .fa-circle {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 6px;
    color: #ff9800;
}

.cal-booked:hover {
    background: #ffe0b2;
}

/* Important Dates (Campus Events) */
.cal-important {
    background: #ffebee;
    color: #c62828;
    font-weight: 600;
    border: 2px solid #f44336;
}

.cal-important .fa-circle {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 6px;
    color: #f44336;
}

.cal-important:hover {
    background: #ffcdd2;
}

/* Scrollbar Styling */
.scrollable-calendar-container::-webkit-scrollbar {
    width: 6px;
}

.scrollable-calendar-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.scrollable-calendar-container::-webkit-scrollbar-thumb {
    background: #1447E6;
    border-radius: 10px;
}

.scrollable-calendar-container::-webkit-scrollbar-thumb:hover {
    background: #0d2f9e;
}

/* Responsive Adjustments */
@media (max-width: 375px) {
    .modern-calendar-grid {
        gap: 4px;
        padding: 8px 12px 18px;
    }

    .modern-calendar-grid>div {
        font-size: 13px;
    }

    .main-title {
        font-size: 20px;
    }
}

@media (min-width: 400px) {
    .modern-calendar-grid>div {
        font-size: 15px;
    }
}