/**
 * Luxera Booking Pro Frontend Styles
 * Scoped to .luxera-booking-wrapper to avoid theme conflicts.
 */

.luxera-booking-wrapper {
    --luxera-primary: #0ca678;
    --luxera-primary-hover: #087f5b;
    --luxera-bg: #ffffff;
    --luxera-border: #e9ecef;
    --luxera-text-main: #212529;
    --luxera-text-muted: #868e96;
    --luxera-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    font-family: var(--luxera-font);
    background: var(--luxera-bg);
    border: 1px solid var(--luxera-border);
    border-radius: 12px;
    padding: 32px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    box-sizing: border-box;
}

.luxera-booking-wrapper * {
    box-sizing: border-box;
}

.luxera-booking-wrapper .luxera-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--luxera-text-main);
    margin: 0 0 20px 0;
    padding: 0;
    text-align: center;
}

.luxera-booking-wrapper .luxera-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--luxera-border);
    border-radius: 8px;
    font-size: 16px;
    color: var(--luxera-text-main);
    font-family: var(--luxera-font);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 20px;
}

.luxera-booking-wrapper .luxera-input:focus {
    border-color: var(--luxera-primary);
    box-shadow: 0 0 0 3px rgba(12, 166, 120, 0.15);
}

.luxera-booking-wrapper .luxera-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--luxera-primary);
    color: #ffffff;
    border: none;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--luxera-font);
    text-shadow: none;
}

.luxera-booking-wrapper .luxera-btn:hover:not(:disabled) {
    background: var(--luxera-primary-hover);
    transform: translateY(-1px);
}

.luxera-booking-wrapper .luxera-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.luxera-booking-wrapper .luxera-btn-outline {
    background: transparent;
    color: var(--luxera-text-main);
    border: 1px solid var(--luxera-border);
    margin-bottom: 12px;
}

.luxera-booking-wrapper .luxera-btn-outline:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #dee2e6;
    transform: none;
}

.luxera-booking-wrapper .luxera-error {
    color: #e03131;
    font-size: 14px;
    margin-bottom: 16px;
    text-align: center;
}

.luxera-booking-wrapper .luxera-no-slots {
    color: var(--luxera-text-muted);
    text-align: center;
    padding: 20px 0;
    font-size: 15px;
}

/* Calendar Styles */
.luxera-booking-wrapper .luxera-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: nowrap;
}

.luxera-booking-wrapper .luxera-calendar-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--luxera-text-main);
    flex-grow: 1;
    text-align: center;
    width: auto;
}

.luxera-booking-wrapper .luxera-cal-nav {
    background: transparent !important;
    border: none !important;
    font-size: 20px !important;
    font-weight: bold;
    color: var(--luxera-text-muted) !important;
    cursor: pointer;
    padding: 0 10px !important;
    margin: 0 !important;
    min-width: unset !important;
    min-height: unset !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
    border-radius: 6px;
    box-shadow: none !important;
    transition: all 0.2s ease;
}

.luxera-booking-wrapper .luxera-cal-nav:hover {
    background: #f8f9fa !important;
    color: var(--luxera-primary) !important;
}

.luxera-booking-wrapper .luxera-calendar-weekdays {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    text-align: center;
    font-weight: 600;
    color: var(--luxera-text-muted);
    font-size: 14px;
    margin-bottom: 10px;
    width: 100%;
}

.luxera-booking-wrapper .luxera-calendar-weekdays span {
    display: inline-block;
    width: 100%;
}

.luxera-booking-wrapper .luxera-calendar-grid {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 6px;
    width: 100%;
}

.luxera-booking-wrapper .luxera-calendar-grid .luxera-cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--luxera-text-main);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.luxera-booking-wrapper .luxera-calendar-grid .luxera-cal-day:not(.disabled):not(.empty):hover {
    background: #e6fcf5;
    color: var(--luxera-primary);
    border-color: #c3fae8;
}

.luxera-booking-wrapper .luxera-calendar-grid .luxera-cal-day.disabled {
    color: #ced4da;
    cursor: not-allowed;
    background: #f8f9fa;
}

.luxera-booking-wrapper .luxera-calendar-grid .luxera-cal-day.empty {
    cursor: default;
}

.luxera-booking-wrapper .luxera-calendar-grid .luxera-cal-day.today {
    font-weight: bold;
    color: var(--luxera-primary);
    border-color: var(--luxera-primary);
}

.luxera-booking-wrapper .luxera-calendar-grid .luxera-cal-day.selected {
    background: var(--luxera-primary);
    color: #fff;
    border-color: var(--luxera-primary);
    box-shadow: 0 4px 10px rgba(12, 166, 120, 0.3);
}

/* Slots Grid */
.luxera-booking-wrapper .luxera-slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Custom Scrollbar for slots */
.luxera-booking-wrapper .luxera-slots-grid::-webkit-scrollbar {
    width: 6px;
}
.luxera-booking-wrapper .luxera-slots-grid::-webkit-scrollbar-track {
    background: #f1f3f5;
    border-radius: 3px;
}
.luxera-booking-wrapper .luxera-slots-grid::-webkit-scrollbar-thumb {
    background: #ced4da;
    border-radius: 3px;
}

.luxera-booking-wrapper .luxera-slot-btn {
    background: #f8f9fa;
    border: 1px solid var(--luxera-border);
    color: var(--luxera-text-main);
    padding: 12px 8px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-family: var(--luxera-font);
}

.luxera-booking-wrapper .luxera-slot-btn:hover {
    border-color: var(--luxera-primary);
    color: var(--luxera-primary);
    background: #e6fcf5;
}

.luxera-booking-wrapper .luxera-slot-btn.active {
    background: var(--luxera-primary);
    border-color: var(--luxera-primary);
    color: #fff;
}

/* Wizard Actions */
.luxera-booking-wrapper .luxera-wizard-actions {
    display: flex;
    flex-direction: column;
}

/* Loader Overlay */
.luxera-booking-wrapper .luxera-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 12px;
}

.luxera-booking-wrapper .luxera-loader span {
    font-size: 16px;
    font-weight: 500;
    color: var(--luxera-text-main);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .luxera-booking-wrapper .luxera-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .luxera-booking-wrapper {
        padding: 24px 16px;
    }
}
