/* ===================================================
   Saffron & Sage - Modern Luxury Restaurant CSS (100% Responsive & High Contrast)
   =================================================== */

:root {
    --bg-main: #0c1017;
    --bg-card: #141a24;
    --bg-card-hover: #1c2433;
    --bg-glass: rgba(18, 24, 36, 0.92);
    --border-color: rgba(255, 255, 255, 0.12);
    --border-focus: #f59e0b;
    --primary-color: #f59e0b;
    --primary-hover: #d97706;
    --accent-gold: #fbbf24;
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #38bdf8;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(245, 158, 11, 0.35);
    --transition: all 0.25s ease-in-out;
}

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.text-gold {
    color: var(--primary-color) !important;
}

.text-gradient-gold {
    color: #f59e0b;
    background: linear-gradient(135deg, #fef08a 0%, #f59e0b 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.sub-title {
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: inline-block;
}

/* Buttons */
.btn-gold {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: #0c1017 !important;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    border: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: #000 !important;
}

.btn-outline-gold {
    background: transparent;
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color) !important;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-outline-gold:hover {
    background: var(--primary-color);
    color: #0c1017 !important;
    transform: translateY(-2px);
}

/* Navbar */
.navbar-custom {
    background: rgba(12, 16, 23, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-custom .navbar-brand {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.navbar-custom .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.94rem;
    padding: 8px 12px !important;
    transition: var(--transition);
    white-space: nowrap;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--primary-color);
}

.branch-badge-btn {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: var(--primary-color);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.branch-badge-btn:hover {
    background: rgba(245, 158, 11, 0.3);
    color: #fff;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 70px 0 90px;
    background: radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.12) 0%, transparent 50%),
                radial-gradient(circle at 10% 80%, rgba(30, 41, 59, 0.4) 0%, transparent 60%);
    overflow: hidden;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 18px;
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.4rem;
    }
    .hero-section {
        padding: 40px 0 60px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.95rem;
    }
}

.hero-image-wrapper {
    position: relative;
}

.hero-image-wrapper img {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    object-fit: cover;
    width: 100%;
    max-height: 480px;
}

.floating-stats-card {
    position: absolute;
    bottom: -15px;
    left: -15px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(14px);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    box-shadow: var(--shadow-soft);
}

/* Card Styles */
.custom-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px;
    transition: var(--transition);
}

.custom-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(245, 158, 11, 0.35);
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

/* Food Item Card */
.food-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.food-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.food-card-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #1e293b;
}

.food-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.food-card:hover .food-card-img-wrap img {
    transform: scale(1.05);
}

.badge-dietary {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.badge-veg {
    background: #10b981;
    color: #fff;
}

.badge-nonveg {
    background: #ef4444;
    color: #fff;
}

.badge-special {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-weight: 700;
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.food-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.food-card-title {
    font-size: 1.12rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.food-card-desc {
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.5;
    margin-bottom: 14px;
    flex-grow: 1;
}

.food-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
}

.food-price-old {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 6px;
}

/* Category Filter Tabs */
.category-tab-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 8px 18px;
    border-radius: 50px;
    margin: 3px;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.category-tab-btn:hover,
.category-tab-btn.active {
    background: var(--primary-color);
    color: #0c1017;
    border-color: var(--primary-color);
    font-weight: 700;
}

/* ===================================================
   Tables & High Contrast Data View (FIX FOR WHITE BACKGROUND)
   =================================================== */
.table-dark-custom,
.table-dark-custom > :not(caption) > * > *,
.table-dark-custom th,
.table-dark-custom td,
.receipt-custom-table,
.receipt-custom-table > :not(caption) > * > *,
.receipt-custom-table th,
.receipt-custom-table td {
    background-color: #101622 !important;
    color: #ffffff !important;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    vertical-align: middle;
}

.table-dark-custom thead th,
.table-dark-custom thead > tr > th,
.receipt-custom-table thead th,
.receipt-custom-table thead > tr > th {
    background-color: #0b0f17 !important;
    color: #94a3b8 !important;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.table-dark-custom tfoot td,
.table-dark-custom tfoot > tr > td,
.receipt-custom-table tfoot td,
.receipt-custom-table tfoot > tr > td {
    background-color: #0d121c !important;
    color: #ffffff !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Timeline for Order Tracking */
.tracking-timeline {
    position: relative;
    padding-left: 35px;
}

.tracking-timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: #334155;
}

.timeline-step {
    position: relative;
    margin-bottom: 24px;
}

.timeline-dot {
    position: absolute;
    left: -35px;
    top: 2px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #1e293b;
    border: 2px solid #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #fff;
}

.timeline-step.completed .timeline-dot {
    background: var(--success);
    border-color: var(--success);
}

.timeline-step.active .timeline-dot {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
}

/* Form Controls */
.form-dark {
    background-color: #0f141f !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
}

.form-dark:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.25) !important;
}

.form-dark option {
    background: #0f141f;
    color: #ffffff;
}

/* Status Badges */
.badge-status {
    padding: 5px 12px;
    font-size: 0.76rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.status-confirmed, .status-ready {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
}

.status-preparing {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

.status-delivered, .status-completed, .status-seated {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

/* Footer */
.footer-main {
    background: #070a0f;
    border-top: 1px solid var(--border-color);
    padding: 60px 0 25px;
    color: var(--text-secondary);
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    margin-bottom: 9px;
    font-size: 0.92rem;
}

.footer-link:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}

.stat-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.stat-icon-gold {
    background: rgba(245, 158, 11, 0.2);
    color: var(--primary-color);
}

.stat-icon-green {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.stat-icon-blue {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
}

.stat-icon-purple {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
}
