/* Chimeole POS - Modern Custom Stylesheet */
:root {
    --che-primary: #2563eb;
    --che-primary-dark: #1d4ed8;
    --che-secondary: #0f172a;
    --che-accent: #10b981;
    --che-bg: #f8fafc;
    --che-card-bg: #ffffff;
    --che-sidebar-width: 260px;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--che-bg);
    color: #1e293b;
    overflow-x: hidden;
}

/* Sidebar & Layout */
.che-sidebar {
    width: var(--che-sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: #0f172a;
    color: #94a3b8;
    z-index: 1040;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.che-sidebar .nav-link {
    color: #94a3b8;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    border-radius: 0.5rem;
    margin: 0.2rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.che-sidebar .nav-link:hover, .che-sidebar .nav-link.active {
    color: #ffffff;
    background-color: rgba(37, 99, 235, 0.25);
    border-left: 4px solid var(--che-primary);
}

.che-sidebar .nav-link i {
    font-size: 1.2rem;
}

.che-main-content {
    margin-left: var(--che-sidebar-width);
    min-height: 100vh;
    padding-bottom: 3rem;
}

@media (max-width: 991.98px) {
    .che-sidebar {
        margin-left: calc(-1 * var(--che-sidebar-width));
    }
    .che-sidebar.show {
        margin-left: 0;
    }
    .che-main-content {
        margin-left: 0;
    }
}

/* Top Navbar */
.che-topbar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    height: 65px;
    position: sticky;
    top: 0;
    z-index: 1030;
}

/* Status Badges */
.animate-pulse {
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.96); }
    100% { opacity: 1; transform: scale(1); }
}

/* POS Terminal UI */
.pos-container {
    height: calc(100vh - 80px);
}

.pos-product-grid {
    height: calc(100vh - 165px);
    overflow-y: auto;
    padding-right: 5px;
}

.pos-cart-panel {
    height: calc(100vh - 165px);
    display: flex;
    flex-direction: column;
}

.pos-cart-items-scroll {
    flex: 1;
    overflow-y: auto;
}

.pos-product-card {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #ffffff;
    user-select: none;
}

.pos-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: var(--che-primary);
}

.pos-product-card:active {
    transform: scale(0.97);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    z-index: 1050;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.mobile-bottom-nav a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-bottom-nav a.active {
    color: var(--che-primary);
    font-weight: bold;
}

/* Receipt Thermal Print Stylesheet */
@media print {
    body * {
        visibility: hidden;
    }
    #printable-receipt, #printable-receipt * {
        visibility: visible;
    }
    #printable-receipt {
        position: absolute;
        left: 0;
        top: 0;
        width: 80mm;
        margin: 0;
        padding: 5mm;
        font-family: 'Courier New', Courier, monospace;
        font-size: 12px;
        color: #000;
    }
    .no-print {
        display: none !important;
    }
}

/* Gas Dispenser & POS Ultra-Bold Styles */
.fw-black {
    font-weight: 900 !important;
}

.tracking-wide {
    letter-spacing: 0.05em;
}

.gas-pump-display {
    background-color: #050505;
    border: 3px solid #f59e0b;
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}
