/* Schedule Widget - Ultra V3 (Horizontal Flow) */
@import url("variables.css");

.schedule-wrapper {
    background: rgba(10, 25, 47, 0.7);
    border-radius: 24px;
    border: 1px solid rgba(100, 255, 218, 0.1);
    padding: 3rem;
    position: relative;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    overflow: hidden;
}

/* Top Gradient Line */
.schedule-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, #64ffda, transparent);
    opacity: 0.5;
}

/* Widget Layout */
.schedule-widget {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    color: #e6f1ff;
    font-family: 'Inter', sans-serif;
    min-height: 400px;
}

/* Header Area */
.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
    padding-bottom: 1.5rem;
    margin-bottom: 1rem;
}

.schedule-title {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8892b0;
    font-family: 'Fira Code', monospace;
}

.current-month-year {
    font-size: 1.2rem;
    font-weight: 700;
    color: #64ffda;
}

/* Date Selector Strip (Horizontal) */
.week-days {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 2rem;
}

.day-selector {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 12px;
    padding: 1rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.day-selector:hover {
    background: rgba(100, 255, 218, 0.05);
    border-color: rgba(100, 255, 218, 0.3);
    transform: translateY(-2px);
}

.day-selector.selected {
    background: #64ffda;
    color: #020c1b;
    border-color: #64ffda;
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.4);
}

.day-selector.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.day-name {
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-family: 'Fira Code', monospace;
}

.day-number {
    font-size: 1.5rem;
    font-weight: 800;
}

/* Time Slots Grid (Pills) */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    padding: 1rem;
    background: rgba(2, 12, 27, 0.4);
    border-radius: 16px;
    border: 1px dashed rgba(100, 255, 218, 0.1);
    min-height: 150px;
}

.time-pill {
    background: transparent;
    border: 1px solid rgba(100, 255, 218, 0.2);
    color: #64ffda;
    padding: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.time-pill:hover {
    background: rgba(100, 255, 218, 0.1);
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.15);
    transform: scale(1.05);
}

.time-pill:active {
    transform: scale(0.95);
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: #8892b0;
    font-style: italic;
}

/* Loading Overlay */
.schedule-loading {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 25, 47, 0.8);
    display: none; /* Toggled by JS */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    z-index: 10;
    border-radius: 24px;
}

.loading-spinner {
    width: 50px; height: 50px;
    border: 3px solid rgba(100, 255, 218, 0.1);
    border-top-color: #64ffda;
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Navigation Buttons */
.nav-btn {
    background: transparent;
    border: 1px solid rgba(100, 255, 218, 0.2);
    color: #64ffda;
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: rgba(100, 255, 218, 0.1);
    border-color: #64ffda;
}

/* Booking Form View */
.booking-form {
    display: none; /* Hidden initially */
    animation: slideUp 0.4s ease-out;
}

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

/* Confirmation View */
.booking-confirmation {
    display: none;
    text-align: center;
    padding: 3rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .schedule-wrapper { padding: 1.5rem; }
    .week-days { overflow-x: auto; padding-bottom: 10px; }
    .day-selector { min-width: 80px; }
    .time-slots-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
}
