.calendar-container {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    max-width: 320px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.calendar-title {
    color: #f8fafc;
    font-size: 12px;
    font-weight: 600;
}

.calendar-nav {
    display: flex;
    gap: 4px;
}

.calendar-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f8fafc;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 10px;
    transition: all 0.2s;
}

.calendar-nav-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
}

.calendar-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.calendar-month-year {
    display: flex;
    align-items: center;
    gap: 6px;
}

.calendar-month-year select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f8fafc;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 10px;
    cursor: pointer;
}

.calendar-month-year select option {
    background: #334155;
    color: #f8fafc;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-bottom: 4px;
}

.calendar-weekday {
    text-align: center;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.calendar-day.empty {
    background: transparent;
    cursor: default;
}

.calendar-day.no-data {
    background: rgba(255, 255, 255, 0.03);
    color: #475569;
    cursor: not-allowed;
}

.calendar-day.has-data {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.calendar-day.has-data:hover {
    background: rgba(34, 197, 94, 0.4);
    transform: scale(1.1);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.3);
}

.calendar-day.selected {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: 1px solid #60a5fa;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.calendar-day.today {
    border: 1px dashed #fbbf24;
}

.calendar-day.today.has-data {
    border: 1px solid #fbbf24;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.calendar-legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #94a3b8;
    font-size: 9px;
}

.calendar-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

.calendar-legend-dot.has-data {
    background: rgba(34, 197, 94, 0.3);
    border: 1px solid rgba(34, 197, 94, 0.5);
}

.calendar-legend-dot.selected {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.calendar-legend-dot.no-data {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .calendar-container {
        padding: 8px;
        max-width: 100%;
    }
    
    .calendar-day {
        font-size: 9px;
    }
    
    .calendar-weekday {
        font-size: 8px;
    }
}
