/* Page styles for book.php (extracted from an inline <style> block so it can be cached). */

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e6eef8 100%);
    min-height: 100vh;
}
.booking-shell {
    max-width: 920px;
    margin: 2rem auto;
}
.booking-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px -8px rgba(0,0,0,0.15);
    overflow: hidden;
}
.booking-header {
    background: linear-gradient(135deg, #1d4ed8 0%, #4f46e5 100%);
    color: #fff;
    padding: 1.75rem 1.5rem;
    text-align: center;
}
.booking-header h1 {
    font-size: 1.4rem;
    margin: 0 0 .25rem;
    font-weight: 700;
}
.booking-header p { margin: 0; opacity: .9; }
.booking-body { padding: 1.5rem; }
.day-strip {
    display: grid;
    grid-auto-flow: column;
    gap: .5rem;
    overflow-x: auto;
    padding-bottom: .5rem;
}
.day-pill {
    min-width: 84px;
    padding: .5rem .25rem;
    border-radius: 12px;
    text-align: center;
    background: #f1f5f9;
    color: #0f172a;
    text-decoration: none;
    border: 2px solid transparent;
    transition: .15s;
}
.day-pill small { display: block; font-size: .7rem; color: #64748b; text-transform: uppercase; }
.day-pill .num { font-size: 1.25rem; font-weight: 700; line-height: 1; }
.day-pill:hover { background: #e2e8f0; }
.day-pill.active {
    background: #1d4ed8;
    color: #fff;
    border-color: #1d4ed8;
}
.day-pill.active small { color: rgba(255,255,255,.8); }
.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: .5rem;
    margin-top: 1rem;
}
.slot-btn {
    padding: .65rem .25rem;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #fff;
    font-weight: 600;
    transition: .15s;
}
.slot-btn:hover { background: #eff6ff; border-color: #1d4ed8; }
.slot-btn.selected { background: #1d4ed8; color: #fff; border-color: #1d4ed8; }
.slot-btn.disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    text-decoration: line-through;
    border-style: dashed;
}
.form-section { display: none; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid #e2e8f0; }
.form-section.show { display: block; }
.summary-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    border-radius: 10px;
    padding: .75rem 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}
.empty-slots {
    text-align: center;
    color: #64748b;
    padding: 2rem 1rem;
}
.lang-row {
    text-align: right;
    margin-bottom: .5rem;
}
.lang-row a {
    margin-left: .5rem;
    font-size: .85rem;
    color: #475569;
    text-decoration: none;
}
.lang-row a.active { color: #1d4ed8; font-weight: 600; }

/* ---------------------------------------------------------------- dark theme
 * Everything above hardcodes a light palette, and layout.php applies the
 * visitor's theme here as well, so each surface needs a dark counterpart.
 * Without these the white slot buttons keep white text and the times vanish.
 * The blue gradient header and the selected/active blue states are left alone:
 * they already carry white text and read correctly on either theme.
 */
[data-theme="dark"] body {
    background: linear-gradient(135deg, #0b0f19 0%, #161d2e 100%);
}

[data-theme="dark"] .booking-card {
    background: var(--surface);
    box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .day-pill {
    background: var(--surface-sunken);
    color: var(--text);
}

[data-theme="dark"] .day-pill small { color: var(--text-muted); }
[data-theme="dark"] .day-pill:hover { background: var(--surface-hover); }

[data-theme="dark"] .slot-btn {
    background: var(--surface-sunken);
    border-color: var(--border-strong);
    color: var(--text);
}

[data-theme="dark"] .slot-btn:hover {
    background: var(--surface-hover);
    border-color: var(--accent);
}

[data-theme="dark"] .slot-btn.disabled {
    background: var(--surface);
    color: var(--text-subtle);
}

[data-theme="dark"] .form-section { border-top-color: var(--border); }

[data-theme="dark"] .summary-box {
    background: var(--accent-soft);
    border-color: var(--border-strong);
    color: var(--text);
}

[data-theme="dark"] .empty-slots { color: var(--text-muted); }
[data-theme="dark"] .lang-row a { color: var(--text-muted); }
[data-theme="dark"] .lang-row a.active { color: var(--accent); }
