/* Calendar Styles */
.calendar-section {
    margin: 2rem 0;
    width: 100%;
}

.calendar-section h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.calendar-container {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    width: 100%;
    max-width: 500px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    width: 100%;
}

.calendar-nav {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    color: #3498db;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.calendar-nav:hover {
    background-color: #f8f9fa;
}

.calendar-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    text-align: center;
    flex-grow: 1;
}

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

.calendar-weekdays {
    display: contents;
    font-weight: bold;
}

.weekday {
    text-align: center;
    font-weight: bold;
    color: #7f8c8d;
    padding: 0.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.calendar-days {
    display: contents;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    min-height: 40px;
    background-color: #f8f9fa;
    margin: 2px;
}

.calendar-day.available {
    background-color: #27ae60;
    color: white;
    border-color: #219a52;
}

.calendar-day.available:hover {
    background-color: #219a52;
    transform: scale(1.05);
}

.calendar-day.selected {
    border-color: #3498db;
    background-color: #3498db;
    color: white;
    transform: scale(1.05);
}

.calendar-day.disabled {
    color: #bdc3c7;
    cursor: not-allowed;
    background-color: #ecf0f1;
    opacity: 0.6;
}

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

.calendar-day.today {
    border-color: #e74c3c;
    background-color: #fff;
    color: #e74c3c;
}

.calendar-day.today.available {
    background-color: #27ae60;
    color: white;
    border-color: #219a52;
}

/* Time slots section */
.time-slots-section {
    display: none;
    margin-top: 2rem;
    width: 100%;
}

.time-slots-section.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

.time-slots-header {
    margin-bottom: 1.5rem;
}

.time-slots-header h3 {
    color: #2c3e50;
    font-size: 1.3rem;
}

.selected-date-info {
    color: #7f8c8d;
    margin-top: 0.5rem;
    font-size: 1rem;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    width: 100%;
}

.time-slot {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.time-slot:hover {
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.time-slot.selected {
    border-color: #3498db;
    background-color: #ebf5fb;
}

.time-range {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.availability-info {
    color: #27ae60;
    font-size: 0.9rem;
    font-weight: 500;
}

.no-slots-message {
    text-align: center;
    color: #7f8c8d;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    grid-column: 1 / -1;
    font-size: 1.1rem;
}

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

/* Responsive */
@media (max-width: 768px) {
    .calendar-container {
        padding: 1rem;
        max-width: 100%;
    }
    
    .calendar-grid {
        gap: 2px;
    }
    
    .calendar-day {
        font-size: 0.8rem;
        min-height: 35px;
        border-radius: 4px;
    }
    
    .weekday {
        font-size: 0.7rem;
        padding: 0.25rem;
    }
    
    .time-slots-grid {
        grid-template-columns: 1fr;
    }
    
    .time-slot {
        padding: 1rem;
        min-height: 70px;
    }
    
    .calendar-nav {
        padding: 0.25rem 0.5rem;
        font-size: 1.2rem;
    }
}