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

:root {
    --bg-primary: #121214;
    --bg-secondary: #1a1a1e;
    --bg-tertiary: #26262b;
    --accent-gold: #f59e0b;
    --accent-red: #ef4444;
    --accent-green: #10b981;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --glass-bg: rgba(26, 26, 30, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: rgba(0, 0, 0, 0.3);
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* Header & Navigation */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 30px var(--glass-shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.logo span {
    color: var(--accent-red);
}

.logo:hover {
    transform: scale(1.02);
}

.menu-toggle {
    display: none; /* Hidden by default on desktop */
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.menu-toggle:hover {
    color: var(--accent-gold);
}

.nav-menu {
    display: flex; /* Horizontal on desktop */
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu li {
    text-align: center;
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-gold);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold), #d97706);
    color: #121214;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.25);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-gold);
}

.btn-danger {
    background: var(--accent-red);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.25);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

/* Badge count for cart */
.cart-badge {
    background-color: var(--accent-red);
    color: white;
    border-radius: 50%;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.25rem;
}

/* Main Content Area */
main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(rgba(18, 18, 20, 0.8), rgba(18, 18, 20, 0.95)), url('https://images.unsplash.com/photo-1513104890138-7c749659a591?q=80&w=2070&auto=format&fit=crop') no-repeat center/cover;
    border-radius: var(--radius-lg);
    margin-bottom: 3rem;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.hero h1 span {
    color: var(--accent-gold);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Pizza Menu Grid */
.menu-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent-gold);
    padding-left: 1rem;
}

.pizza-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.pizza-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.pizza-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(245, 158, 11, 0.3);
}

.pizza-image-container {
    height: 200px;
    background: #2b2b30;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.pizza-image-placeholder {
    font-size: 5rem;
}

.pizza-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.pizza-card:hover .pizza-image {
    transform: scale(1.05);
}

.pizza-price-tag {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: var(--accent-gold);
    color: #121214;
    padding: 0.4rem 0.8rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
}

.pizza-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pizza-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.pizza-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.pizza-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.qty-select {
    background: var(--bg-tertiary);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    padding: 0.4rem;
    border-radius: var(--radius-sm);
    outline: none;
    font-weight: 600;
}

/* Forms & Authentication */
.auth-container {
    max-width: 450px;
    margin: 4rem auto;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.auth-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: white;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    color: var(--text-main);
    font-family: var(--font-sans);
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.alert {
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--accent-red);
    color: #fca5a5;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--accent-green);
    color: #a7f3d0;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Shopping Cart styles */
.cart-table-container {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 2rem;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.cart-table th, .cart-table td {
    padding: 1rem 1.5rem;
}

.cart-table th {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-weight: 600;
}

.cart-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.cart-total-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    font-weight: 700;
}

.cart-total-bar span {
    color: var(--accent-gold);
}

/* Checkout Layout */
.checkout-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    align-items: start;
}

.checkout-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 2rem;
}

.checkout-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: white;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.payment-method-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-option-card {
    border: 1px solid var(--glass-border);
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    padding: 1rem;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}

.payment-option-card.active, input[type="radio"]:checked + .payment-option-card {
    border-color: var(--accent-gold);
    background: rgba(245, 158, 11, 0.05);
}

.payment-option-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.transfer-info-box {
    background: var(--bg-tertiary);
    border: 1px dashed var(--accent-gold);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.transfer-info-box p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.transfer-info-box strong {
    color: var(--accent-gold);
}

/* Orders History & Order Status list */
.order-list-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.order-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.order-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-pending { background: rgba(245, 158, 11, 0.15); color: #fcd34d; border: 1px solid var(--accent-gold); }
.status-prepared { background: rgba(59, 130, 246, 0.15); color: #93c5fd; border: 1px solid #3b82f6; }
.status-delivered { background: rgba(16, 185, 129, 0.15); color: #a7f3d0; border: 1px solid var(--accent-green); }

.pay-status-unpaid { background: rgba(239, 68, 68, 0.15); color: #fca5a5; border: 1px solid var(--accent-red); }
.pay-status-paid { background: rgba(16, 185, 129, 0.15); color: #a7f3d0; border: 1px solid var(--accent-green); }

/* Admin Dashboard layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-val {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Admin lists table */
.admin-table-container {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: 1.5rem;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    white-space: nowrap;
}

.admin-table th, .admin-table td {
    padding: 1rem;
    vertical-align: middle;
}

.admin-table th {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

.admin-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.admin-tab {
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--transition);
}

.admin-tab:hover, .admin-tab.active {
    color: var(--accent-gold);
}

/* Footer styling */
footer {
    background: #0d0d0f;
    border-top: 1px solid var(--glass-border);
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    margin-top: auto;
    font-size: 0.9rem;
}

footer p span {
    color: var(--accent-gold);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-container {
        position: relative;
        flex-direction: row !important;
        justify-content: space-between;
        padding: 1rem 1.5rem;
        width: 100%;
    }
    
    .menu-toggle {
        display: block !important;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: var(--bg-secondary);
        border-top: 1px solid var(--glass-border);
        border-bottom: 1px solid var(--glass-border);
        padding: 1.5rem;
        gap: 1rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
        z-index: 99;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .nav-menu.active {
        display: flex !important;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-link {
        display: block;
        padding: 0.75rem;
        text-align: center;
    }
    
    main {
        padding: 0 1rem;
        margin: 1rem auto;
    }

    .hero {
        padding: 2.5rem 1rem;
        margin-bottom: 2rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .menu-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .checkout-layout {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .checkout-card {
        padding: 1.25rem;
    }

    .payment-method-options {
        grid-template-columns: 1fr;
    }
}

/* Print View Styles */
@media print {
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
    }
    
    header, footer, .btn, .admin-tabs, .no-print {
        display: none !important;
    }
    
    main {
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
    }
    
    .ticket-container {
        width: 80mm; /* Standard receipt printer width */
        margin: 0 auto;
        padding: 5mm;
        border: none !important;
    }
}
