@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --burgundy: #5d0b0b;
    --burgundy-light: #7c0f0f;
    --gold: #c5a059;
    --gold-bright: #e2c08d;
    --bg-dark: #0a0808;
    --card-bg: rgba(26, 20, 20, 0.95);
    --glass-bg: rgba(30, 20, 20, 0.7);
    --glass-border: rgba(197, 160, 89, 0.2);
    --text-light: #fefcf9;
    --text-muted: #a09595;
    --success: #2d6a4f;
    --danger: #9b2226;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(93, 11, 11, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(197, 160, 89, 0.05) 0%, transparent 40%);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
}

#app {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Header/Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 1.2rem;
}

.logo-icon {
    background: var(--burgundy);
    color: var(--gold);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--gold);
}

/* Login Page */
#auth-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: var(--card-bg);
    max-width: 450px;
    width: 90%;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    border: 1px solid var(--glass-border);
    text-align: center;
}

.login-card h1 {
    color: var(--gold);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.03);
    color: white;
    outline: none;
    transition: 0.3s;
    font-size: 1rem;
}

input:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.1);
}

/* Buttons */
.btn-login {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--burgundy), var(--burgundy-light));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-login:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(124, 15, 15, 0.4);
}

.btn-logout {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-logout:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* POS Design */
.pos-header h2 {
    font-size: 1.8rem;
    background: linear-gradient(to right, var(--gold), var(--gold-bright));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.table-card {
    background: var(--glass-bg);
    padding: 2.5rem 1.5rem;
    border-radius: 18px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.table-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.table-card.occupee::after {
    background: var(--burgundy);
}

.table-card.libre::after {
    background: var(--success);
}

.table-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.table-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--gold);
}

.table-card span {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* Product Cards */
.product-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: 0.2s;
    position: relative;
    min-height: 250px;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.03);
}

/* Tabs & Categories */
.tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.tab-btn.active {
    background: var(--gold);
    color: var(--bg-dark);
}

/* Cart Panel */
.cart-panel {
    background: linear-gradient(180deg, var(--card-bg) 0%, #000 100%);
    border: 1px solid var(--glass-border);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
}

/* Payment Modal */
#payment-modal .pay-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(212, 175, 55, 0.1);
    padding: 2rem 1rem;
    border-radius: 12px;
    color: var(--text-light);
    font-weight: 700;
    transition: 0.2s;
}

#payment-modal .pay-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gold);
    transform: translateY(-5px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--burgundy);
    border-radius: 10px;
}

/* Navigation Bar (Mobile-First) */
.nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid var(--glass-border);
    z-index: 1000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-item .nav-icon {
    font-size: 1.5rem;
}

.nav-item.active {
    color: var(--gold);
}

.nav-item:hover {
    color: var(--gold-bright);
}

/* Responsive Utilities */
@media (min-width: 900px) {
    .nav-bar {
        top: 0;
        bottom: auto;
        left: auto;
        right: 20px;
        width: auto;
        height: auto;
        background: transparent;
        border: none;
        backdrop-filter: none;
        box-shadow: none;
        padding-top: 15px;
    }

    .nav-item {
        flex-direction: row;
        gap: 10px;
        font-size: 0.85rem;
        background: rgba(255, 255, 255, 0.03);
        padding: 10px 15px;
        border-radius: 20px;
        border: 1px solid var(--glass-border);
    }

    .nav-item.active {
        background: var(--gold);
        color: var(--bg-dark);
    }
}

.desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .desktop-only {
        display: block;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .order-interface {
        flex-direction: column !important;
    }

    .cart-panel {
        margin-top: 20px;
    }
}