/* ==================== AZDEV-POS CSS DESIGN SYSTEM ==================== */

:root {
    /* Color Palette */
    --bg-primary: #FAF7F2;      /* Warm beige/sand */
    --bg-secondary: #FFFFFF;    /* Pure White */
    --primary-color: #FF6B00;   /* Instacart Orange */
    --primary-hover: #E05E00;
    --primary-light: #FFF2E6;   /* Warm light orange tint */
    --text-primary: #2B2520;     /* Deep warm dark grey */
    --text-secondary: #70665E;   /* Medium grey */
    --text-light: #A59B93;       /* Light grey placeholder/caption */
    --border-color: #EFECE6;     /* Soft warm grey border */
    --success-color: #10B981;    /* Emerald green */
    --danger-color: #EF4444;     /* Rose red */
    --danger-light: #FEE2E2;
    --shadow-sm: 0 2px 8px rgba(43, 37, 32, 0.05);
    --shadow-md: 0 8px 24px rgba(43, 37, 32, 0.08);
    --shadow-lg: 0 16px 36px rgba(43, 37, 32, 0.12);
    
    /* Layout Constants */
    --bottom-nav-height: 72px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: #E8E4DB;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--text-primary);
    overflow: hidden;
}

/* ==================== LAYOUT WRAPPER ==================== */
.app-container {
    width: 100%;
    max-width: 480px;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(43, 37, 32, 0.08);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

/* Ensure mobile browser fits perfectly */
@media (max-width: 480px) {
    body {
        background: var(--bg-primary);
    }
    .app-container {
        border: none;
        box-shadow: none;
    }
}

/* ==================== VIEW ROUTER SYSTEM ==================== */
.app-view {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.98) translateY(12px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-primary);
    z-index: 1;
}

.app-view.active-view {
    opacity: 1;
    pointer-events: all;
    transform: scale(1) translateY(0);
    z-index: 10;
}

/* Scrollable Inner Views */
.view-scroll-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: calc(var(--bottom-nav-height) + 24px); /* Extra space for bottom nav + padding */
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbars but keep functionality */
.view-scroll-content::-webkit-scrollbar {
    width: 4px;
}
.view-scroll-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 10px;
}

/* ==================== TYPOGRAPHY & BUTTONS ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
}

p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.text-orange {
    color: var(--primary-color) !important;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 20px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-secondary);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.2);
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

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

.btn-primary:disabled {
    background: #E5DFD9;
    color: var(--text-light);
    box-shadow: none;
    cursor: not-allowed;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
}

.btn-outline:hover {
    background: rgba(43, 37, 32, 0.03);
}

.btn-outline-danger {
    background: transparent;
    color: var(--danger-color);
    border: 1.5px solid var(--danger-color);
}

.btn-outline-danger:hover {
    background: var(--danger-light);
}

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

.btn-sm {
    padding: 8px 14px;
    font-size: 12px;
    border-radius: 10px;
}

.btn-icon {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: var(--bg-primary);
    border-color: var(--text-light);
}

.btn-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 4px;
}

/* Badges */
.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-color);
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-secondary);
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ==================== HEADERS ==================== */
.view-header {
    background: var(--bg-secondary);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

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

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 1px solid rgba(255, 107, 0, 0.1);
}

.header-profile h4 {
    font-size: 15px;
    font-weight: 600;
}

.header-profile p {
    font-size: 11px;
    color: var(--text-secondary);
}

/* ==================== LOGIN SCREEN ==================== */
#view-login {
    background: var(--bg-primary);
    justify-content: center;
    padding: 30px;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo-container {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.logo-icon {
    font-size: 48px;
    margin-bottom: 12px;
    filter: drop-shadow(0 8px 12px rgba(255,107,0,0.15));
    animation: float 3s ease-in-out infinite;
}

.login-header h1 {
    font-size: 28px;
    color: var(--text-primary);
}

.login-header p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
}

.login-form {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1.5px solid var(--border-color);
    font-family: inherit;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: all 0.2s ease;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-secondary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.cash-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-prefix {
    position: absolute;
    left: 16px;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-secondary);
}

.cash-input-wrapper input {
    padding-left: 44px;
    font-size: 18px;
    font-weight: 700;
}

.input-disabled {
    background: #F0EDE6 !important;
    color: var(--text-light) !important;
    cursor: not-allowed;
}

.form-tip {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
    display: block;
}

.error-message {
    color: var(--danger-color);
    background: #FFF5F5;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
    border-left: 3px solid var(--danger-color);
    display: none;
}

.success-message {
    color: var(--success-color);
    background: #ECFDF5;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
    border-left: 3px solid var(--success-color);
    display: none;
}

.login-footer {
    text-align: center;
    margin-top: 24px;
}

.login-footer p {
    font-size: 12px;
    color: var(--text-light);
}

/* ==================== POS PAGE STYLES ==================== */
.promo-banner {
    background: linear-gradient(135deg, #FF6B00 0%, #FF8D3B 100%);
    border-radius: 20px;
    padding: 20px;
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.promo-banner::after {
    content: "☕";
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 120px;
    opacity: 0.12;
    transform: rotate(-15deg);
}

.promo-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 8px;
}

.promo-banner h2 {
    font-size: 18px;
    font-weight: 800;
    color: white;
    margin-bottom: 6px;
}

.promo-banner p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
}

/* Search bar styling */
.search-container {
    margin-bottom: 20px;
}

.search-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
}

.search-box svg {
    color: var(--text-secondary);
}

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

.search-box input:focus {
    outline: none;
}

/* Category Filters Slider */
.categories-wrapper {
    margin: 0 -20px 20px -20px;
    padding: 0 20px;
    overflow-x: auto;
    white-space: nowrap;
}

.categories-wrapper::-webkit-scrollbar {
    display: none; /* Hide category scrollbar */
}

.categories-list {
    display: flex;
    gap: 10px;
}

.category-pill {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.category-pill:hover {
    border-color: var(--primary-color);
}

.category-pill.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(255, 107, 0, 0.15);
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
}

/* Products grid and cards */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.product-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

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

.product-img-wrapper {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 10px;
    background: var(--bg-primary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-wrapper svg, .product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 30px;
    backdrop-filter: blur(4px);
}

.product-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 6px;
    color: var(--text-primary);
    /* Multi-line clamp */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 34px;
}

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

.product-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary-color);
}

.btn-add-cart {
    background: var(--primary-light);
    color: var(--primary-color);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add-cart:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* ==================== BOTTOM NAV BAR STYLING ==================== */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-left: 10px;
    padding-right: 10px;
    z-index: 100;
}

.nav-btn {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-light);
    cursor: pointer;
    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
    flex: 1;
    height: 100%;
}

.nav-btn svg {
    stroke-width: 2px;
    transition: stroke-width 0.2s, transform 0.2s;
}

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

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

.nav-btn.active svg {
    stroke-width: 2.5px;
    transform: translateY(-2px);
}

/* ==================== CART DRAWER ==================== */
.drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(43, 37, 32, 0.4);
    opacity: 0;
    pointer-events: none;
    z-index: 200;
    transition: opacity 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.cart-drawer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80%;
    background: var(--bg-secondary);
    border-radius: 30px 30px 0 0;
    box-shadow: 0 -16px 40px rgba(43,37,32,0.15);
    z-index: 201;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.active {
    transform: translateY(0);
}

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

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-primary);
    flex-shrink: 0;
}

.cart-item-img svg, .cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.cart-item-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}

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

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-primary);
    padding: 4px 8px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
}

.qty-btn {
    border: none;
    background: transparent;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
    transition: background 0.2s;
}

.qty-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.qty-val {
    font-size: 13px;
    font-weight: 700;
    min-width: 16px;
    text-align: center;
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.cart-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.drawer-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

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

.cart-summary-line.highlight {
    font-weight: 800;
    color: var(--text-primary);
    font-size: 16px;
    border-top: 1.5px dashed var(--border-color);
    padding-top: 10px;
    margin-top: 6px;
}

.cart-summary-line.highlight span:last-child {
    color: var(--primary-color);
}

/* ==================== GENERAL MODALS ==================== */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(43, 37, 32, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Mobile style: sheet on bottom */
    opacity: 0;
    pointer-events: none;
    z-index: 300;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    background: var(--bg-secondary);
    width: 100%;
    border-radius: 30px 30px 0 0;
    max-height: 85%;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* ==================== CHECKOUT PAGE ELEMENTS ==================== */
.checkout-total-banner {
    background: var(--primary-light);
    border: 1px solid rgba(255, 107, 0, 0.1);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    margin-bottom: 20px;
}

.checkout-total-banner p {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.checkout-total-banner h2 {
    font-size: 26px;
    color: var(--primary-color);
}

.quick-cash-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.quick-cash-btn {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 4px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.quick-cash-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
    color: var(--primary-color);
}

.checkout-change-banner {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 14px;
    background: #ECFDF5;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.checkout-change-banner.deficit {
    background: #FEF2F2;
    border-color: rgba(239, 68, 68, 0.1);
}

.checkout-change-banner.deficit p {
    color: var(--danger-color);
}

.checkout-change-banner.deficit h3 {
    color: var(--danger-color);
}

.checkout-change-banner p {
    font-size: 13px;
    font-weight: 600;
    color: var(--success-color);
}

.checkout-change-banner h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--success-color);
}

/* ==================== STORE MANAGEMENT (KELOLA) ==================== */
.subtabs-bar {
    background: var(--bg-secondary);
    display: flex;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 9;
}

.subtab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 14px 0;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.subtab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Subview transitions */
.subview {
    display: none;
}

.subview.active-subview {
    display: block;
    animation: fadeIn 0.25s ease;
}

.section-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header-actions h3 {
    font-size: 15px;
    font-weight: 700;
}

.list-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* CRUD row cards */
.list-row-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: var(--shadow-sm);
}

.list-row-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.list-row-avatar svg, .list-row-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-row-content {
    flex: 1;
    min-width: 0;
}

.list-row-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-row-subtitle {
    font-size: 11px;
    color: var(--text-secondary);
}

.list-row-actions {
    display: flex;
    gap: 6px;
}

.btn-row-action {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-edit {
    color: var(--primary-color);
}
.btn-edit:hover {
    background: var(--primary-light);
}

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

/* Empty CRUD state */
.list-empty-state {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1.5px dashed var(--border-color);
    color: var(--text-light);
}

/* ==================== REPORTS VIEW ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 18px;
    font-weight: 800;
}

.report-filter-bar {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    padding: 4px;
    margin-bottom: 20px;
}

.report-filter-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 8px 0;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.report-filter-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Sales report simple chart */
.chart-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.chart-container {
    height: 140px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 10px;
    padding-top: 10px;
}

.chart-bar-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}

.chart-bar-value {
    font-size: 9px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
    white-space: nowrap;
    opacity: 0.8;
}

.chart-bar {
    width: 100%;
    max-width: 24px;
    background: var(--primary-light);
    border-radius: 6px 6px 0 0;
    position: relative;
    cursor: pointer;
    transition: height 0.6s ease-out, background-color 0.2s;
    min-height: 2px;
}

.chart-bar:hover {
    background: var(--primary-color);
}

.chart-bar-label {
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 6px;
    font-weight: 600;
    text-transform: uppercase;
}

.transaction-row-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform 0.2s;
}

.transaction-row-card:hover {
    transform: scale(0.99);
}

/* ==================== PROFILE VIEW ==================== */
.profile-card {
    text-align: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px auto;
    border: 3px solid var(--primary-light);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.15);
}

.profile-card h2 {
    font-size: 18px;
    margin-bottom: 4px;
}

.profile-card p {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}

.profile-section-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.profile-section-card h3 {
    font-size: 15px;
    margin-bottom: 16px;
    border-left: 3px solid var(--primary-color);
    padding-left: 10px;
}

.profile-form button {
    margin-top: 10px;
}

.logout-container {
    margin: 30px 0;
}

/* ==================== RECEIPT DIALOG STYLES ==================== */
#receipt-modal {
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
}

.receipt-card-container {
    width: 100%;
    max-width: 380px;
    height: 90%;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.receipt-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.receipt-actions button {
    flex: 1;
}

.receipt-paper {
    background: white;
    color: #000000;
    font-family: 'Courier New', Courier, monospace;
    padding: 24px 20px;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    flex: 1;
    overflow-y: auto;
    font-size: 12px;
    line-height: 1.4;
}

.receipt-paper::-webkit-scrollbar {
    width: 2px;
}

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

.receipt-header h2 {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-family: inherit;
    color: #000;
}

.receipt-subtitle {
    font-weight: 700;
    margin-bottom: 4px;
}

.receipt-divider {
    border-bottom: 1px dashed #000000;
    margin: 12px 0;
}

.receipt-divider-dash {
    border-bottom: 1px dotted #000000;
    margin: 6px 0;
}

.receipt-info p {
    color: #000;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-family: inherit;
}

.receipt-items {
    margin: 12px 0;
}

.receipt-item-row {
    margin-bottom: 8px;
}

.receipt-item-row .item-name {
    font-weight: 700;
}

.receipt-item-row .item-calc {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    padding-left: 10px;
}

.receipt-totals p {
    color: #000;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-family: inherit;
}

.receipt-total-row {
    font-weight: 800;
    font-size: 14px !important;
    margin: 4px 0;
}

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

.receipt-footer .barcode {
    font-size: 20px;
    letter-spacing: 2px;
    margin-top: 8px;
    opacity: 0.8;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    80% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(3deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* ==================== PRINT MEDIA QUERY ==================== */
@media print {
    body, html {
        background: white !important;
        height: auto !important;
        overflow: visible !important;
        width: 100% !important;
    }
    
    .app-container {
        border: none !important;
        box-shadow: none !important;
        height: auto !important;
        max-height: none !important;
        max-width: none !important;
        position: static !important;
        overflow: visible !important;
    }
    
    /* Hide everything on page except printable receipt */
    .app-view, .bottom-nav, .drawer-overlay, .cart-drawer, .modal-overlay, .no-print {
        display: none !important;
    }
    
    #receipt-modal {
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: white !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        z-index: 99999 !important;
        height: auto !important;
    }
    
    .receipt-card-container {
        max-width: 100% !important;
        padding: 0 !important;
        height: auto !important;
    }
    
    .receipt-paper {
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        border: none !important;
    }
}

/* ==================== PRODUCT IMAGE & TOAST NOTIFICATION ==================== */
.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.toast-container {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 90%;
    max-width: 320px;
    pointer-events: none;
}

.toast-notification {
    background: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-notification span {
    background: rgba(255, 255, 255, 0.2);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

