@charset "UTF-8";
/* Calendar Wrapper */
.calendar-wrapper {
    max-width: 1200px;
    margin: 20px auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Calendar Header */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.calendar-title {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.calendar-nav {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.calendar-nav:hover {
    background: #2980b9;
}

/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e0e0e0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

/* Day Headers */
.calendar-day-header {
    background: #34495e;
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
}

/* Calendar Days */
.calendar-day {
    background: white;
    min-height: 120px;
    padding: 10px;
    position: relative;
    transition: background 0.2s ease;
}

.calendar-day:hover {
    background: #f8f9fa;
}

.calendar-day.empty {
    background: #f5f5f5;
}

.calendar-day.today {
    background: #e3f2fd;
}

.calendar-day.today .day-number {
    background: #3498db;
    color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.day-number {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

/* Events */
.day-events {
    margin-top: 8px;
}

.event-item {
    background: #f8f9fa;
    padding: 6px 8px;
    margin-bottom: 6px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.event-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-time {
    color: #7f8c8d;
    font-size: 11px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .calendar-wrapper {
        padding: 10px;
    }
    
    .calendar-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .calendar-title {
        font-size: 22px;
    }
    
    .calendar-nav {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .calendar-day {
        min-height: 80px;
        padding: 6px;
    }
    
    .calendar-day-header {
        padding: 10px 5px;
        font-size: 12px;
    }
    
    .day-number {
        font-size: 14px;
    }
    
    .event-item {
        padding: 4px 6px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .calendar-day-header {
        font-size: 10px;
    }
    
    .calendar-day {
        min-height: 60px;
        padding: 4px;
    }
    
    .event-title {
        font-size: 10px;
    }
    
    .event-time {
        display: none;
    }
}

/* Loading State */
.calendar-wrapper.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calendar-wrapper {
    animation: fadeIn 0.3s ease;
}
