/* ── TableTemptation — global styles ──────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html, body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: #FAFAFA;
}

/* ── Hero section ────────────────────────────────────────────────────── */
.tt-hero {
    background: linear-gradient(135deg, #E05E2B 0%, #B84A1E 100%);
    color: #fff;
    padding: 0;
}

.tt-hero-title {
    color: #fff !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
}

.tt-hero-subtitle {
    color: rgba(255,255,255,0.88) !important;
}

.tt-cta-btn {
    min-width: 160px;
}

/* ── Feature cards ───────────────────────────────────────────────────── */
.tt-feature-card {
    border-radius: 12px !important;
    transition: box-shadow 0.2s ease;
}
.tt-feature-card:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.12) !important;
}

/* ── Alternating section background ─────────────────────────────────── */
.tt-section-alt {
    background: #F0F0F0;
}

/* ── CTA banner ──────────────────────────────────────────────────────── */
.tt-cta-banner {
    background: #fff;
    border-top: 1px solid #E0E0E0;
}

/* ── Auth pages ──────────────────────────────────────────────────────── */
.tt-auth-page {
    min-height: calc(100vh - 64px);
    background: #F5F5F5;
    display: flex;
    flex-direction: column;
}

.tt-auth-card {
    border-radius: 16px !important;
}

/* ── Admin stat cards ────────────────────────────────────────────────── */
.tt-stat-card {
    border-radius: 12px !important;
}
.tt-stat-card-link {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tt-stat-card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
}

/* ── Image lightbox ─────────────────────────────────────────────────── */
.tt-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.tt-lightbox-content {
    position: relative;
    max-width: 80vw;
    max-height: 80vh;
    cursor: default;
}
.tt-lightbox-image {
    max-width: 80vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.tt-lightbox-close {
    position: absolute !important;
    top: -40px;
    right: -8px;
    color: white !important;
}
.tt-menu-item-image {
    cursor: pointer;
    transition: transform 0.15s ease;
}
.tt-menu-item-image:hover {
    transform: scale(1.05);
}

/* ── Admin quick-action panels ───────────────────────────────────────── */
.tt-quick-action {
    border-radius: 12px !important;
    transition: box-shadow 0.2s ease;
}
.tt-quick-action:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
}

/* ── Public menu banner ──────────────────────────────────────────────── */
.tt-public-banner {
    position: relative;
    padding: 3rem 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tt-public-banner-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.tt-public-banner-compact {
    min-height: auto;
    padding: 2rem 0;
}

.tt-public-logo {
    max-height: 80px;
    max-width: 200px;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

/* ── Flag images ─────────────────────────────────────────────────────── */
.tt-flag-chip {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 4px;
    vertical-align: middle;
}

/* ── Blazor error UI ─────────────────────────────────────────────────── */
#blazor-error-ui {
    background: #ffeded;
    border-top: 1px solid #e3c4c4;
    color: #333;
    display: none;
    font-size: 14px;
    padding: 12px 20px;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; float: right; }

/* ── Booking timeline bar (per-row slot indicator) ─────────────────── */
.booking-timeline {
    position: relative;
    height: 8px;
    background: #eeeeee;
    border-radius: 4px;
    overflow: hidden;
}

.booking-timeline-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #ccc;
    z-index: 1;
}

.booking-timeline-slot {
    position: absolute;
    top: 0;
    bottom: 0;
    border-radius: 4px;
    z-index: 2;
    transition: opacity 0.15s ease;
}

.booking-timeline--green  { background: #4caf50; }   /* 0–40% capacity */
.booking-timeline--orange { background: #ff9800; }   /* 40–80% capacity */
.booking-timeline--red    { background: #f44336; }   /* 80–100% capacity */

/* ── Change indicator ───────────────────────────────────────────────── */
.change-indicator {
    color: #e65100;
    font-weight: 600;
    font-size: 0.85em;
}
