:root {
    --primary-color: #F59E0B;
    --primary-dark: #D97706;
    --bg-color: #f8f9fa;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    height: 100vh;
    overflow: hidden;
    padding-top: 70px;
    /* Navbar height */
}

.main-container {
    height: calc(100vh - 70px);
    padding-bottom: 20px;
}

/* Navbar Tweaks */
.navbar {
    height: 70px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-size: 1.25rem;
    color: #000 !important;
}

/* Card Styles */
.card {
    transition: all 0.2s ease-in-out;
}

.ticket-card {
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* Search & Inputs */
.form-control:focus {
    box-shadow: none;
    background-color: #fff !important;
    border: 1px solid var(--primary-color) !important;
}

/* Cart Table */
.cart-scroll-area {
    overflow-y: auto;
    height: 0;
    /* Flexbox trick to fill available space */
}

.table> :not(caption)>*>* {
    padding: 1rem 1.5rem;
    border-bottom-color: #f3f4f6;
}

.table tr:last-child td {
    border-bottom: 0;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
    font-weight: 700;
}

.btn-primary:hover,
.btn-primary:active {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Scanner */
#interactive.viewport {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 0 0 1rem 1rem;
    overflow: hidden;
}

#interactive.viewport canvas,
video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive adjustments for mobile */
@media (max-width: 992px) {
    body {
        height: auto;
        overflow-y: auto;
        padding-bottom: 80px;
        /* Space for fixed bottom if needed, or just scrolling room */
    }

    .main-container {
        height: auto;
    }

    .ticket-card {
        height: auto;
        min-height: 400px;
    }

    .cart-scroll-area {
        height: auto;
        max-height: 50vh;
    }
}

/* Bootstrap Overrides for Gold Theme */
.text-primary {
    color: #b45309 !important;
    /* Dark Amber/Gold */
}

.bg-primary-subtle {
    background-color: #fffbeb !important;
    /* Light Amber */
    color: #b45309 !important;
}

.badge.bg-primary-subtle {
    background-color: #fcd34d !important;
    /* Gold */
    color: #000 !important;
}

.btn-outline-primary {
    color: #b45309;
    border-color: #b45309;
}

.btn-outline-primary:hover,
.btn-check:checked+.btn-outline-primary {
    background-color: #f59e0b;
    border-color: #f59e0b;
    color: #000;
}