/* Calendar Layout - Premium Design */
.calendar-container {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calendar-container:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.03);
    transform: translateY(-2px);
}

/* Left - Calendar */
.calendar-left {
    flex: 1 1 420px;
    padding: 3rem;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    background: #ffffff;
}

.calendar-header {
    /* Flex alignment handled by Bootstrap classes in HTML */
    margin-bottom: 2rem;
    position: relative;
}

.calendar-header button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: white;
    color: #374151;
    transition: all 0.2s ease;
}

.calendar-header button:hover {
    background: #f3f4f6;
    color: #111827;
    transform: scale(1.05);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.current-month {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.5px;
    text-transform: capitalize;
    margin: 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    /* More breathing room */
    text-align: center;
}

.calendar-weekdays {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #9CA3AF;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.calendar-day:hover:not(.empty):not(.selected) {
    background-color: #F3F4F6;
    color: #111827;
    transform: scale(1.1);
}

.calendar-day.selected {
    background-color: #0069ff;
    /* Primary Brand Color */
    color: white;
    box-shadow: 0 4px 12px rgba(0, 105, 255, 0.3);
    font-weight: 600;
}

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

/* Right - Time Slots */
.calendar-right {
    flex: 0 0 340px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    background-color: #fafafa;
    /* Subtle contrast */
    border-left: 1px solid rgba(0, 0, 0, 0.02);
}

.slots-header {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
    letter-spacing: -0.3px;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.slots-list {
    display: grid;
    grid-template-columns: 1fr;
    /* Default to single column for cleaner look, or repeat(2, 1fr) for dense */
    gap: 0.75rem;
    overflow-y: auto;
    padding-right: 0.5rem;
    max-height: 400px;
}

/* Custom Scrollbar */
.slots-list::-webkit-scrollbar {
    width: 4px;
}

.slots-list::-webkit-scrollbar-track {
    background: transparent;
}

.slots-list::-webkit-scrollbar-thumb {
    background: #E5E7EB;
    border-radius: 4px;
}

.time-slot {
    border: 1px solid #E5E7EB;
    color: #0069ff;
    background: white;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.time-slot:hover {
    border-color: #0069ff;
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 105, 255, 0.15);
}

.time-slot:active {
    transform: translateY(0);
}

.slot-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6B7280;
    gap: 1rem;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .calendar-container {
        flex-direction: column;
        border-radius: 16px;
    }

    .calendar-left,
    .calendar-right {
        flex: auto;
        padding: 2rem;
        width: 100%;
        border-right: none;
    }

    .calendar-right {
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        max-height: 400px;
    }
}