@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
    --bg-color: #161616; /* Matte black / charcoal */
    --surface-color: #242424; /* Slightly lighter for cards */
    --primary-color: #df8a86; /* Blush / dusty coral pink */
    --primary-dark: #c9716e;
    --text-main: #fdfbf7; /* Warm cream / ivory */
    --text-muted: #a9a9a9;
    --accent-gold: #d4af37; /* Subtle gold */
    
    --font-brand: 'Playfair Display', serif;
    --font-ui: 'Montserrat', sans-serif;
    
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
    
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-ui);
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, .brand-text { font-family: var(--font-brand); font-weight: 600; }
.brand-title { font-size: 2.2rem; font-style: italic; color: var(--primary-color); text-align: center; margin-bottom: 0.5rem; }
.subtext { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-family: var(--font-ui);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
    text-decoration: none;
}
.btn-primary { background-color: var(--primary-color); color: var(--bg-color); }
.btn-primary:hover { background-color: var(--primary-dark); }
.btn-outline { background-color: transparent; border: 1px solid var(--primary-color); color: var(--primary-color); }

/* --- CUSTOMER WAIT VIEW (Mobile First) --- */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 80px; /* Space for bottom nav */
}

.wait-header { text-align: center; margin-bottom: 2rem; margin-top: 1rem; }
.wait-time-display {
    text-align: center;
    background: var(--surface-color);
    padding: 2rem 1rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    margin-bottom: 2rem;
}
.wait-message { font-size: 1.1rem; margin-bottom: 1rem; font-weight: 300; }
.time-large { font-size: 3.5rem; font-family: var(--font-brand); color: var(--primary-color); line-height: 1; }
.time-label { font-size: 0.9rem; color: var(--text-muted); }

/* Progress Tracker */
.progress-tracker {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 2rem 0;
}
.progress-tracker::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--surface-color);
    z-index: 1;
}
.progress-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 25%;
}
.step-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--surface-color);
    border: 2px solid var(--bg-color);
    margin-bottom: 8px;
    transition: all 0.3s ease;
}
.step-label { font-size: 0.7rem; text-align: center; color: var(--text-muted); line-height: 1.2; }
.progress-step.active .step-dot { background: var(--primary-color); box-shadow: 0 0 10px rgba(223, 138, 134, 0.5); }
.progress-step.active .step-label { color: var(--text-main); font-weight: 500; }
.progress-step.completed .step-dot { background: var(--accent-gold); }

/* Carousel */
.carousel-section { margin-top: 1rem; }
.carousel-section h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding-bottom: 10px;
    scrollbar-width: none; /* Firefox */
}
.carousel::-webkit-scrollbar { display: none; } /* Chrome */
.promo-card {
    min-width: 280px;
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    scroll-snap-align: start;
    box-shadow: var(--shadow-soft);
}
.promo-img { width: 100%; height: 160px; object-fit: cover; }
.promo-content { padding: 15px; }
.promo-title { font-size: 1.1rem; color: var(--text-main); margin-bottom: 5px; }
.promo-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 10px; }

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--surface-color);
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    z-index: 100;
}
.nav-item {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.nav-item.active { color: var(--primary-color); }

/* Ready Screen */
#ready-view {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--primary-color);
    color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    z-index: 200;
}
#ready-view h1 { font-size: 3rem; margin-bottom: 1rem; color: var(--bg-color); }
#ready-view p { font-size: 1.2rem; margin-bottom: 2rem; font-weight: 500; }
#ready-view .btn-outline {
    border-color: var(--bg-color);
    color: var(--bg-color);
    font-size: 1.2rem;
    padding: 15px 40px;
}

/* --- HOST DASHBOARD (Tablet/Desktop) --- */
.host-container { padding: 30px; max-width: 1200px; margin: 0 auto; }
.host-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card {
    background: var(--surface-color);
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
    border-bottom: 3px solid var(--primary-color);
}
.stat-card h3 { font-size: 2rem; color: var(--text-main); margin-bottom: 5px; font-family: var(--font-ui); }
.controls-bar { display: flex; justify-content: space-between; margin-bottom: 20px; gap: 15px; }
.search-input {
    flex-grow: 1;
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid #444;
    background: var(--bg-color);
    color: var(--text-main);
}
.waitlist-table-container { background: var(--surface-color); border-radius: var(--radius-lg); overflow: hidden; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 15px; border-bottom: 1px solid #333; }
th { color: var(--text-muted); font-weight: 500; font-size: 0.9rem; text-transform: uppercase; }
td { vertical-align: middle; }
.status-select {
    background: var(--bg-color);
    color: var(--text-main);
    border: 1px solid #444;
    padding: 8px;
    border-radius: var(--radius-sm);
    font-family: var(--font-ui);
}
.est-input {
    width: 60px;
    background: var(--bg-color);
    color: var(--text-main);
    border: 1px solid #444;
    padding: 8px;
    border-radius: var(--radius-sm);
    text-align: center;
}
.action-btn { background: transparent; color: var(--primary-color); border: none; cursor: pointer; font-size: 0.9rem; }

/* Modal */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); justify-content: center; align-items: center; z-index: 1000;
}
.modal-overlay.active { display: flex; }
.modal-content { background: var(--surface-color); padding: 30px; border-radius: var(--radius-lg); width: 100%; max-width: 400px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; color: var(--text-muted); font-size: 0.9rem; }
.form-group input {
    width: 100%; padding: 10px; border-radius: var(--radius-sm);
    border: 1px solid #444; background: var(--bg-color); color: var(--text-main);
}

/* --- TABLE ENGAGEMENT PAGE --- */
.table-container { max-width: 480px; margin: 0 auto; padding: 40px 20px; text-align: center; }
.engagement-grid { display: grid; grid-template-columns: 1fr; gap: 15px; margin-top: 30px; }
.engage-card {
    background: var(--surface-color); padding: 20px; border-radius: var(--radius-lg);
    text-decoration: none; color: var(--text-main); border: 1px solid transparent;
    transition: border-color 0.2s; display: flex; align-items: center; justify-content: center;
}
.engage-card:hover { border-color: var(--primary-color); }
.engage-card h3 { font-family: var(--font-ui); font-weight: 500; font-size: 1.1rem; }
