/* =============================================
   WOW PIZZA - Design System
   Bright Food Theme (Light)
   ============================================= */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* =============================================
   CSS Variables
   ============================================= */
:root {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.9);
    --bg-glass-light: rgba(0, 0, 0, 0.03);
    --accent: #ff5722;
    --accent-hover: #e64a19;
    --accent-glow: rgba(255, 87, 34, 0.25);
    --accent-red: #e63946;
    --accent-green: #06d6a0;
    --accent-blue: #4cc9f0;
    --accent-yellow: #fbc02d;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-accent: rgba(255, 87, 34, 0.3);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    --shadow-accent: 0 8px 24px rgba(255, 87, 34, 0.25);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   Reset & Base
   ============================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 87, 34, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(251, 192, 45, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(230, 57, 70, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* =============================================
   Container
   ============================================= */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* =============================================
   Header / Navbar
   ============================================= */
.header {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
}

.logo-icon {
    font-size: 1.8rem;
}

.logo span {
    background: linear-gradient(135deg, var(--accent), var(--accent-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--bg-glass-light);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.header-info i {
    color: var(--accent);
}

/* =============================================
   Back Button
   ============================================= */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 8px 0;
    transition: var(--transition);
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.btn-back:hover {
    color: var(--accent);
}

/* =============================================
   Page Title
   ============================================= */
.page-title {
    text-align: center;
    padding: 30px 0 10px;
}

.page-title h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-title p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* =============================================
   Glass Card
   ============================================= */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: var(--border-accent);
}

/* =============================================
   Forms
   ============================================= */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group label i {
    margin-right: 6px;
    color: var(--accent);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-glass-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* =============================================
   Buttons
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-red));
    color: white;
    box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 87, 34, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

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

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

.btn-success {
    background: linear-gradient(135deg, #06d6a0, #059669);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(6, 214, 160, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, var(--accent-red), #c1121f);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
}

.btn-warning {
    background: linear-gradient(135deg, var(--accent-yellow), #f59e0b);
    color: #212529;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
    border-radius: 8px;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 10px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* =============================================
   Category Tabs
   ============================================= */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 20px 0;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-glass-light);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-secondary);
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.tab-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-red));
    border-color: transparent;
    color: white;
}

.tab-btn i {
    font-size: 1rem;
}

/* =============================================
   Menu Cards
   ============================================= */
.menu-grid {
    display: grid;
    gap: 16px;
    padding-bottom: 100px;
}

.menu-card {
    display: flex;
    gap: 14px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 14px;
    transition: var(--transition);
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

.menu-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.menu-card-img {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.menu-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-card-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.menu-card-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.menu-card-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-glass-light);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.qty-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.qty-btn.minus {
    color: var(--accent-red);
}

.qty-value {
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 20px;
    text-align: center;
}

.btn-add-cart {
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-red));
    border: none;
    border-radius: 8px;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-add-cart:hover {
    transform: scale(1.05);
}

/* =============================================
   Floating Cart Bar
   ============================================= */
.cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-accent);
    padding: 16px 20px;
    z-index: 99;
    transform: translateY(100%);
    transition: var(--transition);
}

.cart-bar.show {
    transform: translateY(0);
}

.cart-bar-content {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-info {
    display: flex;
    flex-direction: column;
}

.cart-count {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.cart-total {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
}

.cart-bar .btn-primary {
    padding: 12px 24px;
    font-size: 0.9rem;
}

/* =============================================
   Order Summary (Konfirmasi)
   ============================================= */
.order-summary {
    margin: 20px 0;
}

.order-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-item-qty {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
}

.order-item-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.order-item-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
}

.order-total {
    display: flex;
    justify-content: space-between;
    padding: 18px 0;
    margin-top: 10px;
    border-top: 2px solid var(--accent);
}

.order-total-label {
    font-size: 1rem;
    font-weight: 600;
}

.order-total-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent);
}

/* =============================================
   Payment Methods
   ============================================= */
.payment-options {
    display: grid;
    gap: 14px;
    margin: 20px 0;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.payment-option:hover {
    border-color: var(--accent);
}

.payment-option.selected {
    border-color: var(--accent);
    background: rgba(255, 87, 34, 0.08);
    box-shadow: var(--shadow-accent);
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-red));
    border-radius: 12px;
    font-size: 1.3rem;
    color: white;
}

.payment-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.payment-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* =============================================
   QRIS Display
   ============================================= */
.qris-display {
    text-align: center;
    padding: 30px 20px;
}

.qris-display img {
    max-width: 220px;
    margin: 0 auto 16px;
    border-radius: var(--radius);
    border: 3px solid var(--border-color);
}

.qris-display p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* =============================================
   Status Tracker
   ============================================= */
.status-tracker {
    padding: 30px 0;
}

.status-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.status-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0;
    position: relative;
}

.status-step::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 50px;
    bottom: -20px;
    width: 2px;
    background: var(--border-color);
}

.status-step:last-child::before {
    display: none;
}

.status-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
    z-index: 2;
}

.status-step.active .status-dot {
    border-color: var(--accent);
    background: linear-gradient(135deg, var(--accent), var(--accent-red));
    color: white;
    animation: pulse 2s infinite;
}

.status-step.completed .status-dot {
    border-color: var(--accent-green);
    background: var(--accent-green);
    color: white;
}

.status-step.completed::before {
    background: var(--accent-green);
}

.status-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-muted);
}

.status-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.status-step.active .status-info h3,
.status-step.completed .status-info h3 {
    color: var(--text-primary);
}

.status-step.active .status-info p,
.status-step.completed .status-info p {
    color: var(--text-secondary);
}

.estimasi-box {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.1), rgba(211, 47, 47, 0.1));
    border: 1px solid var(--border-accent);
    border-radius: var(--radius);
    margin-top: 20px;
}

.estimasi-box i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 8px;
}

.estimasi-time {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.estimasi-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* =============================================
   Landing Page
   ============================================= */
.landing-hero {
    text-align: center;
    padding: 80px 20px 40px;
}

.landing-logo {
    font-size: 4rem;
    margin-bottom: 16px;
    animation: bounceIn 0.8s ease;
}

.landing-hero h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--accent), var(--accent-red), var(--accent-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-hero p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 300px;
    margin: 0 auto;
}

.scan-instruction {
    margin-top: 50px;
    padding: 30px;
    text-align: center;
}

.scan-instruction i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 16px;
    animation: pulse 2s infinite;
}

.scan-instruction h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.scan-instruction p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =============================================
   Admin Layout
   ============================================= */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 24px 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 50;
    transition: var(--transition);
}

.admin-sidebar .logo {
    padding: 0 24px;
    margin-bottom: 30px;
}

.admin-nav {
    list-style: none;
}

.admin-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.admin-nav li a:hover {
    background: var(--bg-glass-light);
    color: var(--text-primary);
}

.admin-nav li a.active {
    background: rgba(255, 107, 53, 0.1);
    color: var(--accent);
    border-left-color: var(--accent);
}

.admin-nav li a i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    padding: 24px;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.admin-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* =============================================
   Admin Dashboard Stats
   ============================================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.4rem;
}

.stat-icon.orange {
    background: rgba(255, 107, 53, 0.15);
    color: var(--accent);
}

.stat-icon.green {
    background: rgba(6, 214, 160, 0.15);
    color: var(--accent-green);
}

.stat-icon.blue {
    background: rgba(76, 201, 240, 0.15);
    color: var(--accent-blue);
}

.stat-icon.red {
    background: rgba(230, 57, 70, 0.15);
    color: var(--accent-red);
}

.stat-info h3 {
    font-size: 1.6rem;
    font-weight: 800;
}

.stat-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* =============================================
   Admin Tables
   ============================================= */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 14px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: 14px 16px;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.data-table tr:hover td {
    background: var(--bg-glass-light);
}

.data-table .menu-img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
}

/* =============================================
   Badges
   ============================================= */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-pending {
    background: rgba(255, 209, 102, 0.15);
    color: var(--accent-yellow);
}

.badge-dikonfirmasi {
    background: rgba(76, 201, 240, 0.15);
    color: var(--accent-blue);
}

.badge-dimasak {
    background: rgba(255, 107, 53, 0.15);
    color: var(--accent);
}

.badge-selesai {
    background: rgba(6, 214, 160, 0.15);
    color: var(--accent-green);
}

.badge-aktif {
    background: rgba(6, 214, 160, 0.15);
    color: var(--accent-green);
}

.badge-nonaktif {
    background: rgba(230, 57, 70, 0.15);
    color: var(--accent-red);
}

/* =============================================
   Modal
   ============================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: fadeInUp 0.3s ease;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.modal-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass-light);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.modal-close:hover {
    background: rgba(230, 57, 70, 0.2);
    color: var(--accent-red);
    border-color: var(--accent-red);
}

/* =============================================
   QR Code Page
   ============================================= */
.qr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.qr-card {
    text-align: center;
    padding: 24px 16px;
}

.qr-card img {
    margin: 0 auto 12px;
    border-radius: var(--radius-sm);
}

.qr-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.qr-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* =============================================
   Alert / Toast
   ============================================= */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: rgba(6, 214, 160, 0.12);
    border: 1px solid rgba(6, 214, 160, 0.3);
    color: var(--accent-green);
}

.alert-error {
    background: rgba(230, 57, 70, 0.12);
    border: 1px solid rgba(230, 57, 70, 0.3);
    color: var(--accent-red);
}

.alert-info {
    background: rgba(76, 201, 240, 0.12);
    border: 1px solid rgba(76, 201, 240, 0.3);
    color: var(--accent-blue);
}

/* =============================================
   Login Page
   ============================================= */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    max-width: 420px;
    width: 100%;
    padding: 40px 30px;
}

.login-card .logo {
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.login-card .login-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 30px;
}

/* =============================================
   Empty State
   ============================================= */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 0.9rem;
}

/* =============================================
   Pesanan Detail Sidebar
   ============================================= */
.detail-list {
    list-style: none;
}

.detail-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.88rem;
}

.detail-list li:last-child {
    border-bottom: none;
}

.detail-list .label {
    color: var(--text-muted);
}

/* =============================================
   Toolbar
   ============================================= */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-btn {
    padding: 8px 16px;
    background: var(--bg-glass-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(255, 107, 53, 0.1);
}

/* =============================================
   Hamburger menu (Mobile Admin)
   ============================================= */
.hamburger {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass-light);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
}

/* =============================================
   Animations
   ============================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 var(--accent-glow); }
    70% { box-shadow: 0 0 0 12px rgba(255, 107, 53, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Staggered animation delays for menu cards */
.menu-card:nth-child(1) { animation-delay: 0.05s; }
.menu-card:nth-child(2) { animation-delay: 0.1s; }
.menu-card:nth-child(3) { animation-delay: 0.15s; }
.menu-card:nth-child(4) { animation-delay: 0.2s; }
.menu-card:nth-child(5) { animation-delay: 0.25s; }
.menu-card:nth-child(6) { animation-delay: 0.3s; }
.menu-card:nth-child(7) { animation-delay: 0.35s; }
.menu-card:nth-child(8) { animation-delay: 0.4s; }

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    
    .admin-sidebar.open {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .data-table {
        font-size: 0.82rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 8px;
    }
    
    .qr-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .landing-hero h1 {
        font-size: 2rem;
    }
    
    .page-title h1 {
        font-size: 1.5rem;
    }
    
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .toolbar-left {
        flex-wrap: wrap;
    }
}

/* =============================================
   Scrollbar Styling
   ============================================= */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* =============================================
   Utility Classes
   ============================================= */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--accent-green); }
.text-danger { color: var(--accent-red); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.p-2 { padding: 16px; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.overflow-auto { overflow-x: auto; }
