/* Custom Calendar Styles */
.calendar-section {
    margin-bottom: 2rem;
}

.calendar-section h4 {
    margin-bottom: 1rem;
    color: var(--gray-800);
    font-size: 1.125rem;
    font-weight: 600;
}

.custom-calendar {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    max-width: 400px;
    margin: 0 auto;
}

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

.calendar-nav-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: background-color var(--transition-fast);
}

.calendar-nav-btn:hover {
    background-color: var(--gray-100);
}

.calendar-month-year {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
}

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

.calendar-weekday {
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    padding: 0.5rem 0;
}

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

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.calendar-day:not(.other-month):not(.disabled) {
    background: white;
    color: var(--gray-900);
}

.calendar-day:not(.other-month):not(.disabled):hover {
    background-color: var(--primary-color);
    color: white;
}

.calendar-day.selected {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.calendar-day.today {
    background-color: var(--gray-100);
    font-weight: 600;
}

.calendar-day.today.selected {
    background-color: var(--primary-color);
    color: white;
}

.calendar-day.other-month {
    color: var(--gray-400);
    cursor: not-allowed;
}

.calendar-day.disabled {
    color: var(--gray-300);
    cursor: not-allowed;
    background-color: var(--gray-50);
}

.calendar-day.has-slots::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--accent-color);
}

.calendar-day.selected.has-slots::after {
    background-color: white;
}

/* Time Slots Styles */
.time-slots-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.time-slots-section h4 {
    margin-bottom: 1rem;
    color: var(--gray-800);
    font-size: 1.125rem;
    font-weight: 600;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
    max-width: 600px;
}

.time-slot {
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    background: white;
    color: var(--gray-700);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
    position: relative;
}

.time-slot:hover {
    border-color: var(--primary-color);
    background-color: var(--gray-50);
}

.time-slot.selected {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: white;
}

.time-slot.unavailable {
    background-color: var(--gray-100);
    color: var(--gray-400);
    border-color: var(--gray-200);
    cursor: not-allowed;
}

.time-slot.popular::before {
    content: '🔥';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .calendar-container {
        flex-direction: column;
    }
    
    .custom-calendar {
        max-width: none;
        margin-bottom: 2rem;
    }
    
    .time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.5rem;
    }
}