.calendar-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    position: relative;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.calendar-title {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    flex-grow: 1;
    margin: 0 40px;
}

.nav-btn {
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.nav-btn:hover {
    transform: scale(1.1);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    padding: 10px;
}

.weekday {
    text-align: center;
    font-weight: 500;
    color: #666;
    padding: 10px;
    font-size: 1em;
}

.day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.day:not(.other-month):hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.other-month {
    background: #ffd700;
    color: #000;
    opacity: 0.7;
}

.current-month {
    background: transparent;
    color: #000;
}

.weekend {
    background: #8a2be2;
    color: white;
}

.today {
    background: #ff00ff;
    color: white;
}

.selected {
    border: 2px solid #ff00ff;
}

@media (max-width: 480px) {
    .calendar-container {
        padding: 10px;
    }
    
    .day {
        font-size: 0.9em;
    }
    
    .weekday {
        font-size: 0.8em;
    }
}

.hover-popup {
    position: absolute;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    font-size: 14px;
    min-width: 200px;
    max-width: 300px;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
}