/* Simple Modern Calendar Styles */
.modern-calendar {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.calendar-nav-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #495057;
    font-size: 16px;
    font-weight: 500;
}

.calendar-nav-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.calendar-title {
    color: #212529;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    overflow: hidden;
}

.calendar-weekday {
    text-align: center;
    font-weight: 600;
    color: #6c757d;
    padding: 10px 8px;
    font-size: 12px;
    text-transform: uppercase;
    background: #f8f9fa;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(6, 1fr); /* 6주 고정 */
    gap: 1px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    height: 300px; /* 고정 높이 설정 */
}

.calendar-day {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: #495057;
    font-weight: 500;
    background: #ffffff;
    position: relative;
    min-height: 40px; /* 최소 높이 보장 */
}

.calendar-day:hover {
    background: #f8f9fa;
}

.calendar-day.today {
    background: #007bff;
    color: white;
    font-weight: 600;
}

.calendar-day.today:hover {
    background: #0056b3;
}

.calendar-day.other-month {
    color: #adb5bd;
    background: #f8f9fa;
}

.calendar-day.other-month:hover {
    background: #e9ecef;
}

.calendar-day.has-event {
    background: #e7f3ff;
    color: #0056b3;
    font-weight: 600;
}

.calendar-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #007bff;
    border-radius: 50%;
}

.calendar-day.has-event:hover {
    background: #cce7ff;
}

.calendar-day.selected {
    background: #28a745;
    color: white;
    font-weight: 600;
}

.calendar-day.selected:hover {
    background: #1e7e34;
}

/* Event Tooltip */
.event-tooltip {
    position: absolute;
    background: #343a40;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.event-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-calendar {
        padding: 15px;
    }
    
    .calendar-title {
        font-size: 18px;
    }
    
    .calendar-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .calendar-weekday {
        font-size: 11px;
        padding: 8px 4px;
    }
    
    .calendar-days {
        height: 250px; /* 모바일에서 약간 줄어든 고정 높이 */
    }
    
    .calendar-day {
        min-height: 35px;
    }
}

@media (max-width: 480px) {
    .modern-calendar {
        padding: 12px;
    }
    
    .calendar-title {
        font-size: 16px;
    }
    
    .calendar-nav-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .calendar-weekday {
        font-size: 10px;
        padding: 6px 2px;
    }
    
    .calendar-days {
        height: 210px; /* 소형 모바일에서 더 작은 고정 높이 */
    }
    
    .calendar-day {
        min-height: 30px;
    }
}