/* ==========================================================================
   WINE & SPIRITS POS - BURGUNDY, GOLD & BLUE ACCENTS VERSION
   ========================================================================== */

/* Reset & Base Styles */
:root {
    --primary-burgundy: #7B2C3F;
    --primary-light: #9D4C63;
    --primary-dark: #5A1E2B;
    --secondary-gold: #D4AF37;
    --secondary-light: #E6C878;
    --secondary-dark: #B8941F;
    --accent-blue: #3B82F6;
    --accent-blue-light: #60A5FA;
    --accent-blue-dark: #1E40AF;
    --accent-sage: #8A9A5B;
    --accent-cream: #F5E9D4;
    --accent-warm-gray: #A89F90;
    --success: #2E7D32;
    --success-light: #4CAF50;
    --success-dark: #1B5E20;
    --danger: #C62828;
    --danger-light: #EF5350;
    --danger-dark: #B71C1C;
    --warning: #F57C00;
    --warning-light: #FF9800;
    --warning-dark: #E65100;
    --light: #F8F5F0;
    --lighter: #FFFDF8;
    --dark: #2C1810;
    --gray: #8B7E74;
    --gray-light: #C7BEB5;
    --gray-dark: #5D534B;
    
    --sidebar-width: 280px;
    --navbar-height: 80px;
    --border-radius: 12px;
    --border-radius-sm: 6px;
    --border-radius-lg: 16px;
    --shadow: 0 4px 20px rgba(123, 44, 63, 0.08);
    --shadow-md: 0 10px 30px rgba(123, 44, 63, 0.12);
    --shadow-lg: 0 20px 50px rgba(123, 44, 63, 0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--dark);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--light) 0%, var(--accent-cream) 100%);
}

/* Background for App Screen - Drink-related image with blue overlay */
#appScreen {
    background-image: 
        linear-gradient(rgba(123, 44, 63, 0.85), rgba(59, 130, 246, 0.9)),
        url('https://images.unsplash.com/photo-1513558161293-cdaf765ed2fd?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-blend-mode: multiply;
}

/* Background for Login Screen - Cocktail bar image */
#loginScreen {
    background-image: 
        linear-gradient(rgba(123, 44, 63, 0.8), rgba(59, 130, 246, 0.85)),
        url('https://images.unsplash.com/photo-1572116469696-31de0f17cc34?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-blend-mode: multiply;
}

/* Subtle Texture Overlay - Updated with blue accents */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%233B82F6' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    z-index: -1;
    opacity: 0.15;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

h1 { 
    font-size: 2.5rem; 
    color: var(--primary-burgundy);
}
h2 { 
    font-size: 2rem; 
    color: var(--primary-burgundy);
}
h3 { 
    font-size: 1.75rem; 
    color: var(--primary-burgundy);
}
h4 { 
    font-size: 1.5rem; 
    color: var(--primary-burgundy);
}
h5 { 
    font-size: 1.25rem; 
    color: var(--primary-burgundy);
}
h6 { 
    font-size: 1rem; 
    color: var(--primary-burgundy);
}

p { 
    margin-bottom: 1.5rem;
    color: var(--gray-dark);
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
}

a:hover {
    color: var(--accent-blue-dark);
}

/* Screen Containers */
.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.4s ease;
    overflow: auto;
}

.hidden {
    display: none !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0% { 
        transform: scale(1); 
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }
    70% { 
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Login Screen */

.custom-logo {
    width: 80px;
    height: 80px;
    background-image: url('bg.jpeg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    overflow: hidden;
    
    /* Add focus styles for keyboard navigation */
    outline: none; /* Remove default outline */
    transition: all 0.3s ease;
    cursor: pointer; /* Indicate it's interactive */
}

/* Focus state for keyboard users */
.custom-logo:focus {
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
    transform: scale(1.05);
}

/* Hover state for mouse users */
.custom-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Active/pressed state */
.custom-logo:active {
    transform: scale(0.98);
}
.login-container {
    max-width: 480px;
    margin: 80px auto;
    background: rgba(44, 24, 16, 0.95);
    border-radius: var(--border-radius-lg);
    padding: 60px 50px;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.8s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.4);
    backdrop-filter: blur(10px);
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-gold), var(--accent-blue));
}

.login-header {
    text-align: center;
    margin-bottom: 50px;
}

.login-header i {
    font-size: 64px;
    color: var(--secondary-gold);
    margin-bottom: 30px;
    display: inline-block;
    padding: 25px;
    background: rgba(44, 24, 16, 0.8);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    border: 2px solid rgba(212, 175, 55, 0.3);
}

.login-header h1 {
    color: var(--secondary-gold);
    margin-bottom: 15px;
    font-size: 2.5rem;
}

.login-header p {
    color: var(--accent-cream);
    font-size: 1.1rem;
    font-style: italic;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: var(--border-radius-sm);
    padding: 16px 20px;
    background: rgba(90, 30, 43, 0.7);
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.input-group:focus-within {
    border-color: var(--accent-blue);
    background: rgba(90, 30, 43, 0.9);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.input-group i {
    color: var(--accent-blue-light);
    margin-right: 15px;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.input-group input,
.input-group select {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    background: transparent;
    font-family: inherit;
    color: var(--accent-cream);
}

.input-group select option {
    background: var(--dark);
    color: var(--light);
}

.input-group input::placeholder {
    color: rgba(245, 233, 212, 0.6);
}

.btn-login {
    background: linear-gradient(135deg, var(--primary-burgundy) 0%, var(--accent-blue) 100%);
    color: var(--light);
    border: none;
    padding: 18px 30px;
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    margin-top: 20px;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 15px rgba(123, 44, 63, 0.4);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(123, 44, 63, 0.6);
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--primary-burgundy) 100%);
}

.error-message {
    color: var(--danger-light);
    text-align: center;
    padding: 12px;
    background: rgba(198, 40, 40, 0.1);
    border-radius: var(--border-radius-sm);
    margin-top: 10px;
    border: 1px solid rgba(198, 40, 40, 0.3);
    font-weight: 500;
    backdrop-filter: blur(5px);
}

.demo-credentials {
    margin-top: 40px;
    padding: 30px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--border-radius);
    border: 1px solid rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(5px);
}

.demo-credentials p {
    color: var(--accent-blue-light);
    font-size: 14px;
    margin-bottom: 10px;
    text-align: center;
}

.footer-section {
    text-align: center;
    margin-top: 20px;
}

.footer-section h4 {
    color: var(--accent-blue-light);
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-section a {
    color: var(--accent-blue-light);
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--secondary-gold);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.footer-social a {
    color: var(--accent-blue-light);
    font-size: 18px;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--secondary-gold);
    transform: translateY(-2px);
}

/* Main App Layout */
.navbar {
    background: linear-gradient(135deg, rgba(44, 24, 16, 0.95) 0%, rgba(30, 64, 175, 0.9) 100%);
    height: var(--navbar-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 25px;
}

.menu-toggle {
    background: none;
    border: 1px solid rgba(212, 175, 55, 0.4);
    font-size: 20px;
    color: var(--accent-blue-light);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(59, 130, 246, 0.2);
}

.menu-toggle:hover {
    background: rgba(59, 130, 246, 0.4);
    border-color: var(--accent-blue);
    transform: rotate(90deg);
}

#pageTitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-blue-light);
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.user-info span:first-child {
    font-size: 12px;
    color: var(--accent-blue-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(59, 130, 246, 0.2);
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.user-info span:last-child {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-cream);
}

.btn-logout {
    background: linear-gradient(135deg, var(--danger) 0%, var(--danger-dark) 100%);
    color: var(--light);
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.3);
}

.btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(198, 40, 40, 0.4);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--navbar-height));
    background: linear-gradient(180deg, rgba(44, 24, 16, 0.98) 0%, rgba(30, 64, 175, 0.95) 100%);
    color: var(--light);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    display: flex;
    flex-direction: column;
    box-shadow: 8px 0 25px rgba(0, 0, 0, 0.4);
    border-right: 1px solid rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(10px);
}

.sidebar-header {
    padding: 30px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.sidebar-header h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    margin: 0;
    color: var(--accent-blue-light);
}

.sidebar-header i {
    color: var(--accent-blue-light);
}

.sidebar-menu {
    list-style: none;
    padding: 25px 0;
    flex: 1;
    overflow-y: auto;
}

.sidebar-menu li {
    padding: 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 30px;
    color: rgba(245, 233, 212, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    position: relative;
    font-size: 15px;
    margin: 3px 15px;
    border-radius: var(--border-radius-sm);
    border: 1px solid transparent;
}

.sidebar-menu a:hover {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-blue-light);
    padding-left: 32px;
    border-color: rgba(59, 130, 246, 0.4);
}

.sidebar-menu a.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(123, 44, 63, 0.2) 100%);
    color: var(--accent-blue-light);
    border-color: rgba(59, 130, 246, 0.5);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sidebar-menu a.active::before {
    content: '';
    position: absolute;
    right: -1px;
    top: 10%;
    bottom: 10%;
    width: 3px;
    background: linear-gradient(to bottom, var(--accent-blue), var(--secondary-gold));
    border-radius: 3px 0 0 3px;
}

.sidebar-menu i {
    font-size: 18px;
    width: 24px;
    text-align: center;
    color: var(--accent-blue-light);
}

.sidebar-footer {
    padding: 25px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.system-status {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(245, 233, 212, 0.8);
    letter-spacing: 0.5px;
}

.online {
    color: var(--danger-light);
    animation: pulse 1s infinite;
}

.date-time {
    font-size: 12px;
    color: var(--accent-blue-light);
    text-align: center;
    margin-top: 10px;
    font-family: 'Monaco', 'Consolas', monospace;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--navbar-height);
    padding: 30px;
    min-height: calc(100vh - var(--navbar-height));
    transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(248, 245, 240, 0.95);
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.page-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-burgundy);
    margin: 0;
    font-size: 1.75rem;
}

.date-display {
    background: linear-gradient(135deg, var(--accent-blue-light) 0%, var(--primary-burgundy) 100%);
    color: white;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(5px);
    font-size: 14px;
}

/* Dashboard */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 233, 212, 0.9) 100%);
    border-radius: var(--border-radius);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-burgundy), var(--accent-blue));
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-blue);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 233, 212, 0.95) 100%);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, var(--primary-burgundy), var(--accent-blue));
}

.stat-info {
    flex: 1;
}

.stat-info h3 {
    font-size: 28px;
    color: var(--primary-burgundy);
    margin-bottom: 5px;
    font-weight: 700;
}

.stat-info p {
    color: var(--gray-dark);
    font-size: 14px;
    margin: 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 25px;
}

.dashboard-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 233, 212, 0.9) 100%);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(5px);
}

.dashboard-card h3 {
    color: var(--primary-burgundy);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
}

.top-products,
.recent-transactions {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(245, 233, 212, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-burgundy), var(--accent-blue));
    border-radius: 4px;
    border: 2px solid rgba(245, 233, 212, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--accent-blue), var(--primary-burgundy));
}

/* POS System */
.pos-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    height: calc(100vh - 180px);
}

@media (max-height: 850px) {
    .pos-container {
        height: auto;
        min-height: 600px;
    }
}

.pos-products {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 233, 212, 0.9) 100%);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(5px);
}

.search-bar {
    display: flex;
    align-items: center;
    background: rgba(245, 233, 212, 0.9);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(59, 130, 246, 0.4);
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.search-bar:focus-within {
    border-color: var(--accent-blue);
    background: rgba(245, 233, 212, 0.95);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.search-bar i {
    color: var(--accent-blue);
    margin: 0 12px;
    font-size: 18px;
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: var(--dark);
}

.search-bar input::placeholder {
    color: rgba(139, 126, 116, 0.6);
}

.btn-scan {
    background: linear-gradient(135deg, var(--primary-burgundy) 0%, var(--accent-blue) 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(123, 44, 63, 0.3);
}

.btn-scan:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 15px;
    scrollbar-width: thin;
}

.category-tabs::-webkit-scrollbar {
    height: 4px;
}

.category-tab {
    padding: 10px 20px;
    background: rgba(245, 233, 212, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    font-weight: 500;
    color: var(--gray-dark);
    font-size: 14px;
}

.category-tab:hover {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-blue-dark);
    border-color: var(--accent-blue);
}

.category-tab.active {
    background: linear-gradient(135deg, var(--primary-burgundy) 0%, var(--accent-blue) 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    font-weight: 600;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    flex: 1;
    overflow-y: auto;
    padding: 10px 10px 20px 0;
}

.product-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(59, 130, 246, 0.3);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-blue);
    background: white;
}

.product-card.out-of-stock {
    opacity: 0.6;
    cursor: not-allowed;
}

.product-card.out-of-stock::after {
    content: 'OUT OF STOCK';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    background: linear-gradient(135deg, var(--danger), var(--danger-dark));
    color: white;
    padding: 6px 15px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    opacity: 0.9;
    letter-spacing: 1px;
}

.product-image {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--accent-blue);
}

.product-info h4 {
    font-size: 15px;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-info p {
    color: var(--gray);
    font-size: 13px;
    margin-bottom: 10px;
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price span:first-child {
    color: var(--accent-blue-dark);
    font-weight: 700;
    font-size: 18px;
}

.stock-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
}

.stock-badge.in-stock {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue-dark);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.stock-badge.low-stock {
    background: rgba(245, 124, 0, 0.1);
    color: var(--warning);
    border: 1px solid rgba(245, 124, 0, 0.3);
}

.stock-badge.out-of-stock {
    background: rgba(198, 40, 40, 0.1);
    color: var(--danger);
    border: 1px solid rgba(198, 40, 40, 0.3);
}

.pos-cart {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 233, 212, 0.9) 100%);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(5px);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
}

.cart-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-blue-dark);
    margin: 0;
    font-size: 1.25rem;
}

#cartCount {
    background: linear-gradient(135deg, var(--primary-burgundy) 0%, var(--accent-blue) 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
    max-height: 300px;
    padding-right: 10px;
}

.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray);
}

.empty-cart i {
    font-size: 48px;
    margin-bottom: 15px;
    color: rgba(59, 130, 246, 0.3);
}

.empty-cart p {
    font-size: 16px;
    color: var(--gray-dark);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius-sm);
    margin-bottom: 10px;
    transition: var(--transition);
    border: 1px solid transparent;
    backdrop-filter: blur(5px);
}

.cart-item:hover {
    border-color: var(--accent-blue);
    background: white;
}

.cart-item-info h4 {
    color: var(--dark);
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 600;
}

.cart-item-info p {
    color: var(--gray);
    font-size: 13px;
    margin: 0;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-qty {
    width: 28px;
    height: 28px;
    border: none;
    background: linear-gradient(135deg, var(--primary-burgundy) 0%, var(--accent-blue) 100%);
    color: white;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-qty:hover {
    transform: scale(1.1);
}

.btn-remove {
    background: linear-gradient(135deg, var(--danger) 0%, var(--danger-dark) 100%);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-remove:hover {
    transform: scale(1.1);
}

.cart-item-total {
    font-weight: 700;
    font-size: 16px;
    color: var(--accent-blue-dark);
    min-width: 70px;
    text-align: right;
}

.cart-summary {
    padding: 20px 0;
    border-top: 1px solid rgba(59, 130, 246, 0.3);
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.summary-row:last-child {
    margin-bottom: 0;
}

.summary-row span:first-child {
    color: var(--gray-dark);
    font-weight: 500;
    font-size: 14px;
}

.summary-row span:last-child {
    color: var(--dark);
    font-weight: 600;
    font-size: 15px;
}

.summary-row.total {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-blue-dark);
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid rgba(59, 130, 246, 0.3);
}

.discount-input {
    display: flex;
    gap: 10px;
    align-items: center;
}

.discount-input input {
    width: 80px;
    padding: 8px;
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: var(--border-radius-sm);
    text-align: center;
    font-weight: 600;
    color: var(--dark);
    background: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.discount-input input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    outline: none;
    background: white;
}

.discount-input select {
    padding: 8px 12px;
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.discount-input select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    outline: none;
    background: white;
}

/* Cash Payment Section */
.cash-payment-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    padding: 15px;
    margin: 15px 0;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.cash-payment-section h4 {
    margin: 0 0 15px 0;
    color: var(--accent-blue-dark);
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cash-input-group {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    margin-bottom: 10px;
}

.cash-input-group .form-group {
    flex: 1;
    margin: 0;
}

.cash-input-group .form-group label {
    font-size: 12px;
    color: var(--gray-dark);
    margin-bottom: 5px;
    display: block;
}

.cash-input-group .form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    background: rgba(255, 255, 255, 0.95);
}

.btn-calculate-change {
    background: linear-gradient(135deg, var(--primary-burgundy) 0%, var(--accent-blue) 100%);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    height: 36px;
    transition: var(--transition);
}

.btn-calculate-change:hover {
    transform: translateY(-2px);
}

.change-display {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue-dark);
    padding: 10px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.change-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
}

#changeAmount {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-blue-dark);
}

.payment-methods {
    margin: 20px 0;
}

.payment-methods h4 {
    color: var(--accent-blue-dark);
    margin-bottom: 15px;
    font-size: 16px;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
}

.payment-option:hover {
    background: white;
    border-color: rgba(59, 130, 246, 0.4);
}

.payment-option input {
    display: none;
}

.payment-option i {
    font-size: 20px;
    margin-right: 10px;
    color: var(--accent-blue);
    transition: var(--transition);
}

.payment-option span {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-dark);
    transition: var(--transition);
}

.payment-option.active {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--accent-blue);
}

.payment-option.active i {
    color: var(--accent-blue-dark);
}

.payment-option.active span {
    color: var(--accent-blue-dark);
    font-weight: 600;
}

.cart-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-cancel {
    flex: 1;
    background: linear-gradient(135deg, var(--danger) 0%, var(--danger-dark) 100%);
    color: white;
    border: none;
    padding: 12px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.3);
}

.btn-cancel:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(198, 40, 40, 0.4);
}

.btn-checkout {
    flex: 2;
    background: linear-gradient(135deg, var(--primary-burgundy) 0%, var(--accent-blue) 100%);
    color: white;
    border: none;
    padding: 12px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-checkout::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-checkout:hover::before {
    left: 100%;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Products Management */
.btn-add {
    background: linear-gradient(135deg, var(--primary-burgundy) 0%, var(--accent-blue) 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.table-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 233, 212, 0.9) 100%);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    overflow-x: auto;
    border: 1px solid rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(5px);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 800px;
}

thead {
    background: linear-gradient(135deg, rgba(245, 233, 212, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%);
}

th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--accent-blue-dark);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
}

td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    font-size: 14px;
    color: var(--dark);
}

tbody tr {
    transition: var(--transition);
}

tbody tr:hover {
    background: rgba(59, 130, 246, 0.1);
}

tbody tr:last-child td {
    border-bottom: none;
}

.stock-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-edit,
.btn-delete {
    padding: 8px 16px;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-edit {
    background: linear-gradient(135deg, var(--primary-burgundy) 0%, var(--accent-blue) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.btn-delete {
    background: linear-gradient(135deg, var(--danger) 0%, var(--danger-dark) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.3);
}

.btn-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(198, 40, 40, 0.4);
}

/* ==================== MODAL STYLES ==================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    padding: 20px;
    animation: fadeIn 0.4s ease;
    backdrop-filter: blur(10px);
}

.modal-content {
    background: linear-gradient(135deg, rgba(44, 24, 16, 0.98), rgba(30, 64, 175, 0.98));
    border-radius: var(--border-radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.5s ease;
    border: 1px solid rgba(59, 130, 246, 0.5);
    backdrop-filter: blur(20px);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.4);
    background: rgba(90, 30, 43, 0.9);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.modal-header h3 {
    color: var(--accent-blue-light);
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-modal {
    background: none;
    border: 1px solid rgba(59, 130, 246, 0.5);
    font-size: 24px;
    cursor: pointer;
    color: var(--accent-blue-light);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    background: rgba(44, 24, 16, 0.8);
}

.close-modal:hover {
    background: rgba(59, 130, 246, 0.3);
    color: white;
    border-color: var(--accent-blue);
    transform: rotate(90deg);
}

.form-group {
    margin-bottom: 25px;
    padding: 0 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    padding: 0 30px;
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--accent-blue-light);
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(59, 130, 246, 0.5);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--accent-cream);
    transition: var(--transition);
    background: rgba(44, 24, 16, 0.8);
    backdrop-filter: blur(5px);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
    outline: none;
    background: rgba(44, 24, 16, 0.9);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 15px;
    padding: 25px 30px;
    border-top: 1px solid rgba(59, 130, 246, 0.4);
    margin-top: 20px;
    background: rgba(90, 30, 43, 0.9);
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

.btn-cancel,
.btn-save {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-cancel {
    background: linear-gradient(135deg, var(--danger) 0%, var(--danger-dark) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.3);
}

.btn-cancel:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(198, 40, 40, 0.4);
}

.btn-save {
    background: linear-gradient(135deg, var(--primary-burgundy) 0%, var(--accent-blue) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.6);
}

/* ==================== RECEIPT STYLES ==================== */
.receipt-content {
    max-width: 400px;
    background: white !important;
}

.receipt-content .modal-header {
    background: linear-gradient(135deg, var(--primary-burgundy) 0%, var(--accent-blue-dark) 100%);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.receipt-content .modal-body {
    padding: 0;
    background: white;
}

/* Receipt actions in modal */
.receipt-actions {
    display: flex;
    gap: 10px;
}

.btn-print,
.btn-download {
    padding: 8px 16px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    color: white;
}

.btn-print {
    background: linear-gradient(135deg, var(--primary-burgundy), var(--accent-blue));
}

.btn-download {
    background: linear-gradient(135deg, var(--success), var(--success-dark));
}

.btn-print:hover,
.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Receipt content */
#receiptContent {
    font-family: 'Courier New', 'Monaco', 'Consolas', monospace;
    font-size: 12px;
    line-height: 1.3;
    color: #000;
    padding: 20px;
    background: white;
}

.receipt {
    max-width: 280px;
    margin: 0 auto;
}

.receipt-header {
    text-align: center;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 2px dashed #000;
}

.receipt-header h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.receipt-header p {
    margin: 3px 0;
    font-size: 11px;
    color: #333;
}

.receipt-items {
    margin-bottom: 15px;
}

.receipt-item {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
    padding: 3px 0;
    border-bottom: 1px dotted #ccc;
}

.receipt-item.header {
    font-weight: 700;
    border-bottom: 2px solid #000;
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.receipt-item.header span {
    font-weight: 700;
    color: #000;
}

.receipt-item span {
    flex: 1;
    text-align: left;
}

.receipt-item span:nth-child(2) {
    text-align: center;
    flex: 0.5;
}

.receipt-item span:nth-child(3),
.receipt-item span:nth-child(4) {
    text-align: right;
    flex: 1;
}

.receipt-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #000;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
    padding: 3px 0;
    border-bottom: 1px dotted #ccc;
}

.total-row:last-child {
    border-bottom: none;
}

.total-row.grand-total {
    font-size: 14px;
    font-weight: 700;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid #000;
    border-bottom: none;
}

.payment-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #666;
}

.payment-method {
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
}

.receipt-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #000;
    text-align: center;
    font-size: 10px;
    color: #666;
    line-height: 1.4;
}

.receipt-footer p {
    margin: 3px 0;
}

/* Payment Modal */
.payment-details {
    padding: 20px 30px;
}

.payment-details h4 {
    color: var(--accent-blue-light);
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
}

.detail-row:last-child {
    border-bottom: none;
}

.text-success {
    color: var(--accent-blue-dark) !important;
    font-weight: 600;
}

/* Payment Method Tags */
.payment-method-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 8px;
}

.cash-tag {
    background-color: rgba(212, 175, 55, 0.2);
    color: var(--secondary-dark);
    border: 1px solid var(--secondary-gold);
}

.mpesa-tag {
    background-color: rgba(76, 175, 80, 0.2);
    color: var(--success);
    border: 1px solid var(--success-light);
}

.card-tag {
    background-color: rgba(59, 130, 246, 0.2);
    color: var(--accent-blue);
    border: 1px solid var(--accent-blue-light);
}

.bank-tag {
    background-color: rgba(138, 154, 91, 0.2);
    color: var(--accent-sage);
    border: 1px solid var(--accent-sage);
}

/* ==================== PRINT STYLES ==================== */
@media print {
    /* Reset everything for printing */
    body * {
        visibility: hidden;
    }
    
    #receiptModal,
    #receiptModal * {
        visibility: visible;
    }
    
    #receiptModal {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: auto;
        background: white;
    }
    
    .modal,
    .modal-content {
        position: static;
        box-shadow: none;
        max-width: none;
        max-height: none;
        background: white !important;
    }
    
    /* Hide modal header and buttons */
    .modal-header,
    .btn-print,
    .btn-download,
    .close-modal {
        display: none !important;
    }
    
    /* Ensure receipt styles */
    #receiptContent {
        color: black !important;
        background: white !important;
        padding: 10px !important;
        margin: 0 !important;
    }
    
    .receipt {
        width: 280px !important;
        margin: 0 auto !important;
    }
    
    /* Ensure proper borders for print */
    .receipt-header {
        border-bottom: 2px solid black !important;
    }
    
    .receipt-item.header {
        border-bottom: 2px solid black !important;
    }
    
    .receipt-total {
        border-top: 2px solid black !important;
    }
    
    .total-row.grand-total {
        border-top: 2px solid black !important;
    }
    
    /* Optimize for thermal printers */
    @page {
        margin: 0;
        size: auto;
    }
    
    body {
        margin: 0 !important;
        padding: 0 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    /* Force black and white for receipt */
    * {
        color: black !important;
        background: white !important;
        box-shadow: none !important;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    :root {
        --sidebar-width: 240px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .pos-container {
        grid-template-columns: 1.5fr 1fr;
    }
}

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .main-content {
        margin-left: 0;
        background: rgba(248, 245, 240, 0.98);
    }
    
    .sidebar.active {
        transform: translateX(0);
        box-shadow: 15px 0 40px rgba(0, 0, 0, 0.5);
    }
    
    .pos-container {
        grid-template-columns: 1fr;
        height: auto;
        gap: 20px;
    }
    
    .products-grid {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .payment-options {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .date-display {
        align-self: flex-start;
    }
    
    .btn-add {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .login-container {
        margin: 40px 20px;
        padding: 40px 30px;
    }
    
    .navbar {
        padding: 0 15px;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-edit,
    .btn-delete {
        width: 100%;
        justify-content: center;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }

.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* Selection */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: var(--dark);
}

/* Focus Outline */
:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* Smooth Transitions */
button, input, select, textarea, .btn, .card, .modal, .sidebar-menu a {
    transition: var(--transition);
}