/* CSS Stylesheet for Velocity POS - Modern Premium Dark/Light UI */

:root {
    /* Color Palette */
    --bg-dark: #0f111a;
    --bg-card-dark: rgba(26, 29, 46, 0.7);
    --bg-sidebar: #131625;
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --primary: #6366f1;         /* Indigo Accent */
    --primary-hover: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.25);
    
    --success: #10b981;         /* Emerald Green */
    --success-hover: #059669;
    --success-bg: rgba(16, 185, 129, 0.1);
    
    --warning: #f59e0b;         /* Amber Yellow */
    --warning-bg: rgba(245, 158, 11, 0.1);
    
    --danger: #ef4444;          /* Crimson Red */
    --danger-hover: #dc2626;
    --danger-bg: rgba(239, 68, 68, 0.1);
    
    --info: #0ea5e9;            /* Sky Blue */
    --info-bg: rgba(14, 165, 233, 0.1);
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.15), 0 8px 10px -6px rgb(0 0 0 / 0.15);
    
    --font-heading: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Layout */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* Header */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 24px;
    background-color: var(--bg-sidebar);
    border-bottom: 1px solid var(--border-color);
    z-index: 10;
}

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

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    font-weight: 800;
    font-size: 20px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 10px var(--primary-glow);
}

.logo-text h1 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo-text h1 span {
    color: var(--primary);
}

.logo-text small {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
    margin-top: -2px;
}

.header-nav {
    display: flex;
    background-color: rgba(255, 255, 255, 0.03);
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-btn svg {
    transition: transform 0.2s ease;
}

.nav-btn:hover {
    color: var(--text-primary);
}

.nav-btn.active {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.nav-btn.active svg {
    transform: scale(1.05);
}

.header-user {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cashier-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.02);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.user-label {
    font-size: 12px;
    color: var(--text-muted);
}

.user-select {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 13px;
    outline: none;
    cursor: pointer;
}

.user-select option {
    background-color: var(--bg-sidebar);
    color: var(--text-primary);
}

.system-time {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    font-feature-settings: "tnum";
}

/* App Body */
.app-body {
    flex: 1;
    height: calc(100vh - 70px);
    overflow: hidden;
    position: relative;
}

/* View Sections */
.view-section {
    display: none;
    height: 100%;
    width: 100%;
}

.view-section.active {
    display: block;
}

/* ---------------------------------------------------- */
/* CASHIER TERMINAL VIEW */
/* ---------------------------------------------------- */
.pos-layout {
    display: flex;
    height: 100%;
}

.pos-catalog {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
    overflow-y: auto;
    border-right: 1px solid var(--border-color);
}

.catalog-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--bg-card-dark);
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    width: 320px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    width: 100%;
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.search-bar svg {
    color: var(--text-muted);
}

.categories-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.category-btn {
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.category-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.category-btn.active {
    background-color: rgba(99, 102, 241, 0.12);
    border-color: var(--primary);
    color: var(--primary);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.product-card {
    background-color: var(--bg-card-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 290px;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s, box-shadow 0.2s;
    user-select: none;
}

.product-card-img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.product-card-no-img {
    width: 100%;
    height: 130px;
    background: linear-gradient(135deg, rgba(255,255,255,0.02), rgba(255,255,255,0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.product-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg), 0 8px 30px rgba(99, 102, 241, 0.1);
}

.product-card:active {
    transform: translateY(0);
}

.product-card.out-of-stock {
    opacity: 0.5;
    pointer-events: none;
    border-color: transparent;
}

.product-card.out-of-stock::after {
    content: 'Habis';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-12deg);
    background-color: var(--danger);
    color: white;
    font-weight: 800;
    font-size: 14px;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    letter-spacing: 1px;
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: rgba(15, 17, 26, 0.75);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 700;
    color: var(--success);
    z-index: 1;
}

.product-category-lbl {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.product-name-lbl {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-stock-lbl {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.product-stock-lbl.low-stock {
    color: var(--warning);
    font-weight: 600;
}

.product-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.product-price-lbl {
    font-size: 16px;
    font-weight: 700;
    color: var(--success);
}

.product-add-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all 0.2s;
}

.product-card:hover .product-add-icon {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Cart Column */
.pos-cart {
    width: 380px;
    background-color: var(--bg-sidebar);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.cart-header h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    text-align: center;
}

.cart-empty-state svg {
    margin-bottom: 12px;
    opacity: 0.6;
}

.cart-empty-state p {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
}

.cart-empty-state small {
    font-size: 12px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.cart-item-price {
    font-size: 13px;
    color: var(--success);
    font-weight: 600;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-qty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-qty:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.qty-val {
    font-size: 14px;
    font-weight: 700;
    width: 24px;
    text-align: center;
}

.btn-delete-item {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    margin-left: 6px;
    transition: color 0.2s;
}

.btn-delete-item:hover {
    color: var(--danger);
}

/* Cart Summary */
.cart-summary {
    padding: 24px;
    background-color: rgba(0, 0, 0, 0.15);
    border-top: 1px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.summary-row.font-bold {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dotted var(--border-color);
}

.text-accent {
    color: var(--primary);
}

/* ---------------------------------------------------- */
/* ADMIN VIEW & AUTENTIKASI SCREEN */
/* ---------------------------------------------------- */
.admin-lock-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(10, 11, 18, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.lock-card {
    background-color: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 400px;
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.lock-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    background-color: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-full);
    color: var(--primary);
    margin-bottom: 24px;
}

.lock-card h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: 8px;
}

.lock-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Admin Dashboard Layout */
.admin-layout {
    display: flex;
    height: 100%;
}

.admin-sidebar {
    width: 250px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.admin-avatar {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
}

.admin-profile h4 {
    font-size: 14px;
    font-weight: 600;
}

.admin-profile small {
    font-size: 11px;
}

.admin-nav {
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.admin-nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}

.admin-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
}

.admin-nav-btn.active {
    background-color: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    color: var(--primary);
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
}

/* Admin Main Content Container */
.admin-content {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
    background-color: #0c0e17;
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

/* ---------------------------------------------------- */
/* DASHBOARD COMPONENT */
/* ---------------------------------------------------- */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background-color: var(--bg-card-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
}

.bg-blue-tint {
    background-color: var(--info-bg);
    color: var(--info);
}

.bg-orange-tint {
    background-color: var(--warning-bg);
    color: var(--warning);
}

.bg-green-tint {
    background-color: var(--success-bg);
    color: var(--success);
}

.bg-purple-tint {
    background-color: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.stat-details h3 {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin: 2px 0;
}

.stat-trend {
    font-size: 11px;
}

.card-panel {
    background-color: var(--bg-card-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.panel-header {
    margin-bottom: 20px;
}

.panel-header h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
}

.panel-header small {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
}

.chart-wrapper {
    position: relative;
    height: 320px;
    width: 100%;
}

.dashboard-double-column {
    display: flex;
    gap: 24px;
}

.flex-1 {
    flex: 1;
}

/* Low Stock Alerts & Best Sellers */
.alert-list, .best-sellers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(245, 158, 11, 0.03);
    border: 1px solid rgba(245, 158, 11, 0.1);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
}

.alert-name {
    font-weight: 600;
    font-size: 14px;
}

.alert-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.alert-stock {
    background-color: var(--warning-bg);
    color: var(--warning);
    font-weight: 700;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.alert-stock.critical {
    background-color: var(--danger-bg);
    color: var(--danger);
}

.no-alerts {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    font-size: 13px;
}

.seller-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
}

.seller-info h5 {
    font-weight: 600;
    font-size: 14px;
}

.seller-info small {
    color: var(--text-muted);
}

.seller-sales {
    font-weight: 700;
    color: var(--success);
    font-size: 14px;
}

/* ---------------------------------------------------- */
/* TABLES & REPORTS */
/* ---------------------------------------------------- */
.panel-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.panel-header-actions h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
}

.panel-header-actions p {
    font-size: 13px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}

.data-table th {
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    vertical-align: middle;
}

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

.recipe-capsule {
    display: inline-block;
    font-size: 11px;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    margin: 2px;
    color: var(--text-secondary);
}

.report-filters {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ---------------------------------------------------- */
/* MODALS */
/* ---------------------------------------------------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(5, 6, 12, 0.85);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

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

.modal-card {
    background-color: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-card.modal-lg {
    max-width: 900px;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
}

.close-modal-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close-modal-btn:hover {
    color: var(--danger);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    background-color: rgba(0,0,0,0.1);
}

/* Modal Grid Layout */
.modal-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
}

.border-right {
    border-right: 1px solid var(--border-color);
    padding-right: 24px;
}

/* Recipe Builder UI */
.recipe-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recipe-rows-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 6px;
}

.recipe-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255,255,255,0.01);
    border: 1px solid var(--border-color);
    padding: 8px;
    border-radius: var(--radius-sm);
}

.recipe-select {
    flex: 2;
    background-color: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px;
    border-radius: var(--radius-sm);
    outline: none;
    font-size: 12px;
}

.recipe-qty-input {
    width: 70px;
    background-color: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px;
    border-radius: var(--radius-sm);
    outline: none;
    font-size: 12px;
    text-align: center;
}

.recipe-unit-lbl {
    font-size: 12px;
    color: var(--text-muted);
    width: 35px;
}

.recipe-cost-lbl {
    font-size: 12px;
    font-weight: 600;
    color: var(--success);
    width: 80px;
    text-align: right;
}

.cogs-indicator-box {
    background-color: rgba(0,0,0,0.15);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
}

.cogs-indicator-box h6 {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 600;
}

.indicator-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 6px;
}

.indicator-row:last-child {
    margin-bottom: 0;
    padding-top: 6px;
    border-top: 1px dotted var(--border-color);
}

/* ---------------------------------------------------- */
/* CHECKOUT & RECEIPTS */
/* ---------------------------------------------------- */
.payment-total-box {
    background-color: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
}

.payment-total-box small {
    font-size: 12px;
    color: var(--text-secondary);
}

.payment-total-box h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--success);
    margin-top: 4px;
}

.quick-cash-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.btn-quick-cash {
    flex: 1;
    min-width: 80px;
    padding: 8px;
    background-color: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.btn-quick-cash:hover {
    background-color: rgba(255,255,255,0.08);
    color: var(--text-primary);
}

.payment-change-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0,0,0,0.15);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: var(--radius-md);
}

.payment-change-box span {
    font-size: 14px;
    color: var(--text-secondary);
}

.payment-change-box h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

/* Styled Receipt Modal */
.receipt-modal-card {
    background-color: #f8fafc;
    border-radius: var(--radius-lg);
    width: 360px;
    padding: 24px;
    box-shadow: var(--shadow-xl);
    color: #1e293b;
    position: relative;
}

.receipt-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.thermal-receipt {
    background-color: white;
    padding: 20px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.02);
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    color: #000;
}

.receipt-store-header {
    text-align: center;
    margin-bottom: 12px;
}

.receipt-store-header h2 {
    font-size: 14px;
    font-weight: 700;
}

.receipt-store-header p {
    font-size: 10px;
    margin-top: 2px;
    color: #475569;
}

.receipt-divider {
    border-top: 1px dashed #94a3b8;
    margin: 12px 0;
}

.receipt-meta-info div {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    margin-bottom: 4px;
}

.receipt-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.receipt-item-row {
    display: flex;
    justify-content: space-between;
}

.receipt-item-sub {
    font-size: 10px;
    color: #475569;
    padding-left: 10px;
}

.receipt-totals .total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.receipt-totals .bold-row {
    font-weight: bold;
    font-size: 13px;
    margin: 6px 0;
}

.receipt-footer {
    text-align: center;
    margin-top: 12px;
    font-size: 10px;
}

.receipt-footer p {
    margin-bottom: 2px;
}

.receipt-footer small {
    color: #64748b;
    display: block;
    margin-top: 8px;
}

/* ---------------------------------------------------- */
/* SETTINGS LAYOUT */
/* ---------------------------------------------------- */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.grid-span-2 {
    grid-column: span 2;
}

.border-bottom {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.list-group {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.list-group-item button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.list-group-item button:hover {
    color: var(--danger);
}

/* ---------------------------------------------------- */
/* FORMS & INPUT CONTROLS */
/* ---------------------------------------------------- */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    outline: none;
    font-size: 13px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

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

.form-control-lg {
    padding: 14px 18px;
    font-size: 18px;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-input-inline {
    background-color: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    outline: none;
    font-size: 12px;
}

.text-right {
    text-align: right;
}

.font-bold {
    font-weight: 700;
}

.align-self-end {
    align-self: flex-end;
}

.mb-1 {
    margin-bottom: 8px;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.btn-success {
    background-color: var(--success);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-success:hover {
    background-color: var(--success-hover);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-danger {
    background-color: var(--danger);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-danger:hover {
    background-color: var(--danger-hover);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-lg {
    padding: 14px 24px;
    font-size: 15px;
    border-radius: var(--radius-md);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 11px;
}

.btn-text {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-text:hover {
    color: var(--danger);
}

/* Helpers */
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.error-text {
    font-size: 12px;
    color: var(--danger);
    margin-top: 6px;
    font-weight: 600;
}
.info-text {
    font-size: 12px;
    color: var(--success);
    margin-top: 6px;
    font-weight: 600;
}
.gap-4 { gap: 16px; }
.flex-row { display: flex; flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive CSS */
@media (max-width: 1024px) {
    .pos-cart {
        width: 320px;
    }
    .modal-grid-layout {
        grid-template-columns: 1fr;
    }
    .border-right {
        border-right: none;
        padding-right: 0;
        padding-bottom: 24px;
        border-bottom: 1px solid var(--border-color);
    }
    .settings-grid {
        grid-template-columns: 1fr;
    }
    .grid-span-2 {
        grid-column: span 1;
    }
}

/* Mobile Floating Cart Button & Backdrop (Desktop: Hidden) */
.mobile-cart-fab {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    border: none;
    padding: 14px 22px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4), 0 0 0 1px rgba(255,255,255,0.1);
    cursor: pointer;
    z-index: 85;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s;
}

.mobile-cart-fab:hover {
    transform: scale(1.05);
}

.mobile-cart-fab:active {
    transform: scale(0.95);
}

.fab-badge {
    background-color: var(--danger);
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--bg-sidebar);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
}

.cart-backdrop-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(5, 6, 12, 0.6);
    backdrop-filter: blur(3px);
    z-index: 89;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-backdrop-overlay.active {
    display: block;
    opacity: 1;
}

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

.fab-pop {
    animation: fabPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-admin-topbar {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background-color: var(--bg-sidebar);
    border-bottom: 1px solid var(--border-color);
    width: 100%;
}

.admin-menu-trigger-btn {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-menu-trigger-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.admin-sidebar-header-mobile {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.admin-sidebar-header-mobile h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
}

#close-admin-sidebar-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.admin-backdrop-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(5, 6, 12, 0.6);
    backdrop-filter: blur(3px);
    z-index: 105;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.admin-backdrop-overlay.active {
    display: block;
    opacity: 1;
}

@media (max-width: 768px) {
    .pos-layout {
        flex-direction: column;
    }
    
    /* Make Cart behaves like a collapsible drawer on mobile */
    .pos-cart {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 85%;
        max-width: 380px;
        height: 100vh !important;
        z-index: 95;
        border-left: 1px solid var(--border-color);
        border-top: none;
        box-shadow: -8px 0 32px rgba(0,0,0,0.5);
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .pos-cart.open {
        transform: translateX(0);
    }
    
    .close-cart-mobile {
        display: block !important;
    }
    
    .mobile-cart-fab {
        display: flex !important;
    }
    
    .pos-catalog {
        padding: 16px;
        height: calc(100vh - 130px);
    }
    
    .app-header {
        flex-direction: column;
        height: auto;
        padding: 12px;
        gap: 12px;
    }
    .header-user {
        width: 100%;
        justify-content: space-between;
    }
    
    /* Collapsible Admin Navigation Menu */
    .mobile-admin-topbar {
        display: flex !important;
    }
    
    .admin-sidebar-header-mobile {
        display: flex !important;
    }
    
    .admin-layout {
        flex-direction: column;
        height: calc(100% - 50px); /* Subtract topbar height */
    }
    
    .admin-sidebar {
        position: fixed !important;
        top: 0;
        left: 0;
        bottom: 0;
        width: 260px !important;
        height: 100vh !important;
        z-index: 110;
        border-right: 1px solid var(--border-color);
        border-bottom: none !important;
        box-shadow: 8px 0 32px rgba(0,0,0,0.5);
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .admin-sidebar.open {
        transform: translateX(0) !important;
    }
    
    .admin-content {
        height: calc(100vh - 120px) !important;
        padding: 16px !important;
    }
    
    .dashboard-double-column {
        flex-direction: column;
    }
}
