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

:root {
    /* Deep Space Dark Theme (Complementary to Vibrant Light) */
    --bg-dark: #0b1121;        /* Very dark navy */
    --bg-panel: #151e32;       /* Solid dark card */
    --bg-sidebar: #0f172a;     /* Slate 900 */
    
    --primary-blue: #3b82f6;   /* Bright Blue for Dark Mode */
    --text-on-primary: #ffffff; 
    --primary-green: #10b981;  /* Emerald */
    --primary-gradient: linear-gradient(135deg, #60a5fa, #2563eb);
    --green-gradient: linear-gradient(135deg, #34d399, #10b981);
    
    --text-main: #f8fafc;      /* White-ish */
    --text-muted: #94a3b8;     /* Gray slate */
    
    --border-color: rgba(255, 255, 255, 0.08);
    --glow-shadow: 0 8px 32px rgba(59, 130, 246, 0.25);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.4);
    --shadow-md: 0 10px 40px rgba(0,0,0,0.5);
    
    /* Radius - Elegant rounded corners */
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

[data-theme="light"] {
    /* Ara AI / GooThink Theme - Vibrant & Clean */
    --bg-dark: #f4f7fe;        /* Very soft light blue-gray background */
    --bg-panel: #ffffff;       /* Pure white solid cards */
    --bg-sidebar: #ffffff;     /* Pure white */
    
    --primary-blue: #2563eb;   /* Vibrant Deep Blue (like "Ara") */
    --text-on-primary: #ffffff; 
    --primary-green: #10b981;  /* Vibrant Green for Health/Progress */
    --primary-gradient: linear-gradient(135deg, #3b82f6, #1d4ed8);
    --green-gradient: linear-gradient(135deg, #34d399, #059669);
    
    --text-main: #0f172a;      /* Very dark slate/navy text */
    --text-muted: #64748b;     /* Slate gray for muted text */
    
    --border-color: #e2e8f0;   /* Soft border */
    --glow-shadow: 0 10px 40px -10px rgba(37, 99, 235, 0.25);
    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
    --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.01);
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    /* Remove messy radial gradients for a cleaner flat premium look */
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

body.pos-mode {
    flex-direction: row;
}

/* Sidebar Kiri */
.sidebar {
    width: 80px;
    background-color: var(--bg-sidebar);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0;
    border-right: 1px solid var(--border-color);
    gap: 1.5rem;
    z-index: 10;
}
.sidebar-logo {
    width: 48px;
    height: 48px;
    background: var(--green-gradient);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--glow-shadow);
}
.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    align-items: center;
}
.menu-item {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}
.menu-item:hover {
    color: var(--text-main);
    background-color: rgba(128, 128, 128, 0.05);
}
.menu-item.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--glow-shadow);
}
.sidebar-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Main Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    overflow-y: auto;
    z-index: 1;
    position: relative;
    background: radial-gradient(circle at top right, rgba(0,0,0,0.01), transparent);
}

/* Top Bar (for POS) */
.search-bar {
    background-color: var(--bg-panel);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}
.search-bar input {
    background: transparent;
    border: none;
    color: var(--text-main);
    width: 100%;
    outline: none;
    font-size: 1rem;
}
.search-bar input::placeholder {
    color: var(--text-muted);
}

/* Admin Navbar & Container */
.navbar {
    background: var(--bg-panel);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}
.navbar .nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.navbar .nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.navbar a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}
.navbar a:hover {
    color: var(--text-main);
}
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    width: 100%;
    overflow-y: auto;
}

/* Category Filter */
.category-filter {
    display: flex;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}
.category-filter::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}
.cat-btn {
    flex-shrink: 0;
    padding: 0.5rem 1.25rem;
    border-radius: 99px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-panel);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}
.cat-btn.active {
    background-color: var(--primary-blue);
    color: var(--text-on-primary);
    border-color: var(--primary-blue);
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    overflow-y: auto;
    padding-bottom: 2rem;
}
.product-card {
    background-color: var(--bg-panel);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border-color: rgba(255, 255, 255, 0.2);
}
.product-image-wrapper {
    aspect-ratio: 4/3;
    width: 100%;
    background-color: rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}
.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-category-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}
.product-info {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}
.product-title {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.product-price {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 0.95rem;
}
.btn-add {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    color: var(--text-on-primary);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}
.btn-add:hover {
    filter: brightness(1.1);
}

/* Cart Sidebar (Right) */
.cart-sidebar {
    width: 350px;
    background-color: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 10;
}
.cart-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}
.cart-header h2 {
    margin: 0;
    font-size: 1.1rem;
}
.btn-clear {
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.cart-item {
    background-color: var(--bg-dark);
    border-radius: var(--radius-sm);
    padding: 1rem;
    border: 1px solid var(--border-color);
}
.cart-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.cart-item-title {
    font-weight: 600;
    font-size: 0.9rem;
}
.cart-item-price-unit {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.cart-item-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}
.qty-control {
    display: flex;
    align-items: center;
    background-color: var(--bg-panel);
    border-radius: 6px;
    padding: 0.25rem;
}
.qty-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.qty-btn:hover {
    color: white;
}
.qty-value {
    width: 30px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}
.cart-item-subtotal {
    font-weight: 700;
    font-size: 0.95rem;
}

/* Cart Summary & Footer */
.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.summary-row.highlight {
    color: var(--primary-green);
}
.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}
.total-label {
    font-weight: 700;
    font-size: 1.1rem;
}
.total-amount {
    font-weight: 700;
    font-size: 1.25rem;
}

.btn-action {
    width: 100%;
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}
.btn-hold {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}
.btn-hold:hover {
    background-color: var(--border-color);
}
.btn-pay {
    background: var(--green-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}
.btn-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 10px;
}

/* Modal / Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: var(--transition);
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.payment-modal, .product-modal {
    background-color: var(--bg-panel);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
    max-height: 90vh;
    overflow-y: auto;
}
.product-modal {
    max-width: 650px;
}
.modal-overlay.active .payment-modal, .modal-overlay.active .product-modal {
    transform: scale(1);
}

.modal-header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: white;
}
.modal-header h2 i {
    color: white !important;
}
.btn-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}
.btn-close:hover {
    background: rgba(255,255,255,0.3);
    color: white;
}

.modal-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.payment-total-box {
    background-color: var(--bg-dark);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
}
.payment-total-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.payment-total-value {
    color: var(--primary-blue);
    font-size: 2rem;
    font-weight: 700;
}

.payment-section-title {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.method-card {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
}
.method-card i {
    font-size: 1.5rem;
}
.method-card:hover {
    border-color: var(--text-muted);
}
.method-card.active {
    background-color: rgba(59, 130, 246, 0.1);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.quick-choices {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}
.quick-btn {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.quick-btn:hover {
    background-color: var(--border-color);
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: inherit;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.modal-footer {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    background: rgba(59, 130, 246, 0.05);
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.btn-cancel {
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
}
.btn-cancel:hover {
    color: var(--text-main);
}
.btn-submit-payment {
    background: var(--green-gradient);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}
.btn-submit-payment:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* ==========================================
   PRODUCT MANAGEMENT UI
   ========================================== */

.card {
    background-color: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.table-container {
    background-color: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-main);
}
.table th, .table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.table th {
    background-color: transparent;
    border-bottom: 2px solid var(--border-color) !important;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 1rem;
}
.table tbody tr {
    transition: var(--transition);
}
.table tbody tr:hover {
    background-color: rgba(128, 128, 128, 0.05);
}
.table tbody tr:last-child td {
    border-bottom: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    font-family: inherit;
}
.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    color: white;
}
.btn-danger {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}
.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    color: white;
}
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}
.btn-icon:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}
.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--primary-green);
}
.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

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

/* ==========================================
   DATATABLES OVERRIDES FOR DARK THEME
   ========================================== */
.dataTables_wrapper {
    color: var(--text-main);
}
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
    color: var(--text-muted);
    margin-bottom: 1rem;
    margin-top: 1rem;
    padding: 0 1.5rem;
}
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.8rem;
    outline: none;
}
.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--primary-blue);
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: var(--text-muted) !important;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    padding: 0.4rem 0.8rem;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
    color: var(--text-main) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--primary-blue);
    color: var(--text-on-primary) !important;
    border-color: var(--primary-blue);
}
table.dataTable tbody tr {
    background-color: transparent !important;
}
table.dataTable.no-footer {
    border-bottom: 1px solid var(--border-color);
}
table.dataTable thead th, table.dataTable thead td {
    border-bottom: 1px solid var(--border-color);
}

/* ==========================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================== */

/* Tablet (Max 1024px) */
@media (max-width: 1024px) {
    .cart-sidebar {
        width: 300px;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

/* Mobile (Max 768px) */
@media (max-width: 768px) {
    /* POS Mode Specifics */
    body.pos-mode {
        flex-direction: column;
        overflow-y: auto;
    }
    
    /* Bottom Navigation Bar for Mobile */
    .sidebar {
        width: 100%;
        height: 65px;
        flex-direction: row;
        justify-content: center;
        padding: 0 0.5rem;
        border-right: none;
        border-top: 1px solid var(--border-color);
        order: 3;
        z-index: 1000;
        position: fixed;
        bottom: 0;
        left: 0;
        background-color: var(--bg-sidebar);
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none;  /* IE and Edge */
        gap: 0.5rem;
    }
    .sidebar::-webkit-scrollbar {
        display: none; /* Chrome, Safari and Opera */
    }
    .sidebar-logo {
        display: none;
    }
    .sidebar-menu {
        flex-direction: row;
        width: auto;
        gap: 0.5rem;
    }
    .sidebar-bottom {
        flex-direction: row;
        margin-top: 0;
        gap: 0.5rem;
    }
    .menu-item {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    /* Layout Adjustments */
    .main-content {
        order: 1;
        padding-bottom: 75px; /* space for bottom nav */
        height: auto;
        overflow: visible;
        padding: 1rem;
    }
    
    /* POS Cart */
    .cart-sidebar {
        width: 100%;
        order: 2;
        border-left: none;
        border-top: 1px solid var(--border-color);
        height: auto;
        max-height: none;
        padding-bottom: 75px;
    }
    
    /* Grid Adjustments */
    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }
    
    /* Modals */
    .product-modal, .payment-modal {
        max-height: 85vh;
        max-width: 95%;
    }
    .modal-body {
        grid-template-columns: 1fr !important;
    }
    .payment-methods, .quick-choices {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Table & Font Adjustments for Mobile */
    .table th, .table td {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    .table th {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    .btn-icon {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }
    .table td span {
        padding: 0.2rem 0.5rem !important;
        font-size: 0.75rem !important;
    }
    .dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter {
        font-size: 0.85rem;
    }
    .table td > div[style*="width: 44px"] {
        width: 32px !important;
        height: 32px !important;
    }
}
