/* Service Calendar Styles */
.calendar-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    background: #333;
    color: white;
}

.calendar-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.calendar-nav {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-nav:hover {
    background: rgba(255,255,255,0.1);
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #666;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.legend-color.service {
    background: #666;
}

.calendar-grid {
    padding: 20px;
}

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

.weekday {
    text-align: center;
    padding: 12px 0;
    font-weight: 600;
    color: #666;
    background: #f8f9fa;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 4px;
    background: white;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 70px;
}

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

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

.calendar-day.today {
    background: #fff3cd;
    color: #856404;
    font-weight: 600;
    border: 2px solid #ffc107;
}

.calendar-day.service-day {
    font-weight: 600;
    color: white;
    background: #666;
}

.calendar-day.service-day:hover {
    background: #555;
}

.service-indicator {
    font-size: 0.7rem;
    font-weight: 500;
    text-align: center;
    margin-top: 4px;
    padding: 2px 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    line-height: 1;
}

/* Today indicator for service days */
.calendar-day.service-day.today {
    border: 3px solid #ffc107;
    box-shadow: 0 0 0 2px rgba(255,193,7,0.3);
}

.calendar-day.service-day.today .service-indicator {
    background: rgba(255,193,7,0.3);
    color: #856404;
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .calendar-container {
        margin: 0 10px;
    }
    
    .calendar-header {
        padding: 15px 20px;
    }
    
    .calendar-title {
        font-size: 1.3rem;
    }
    
    .calendar-legend {
        flex-direction: column;
        gap: 10px;
        padding: 12px 15px;
        text-align: center;
    }
    
    .calendar-grid {
        padding: 15px;
    }
    
    .weekday {
        padding: 8px 0;
        font-size: 0.8rem;
    }
    
    .calendar-day {
        min-height: 60px;
        padding: 6px 2px;
        font-size: 0.9rem;
    }
    
    .service-indicator {
        font-size: 0.6rem;
        margin-top: 2px;
        padding: 1px 2px;
    }
}

@media (max-width: 480px) {
    .calendar-header {
        padding: 12px 15px;
    }
    
    .calendar-title {
        font-size: 1.1rem;
    }
    
    .calendar-nav {
        font-size: 1rem;
        padding: 6px 8px;
    }
    
    .calendar-grid {
        padding: 10px;
    }
    
    .calendar-day {
        min-height: 50px;
        padding: 4px 1px;
        font-size: 0.85rem;
    }
    
    .service-indicator {
        font-size: 0.55rem;
        margin-top: 1px;
    }
    
    .weekday {
        font-size: 0.75rem;
        padding: 6px 0;
    }
}

/* Print Styles */
@media print {
    .calendar-container {
        box-shadow: none;
        border: 1px solid #333;
    }
    
    .calendar-header {
        background: #333 !important;
        color: white !important;
    }
    
    .calendar-nav {
        display: none;
    }
    
    .calendar-day.service-day {
        background: #666 !important;
        color: white !important;
    }
    
    .service-indicator {
        background: #f0f0f0 !important;
        color: #333 !important;
    }
}