/* eBazar - Professional UI Theme */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --navy-900: #0a1628;
    --navy-800: #0f2460;
    --navy-700: #1a3a7a;
    --navy-600: #234b96;
    --navy-500: #2f5fbd;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --info: #0284c7;
    --shadow-sm: 0 1px 3px rgba(10, 22, 40, 0.06);
    --shadow-md: 0 4px 16px rgba(10, 22, 40, 0.08);
    --shadow-lg: 0 12px 40px rgba(10, 22, 40, 0.12);
    --radius: 14px;
    --radius-lg: 20px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-50);
    color: var(--gray-700);
    -webkit-font-smoothing: antialiased;
}

/* Buttons */
.btn-navy {
    background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 100%);
    color: white;
    border: none;
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    transition: all 0.2s ease;
}
.btn-navy:hover {
    background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-600) 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn-navy:disabled {
    opacity: 0.5;
    transform: none;
    box-shadow: none;
}

.btn-outline-navy {
    border: 2px solid var(--navy-800);
    color: var(--navy-800);
    background: transparent;
    font-weight: 600;
    border-radius: 10px;
    padding: 0.65rem 1.25rem;
}
.btn-outline-navy:hover {
    background: var(--navy-800);
    color: white;
}

/* Cards */
.card-pro {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card-pro:hover { box-shadow: var(--shadow-md); }

/* Badges */
.badge-pending { background: #fef3c7; color: #92400e; font-weight: 600; }
.badge-processing { background: #dbeafe; color: #1e40af; font-weight: 600; }
.badge-completed { background: #d1fae5; color: #065f46; font-weight: 600; }

/* Customer Layout */
.customer-layout {
    min-height: 100vh;
    background: var(--gray-50);
}
.customer-layout.has-cart {
    --customer-bottom-extra: 150px;
}
.customer-nav {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
    padding: 0.85rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 300;
    box-shadow: var(--shadow-md);
}
.customer-main {
    padding-top: 76px;
    padding-bottom: calc(52px + var(--customer-bottom-extra, 0px));
    min-height: 100vh;
}
.customer-footer {
    background: var(--navy-900);
    color: rgba(255,255,255,0.6);
    padding: 0.85rem 0;
    font-size: 0.8rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 300;
}
.customer-nav .brand {
    font-weight: 800;
    font-size: 1.35rem;
    color: white;
    letter-spacing: -0.5px;
}
.site-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
}
.site-brand-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 50%;
    background: white;
    padding: 2px;
}
.site-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.site-brand-title {
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.3px;
}
.site-brand-sub {
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 500;
}
.hero-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 50%;
    background: white;
    padding: 4px;
    flex-shrink: 0;
}
.meja-picker-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem 0.5rem;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    color: var(--gray-700);
    transition: all 0.2s ease;
}
.meja-picker-card:hover {
    border-color: var(--navy-600);
    background: white;
    color: var(--navy-800);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.meja-picker-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy-800);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--gray-200);
}
.meja-picker-card:hover .meja-picker-icon {
    background: var(--navy-800);
    color: white;
    border-color: var(--navy-800);
}
.meja-picker-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy-900);
    line-height: 1;
}
.customer-nav .nav-sub {
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
}

.customer-hero {
    background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 50%, var(--navy-700) 100%);
    color: white;
    padding: 3rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.customer-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.customer-hero h1 {
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: -1px;
    line-height: 1.2;
}
.customer-hero .lead {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    max-width: 480px;
}

.step-card {
    text-align: center;
    padding: 1.5rem;
    height: 100%;
}
.step-card .step-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
.step-card .step-num {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--navy-600);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu-item-card {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.menu-item-card .menu-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy-800);
    font-size: 1.2rem;
    flex-shrink: 0;
}
.menu-item-card .menu-price {
    font-weight: 700;
    color: var(--navy-800);
    font-size: 1rem;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gray-100);
    border-radius: 50px;
    padding: 4px;
}
.qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--navy-800);
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qty-btn:hover { background: var(--navy-800); color: white; }
.qty-btn:active { transform: scale(0.95); }
.qty-value {
    min-width: 28px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
}

.cart-bar {
    position: fixed;
    bottom: 52px;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--gray-200);
    padding: 1rem 0;
    box-shadow: 0 -8px 30px rgba(10, 22, 40, 0.1);
    z-index: 250;
}
.content-pb { padding-bottom: 1rem; }

.name-input-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
}
.name-input-card label {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--navy-900);
    margin-bottom: 0.5rem;
}
.page-intro {
    padding: 1.5rem 0 0.5rem;
}
.page-intro .bazar-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #d1fae5;
    color: #065f46;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
}

.table-badge {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.3);
}

.order-number-display {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy-800);
    letter-spacing: 1px;
}

/* Admin Layout */
.admin-wrapper { min-height: 100vh; }

.admin-sidebar {
    background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
    min-height: 100vh;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    z-index: 300;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
}
.admin-sidebar .brand {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    padding: 0 0.5rem;
    margin-bottom: 0.25rem;
}
.admin-sidebar .brand-sub {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    padding: 0 0.5rem;
    margin-bottom: 2rem;
}
.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.75);
    border-radius: 10px;
    padding: 0.7rem 0.85rem;
    margin-bottom: 2px;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.15s ease;
}
.admin-sidebar .nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}
.admin-sidebar .nav-link.active {
    background: rgba(255,255,255,0.15);
    color: white;
    font-weight: 600;
}
.admin-sidebar .nav-link i { font-size: 1.1rem; width: 22px; }

.admin-main {
    margin-left: 260px;
    min-height: 100vh;
}
.admin-topbar {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}
.admin-content { padding: 2rem; }

.page-title {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--navy-900);
    letter-spacing: -0.5px;
    margin: 0;
}
.page-subtitle {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin: 0;
}

.stat-card-pro {
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}
.stat-card-pro .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.stat-card-pro .stat-value {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1;
}
.stat-card-pro .stat-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.stat-warning .stat-icon { background: #fef3c7; color: #d97706; }
.stat-warning .stat-value { color: #d97706; }
.stat-primary .stat-icon { background: #dbeafe; color: #2563eb; }
.stat-primary .stat-value { color: #2563eb; }
.stat-success .stat-icon { background: #d1fae5; color: #059669; }
.stat-success .stat-value { color: #059669; }
.stat-navy .stat-icon { background: #e0e7ff; color: var(--navy-800); }
.stat-navy .stat-value { color: var(--navy-800); }

.quick-link-card {
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}
.quick-link-card:hover { color: inherit; transform: translateY(-2px); }
.quick-link-card .ql-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.alert-pro {
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
}

.table-pro thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    font-weight: 700;
    border-bottom: 2px solid var(--gray-200);
    padding: 0.85rem 1rem;
    background: var(--gray-50);
}
.table-pro tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-100);
}

.order-card-pro .card-header-pro {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.order-card-pro .card-body-pro { padding: 1.25rem; }
.order-card-pro .card-footer-pro {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
    border-radius: 0 0 var(--radius) var(--radius);
}

/* Login */
.login-page {
    min-height: 100vh;
    display: flex;
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 50%, var(--navy-700) 100%);
}
.login-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    color: white;
}
.login-left h1 {
    font-weight: 800;
    font-size: 2.5rem;
    letter-spacing: -1px;
}
.login-right {
    width: 480px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}
.login-form-wrap { width: 100%; max-width: 360px; }

.form-control-pro {
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.15s ease;
}
.form-control-pro:focus {
    border-color: var(--navy-600);
    box-shadow: 0 0 0 3px rgba(47, 95, 189, 0.15);
}

.modal-content-pro {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.modal-header-pro {
    border-bottom: 1px solid var(--gray-100);
    padding: 1.25rem 1.5rem;
}
.modal-body-pro { padding: 1.5rem; }
.modal-footer-pro {
    border-top: 1px solid var(--gray-100);
    padding: 1rem 1.5rem;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
}
.empty-state i {
    font-size: 3rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
}

@media (max-width: 991px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .admin-sidebar.show { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .login-left { display: none; }
    .login-right { width: 100%; }
    .customer-hero h1 { font-size: 1.6rem; }
}

@media (max-width: 576px) {
    .admin-content { padding: 1rem; }
    .admin-topbar { padding: 0.75rem 1rem; }
}
