@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --border: #475569;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
}

.light-theme {
    --bg-primary: #f8fafc;
    --bg-secondary: #e2e8f0;
    --bg-tertiary: #cbd5e1;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --border: #cbd5e1;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Layout */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Navbar */
.navbar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-links {
    display: flex;
    gap: 1rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.50rem 1.0rem;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.nav-link:hover, .nav-link.active {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle, .mobile-menu-btn {
    background: var(--bg-tertiary);
    border: none;
    border-radius: 8px;
    padding: 0.75rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-toggle:hover, .mobile-menu-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.mobile-menu {
    display: none;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 1rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    background: var(--accent);
    color: white;
}

/* Cards */
.card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #0da271;
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: #475569;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    background: var(--bg-tertiary);
    font-weight: 600;
    color: var(--text-primary);
}

.table tr:hover {
    background: var(--bg-tertiary);
}

/* Grid System */
.grid {
    display: grid;
    gap: 20px;
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Responsive */
@media (max-width: 1024px) {
    .grid-cols-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .grid-cols-3, .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .main-content { padding: 15px; }
    .navbar-links { display: none; }
    .mobile-menu { display: block; }
    .navbar-content { padding: 1rem; }
}

@media (max-width: 640px) {
    .grid-cols-2, .grid-cols-3, .grid-cols-4 { grid-template-columns: 1fr; }
    .card { padding: 15px; }
}

@media (min-width: 769px) {
    .mobile-menu-btn { display: none; }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Loading Spinner */
.spinner {
    border: 3px solid var(--bg-tertiary);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Product Cards */
.product-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.product-image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    background: var(--bg-primary);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.product-info {
    flex: 1;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 0.5rem;
}

.product-stock {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.product-stock.low-stock {
    color: var(--danger);
    font-weight: 600;
}

.product-barcode {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Home Page Styles */
.home-page {
    animation: fadeIn 0.5s ease-out;
}

.welcome-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.welcome-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.stats-grid {
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.recent-sales-list {
    margin-top: 1rem;
}

.sale-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    margin-bottom: 0.75rem;
}

.sale-item:hover {
    border-color: var(--accent);
    transform: translateX(5px);
}

.sale-customer {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.sale-details {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.sale-amount {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--success);
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.quick-action-btn {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.quick-action-btn:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.quick-action-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Sales Page Styles */
.sales-page {
    animation: fadeIn 0.5s ease-out;
}

.sales-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sales-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.barcode-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.products-grid {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.cart-section {
    position: sticky;
    top: 2rem;
}

.cart-items {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
}

.empty-cart {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
    font-style: italic;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.cart-item:hover {
    border-color: var(--accent);
}

.item-info {
    flex: 1;
}

.item-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.item-price {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.quantity {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.item-total {
    font-weight: 700;
    color: var(--success);
    min-width: 80px;
    text-align: right;
}

.remove-btn {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.remove-btn:hover {
    background: var(--danger);
    color: white;
}

.cart-totals {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-bottom: 1.5rem;
}

.total-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
}

.total-line.final {
    font-weight: 700;
    font-size: 1.1rem;
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
    margin-top: 0.5rem;
}

.cart-actions {
    display: flex;
    gap: 1rem;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal {
    background: var(--bg-primary);
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: var(--danger);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 1.5rem;
    border-top: 1px solid var(--border);
}

/* Print Styles */
@media print {
    body * {
        visibility: hidden;
    }
    .receipt-content, .receipt-content * {
        visibility: visible;
    }
    .receipt-content {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: white;
        color: black;
        font-family: 'Courier New', monospace;
    }
    .no-print {
        display: none !important;
    }
}

/* App Loading */
.app-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--bg-primary);
}

.loading-content {
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.app-logo {
    margin-bottom: 2rem;
}

.app-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
}

.spinner-large {
    width: 60px;
    height: 60px;
    border: 4px solid var(--bg-tertiary);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

.loading-text {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.mb-4 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1rem; }
.p-4 { padding: 1rem; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.gap-4 { gap: 1rem; }
.hidden { display: none; }

/* Receipt Styles */
.receipt-content {
    background: white;
    color: black;
    padding: 20px;
    font-family: 'Courier New', monospace;
    max-width: 300px;
    margin: 0 auto;
}

.receipt-header {
    text-align: center;
    margin-bottom: 1rem;
    border-bottom: 1px dashed #000;
    padding-bottom: 1rem;
}

.receipt-logo {
    margin-bottom: 0.5rem;
}

.receipt-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.receipt-address, .receipt-phone {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.receipt-info {
    margin-bottom: 1rem;
    font-size: 0.8rem;
}

.receipt-items {
    margin-bottom: 1rem;
}

.receipt-item-header, .receipt-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 0.5rem;
    padding: 0.25rem 0;
    font-size: 0.8rem;
}

.receipt-item-header {
    font-weight: bold;
    border-bottom: 1px solid #000;
}

.receipt-item {
    border-bottom: 1px dashed #ccc;
}

.item-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.receipt-totals {
    border-top: 1px solid #000;
    padding-top: 0.5rem;
    margin-bottom: 1rem;
}

.receipt-total-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.receipt-total-line.final {
    font-weight: bold;
    font-size: 1rem;
    border-top: 1px dashed #000;
    padding-top: 0.5rem;
}

.receipt-footer {
    text-align: center;
    font-size: 0.8rem;
}

.thank-you {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.return-policy {
    font-size: 0.7rem;
    color: #666;
}

/* Inventory Styles */
.inventory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.table-container {
    overflow-x: auto;
}

.product-cell {
    display: flex;
    align-items: center;
}

.stock-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.stock-badge.in-stock {
    background: #10b98120;
    color: var(--success);
}

.stock-badge.low-stock {
    background: #ef444420;
    color: var(--danger);
}

.low-stock-row {
    background: #ef444410 !important;
}

.low-stock-row:hover {
    background: #ef444420 !important;
}

.barcode {
    background: var(--bg-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    border: 1px solid var(--border);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1001;
    animation: slideInRight 0.3s ease-out;
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--danger);
}

.toast.warning {
    background: var(--warning);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
.mobile-menu {
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.mobile-menu.hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

/* Add these styles to your existing main.css file */

/* User info in navbar */
.user-info {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-right: 10px;
}

/* Enhanced receipt styles */
.receipt-modal .modal {
    max-width: 400px;
}

.receipt-content {
    background: white;
    color: black;
    padding: 20px;
    font-family: 'Courier New', monospace;
    max-width: 350px;
    margin: 0 auto;
    border: 1px solid #000;
}

.receipt-header {
    text-align: center;
    margin-bottom: 15px;
    border-bottom: 2px dashed #000;
    padding-bottom: 15px;
}

.receipt-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 8px 0 4px 0;
    text-transform: uppercase;
}

.receipt-address, .receipt-phone {
    font-size: 0.7rem;
    margin: 2px 0;
    font-weight: 500;
}

.receipt-info {
    margin-bottom: 15px;
    font-size: 0.7rem;
    line-height: 1.3;
}

.receipt-info p {
    margin: 3px 0;
}

.receipt-items {
    margin-bottom: 15px;
}

.receipt-item-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 5px;
    padding: 5px 0;
    font-weight: bold;
    border-bottom: 1px solid #000;
    font-size: 0.7rem;
}

.receipt-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 5px;
    padding: 4px 0;
    border-bottom: 1px dashed #ccc;
    font-size: 0.7rem;
    align-items: start;
}

.item-name {
    font-weight: 500;
    word-break: break-word;
}

.item-qty, .item-price, .item-total {
    text-align: center;
}

.receipt-totals {
    border-top: 1px solid #000;
    padding-top: 10px;
    margin-bottom: 15px;
}

.receipt-total-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3px;
    font-size: 0.8rem;
}

.receipt-total-line.final {
    font-weight: bold;
    font-size: 0.9rem;
    border-top: 1px dashed #000;
    padding-top: 5px;
    margin-top: 5px;
}

.receipt-footer {
    text-align: center;
    font-size: 0.65rem;
    line-height: 1.2;
}

.thank-you {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 0.7rem;
}

.return-policy {
    margin-bottom: 5px;
}

.receipt-note {
    font-style: italic;
    color: #666;
    margin-top: 8px;
}

/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
    .navbar-actions {
        gap: 8px;
    }
    
    .user-info {
        display: none;
    }
    
    .sales-content {
        grid-template-columns: 1fr;
    }
    
    .cart-section {
        position: static;
        margin-top: 20px;
    }
    
    .products-grid {
        max-height: 400px;
    }
    
    .cart-items {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .navbar-content {
        padding: 12px 15px;
    }
    
    .navbar-title {
        font-size: 1.3rem;
    }
    
    .main-content {
        padding: 12px;
    }
    
    .card {
        padding: 15px;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
}

/* Print styles for receipt */
@media print {
    body * {
        visibility: hidden;
    }
    
    .receipt-content, .receipt-content * {
        visibility: visible;
    }
    
    .receipt-content {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        max-width: none;
        border: none;
        box-shadow: none;
        margin: 0;
        padding: 15px;
    }
    
    .no-print {
        display: none !important;
    }
}
Mobile Logout Button Styles
.mobile-logout-section {
    margin-top: auto;
    padding: 20px;
    border-top: 1px solid #e2e8f0;
}

.mobile-logout-btn {
    width: 100%;
    padding: 12px 16px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: all 0.3s ease;
}

.mobile-logout-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.mobile-logout-btn:active {
    transform: translateY(0);
}

/* Dark theme support for mobile logout
@media (prefers-color-scheme: dark) {
    .mobile-logout-section {
        border-top-color: #374151;
    }
    
    .mobile-logout-btn {
        background: #dc2626;
    }
    
    .mobile-logout-btn:hover {
        background: #b91c1c;
    }
}
/* Alternative: Match existing mobile menu style */
.mobile-logout-section {
    margin-top: auto;
    padding: 15px 20px;
    border-top: 1px solid #e2e8f0;
    background: rgba(239, 68, 68, 0.05);
}

.mobile-logout-btn {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    color: #ef4444;
    border: 2px solid #ef4444;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: all 0.3s ease;
}

.mobile-logout-btn:hover {
    background: #ef4444;
    color: white;
    transform: translateY(-2px);
}

.mobile-logout-btn:active {
    transform: translateY(0);
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .mobile-logout-section {
        border-top-color: #374151;
        background: rgba(239, 68, 68, 0.1);
    }
    
    .mobile-logout-btn {
        color: #f87171;
        border-color: #f87171;
    }
    
    .mobile-logout-btn:hover {
        background: #f87171;
        color: #1f2937;
    }
} 

.floating-cart-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    border: none;
    z-index: 1000;
    transition: all 0.3s ease;
}

.floating-cart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.6);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Beautiful Circular Loading Overlay - Matches Your Theme */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85); /* Matches your --bg-primary with transparency */
    backdrop-filter: blur(3px); /* Reduced blur so user can see page */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.4s ease-out, backdrop-filter 0.4s ease-out;
}

.light-theme .loading-overlay {
    background: rgba(248, 250, 252, 0.85); /* Matches your light theme --bg-primary */
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(0px);
}

/* Elegant Circular Spinner - Matches Your Accent Colors */
.circular-loader {
    width: 70px;
    height: 70px;
    position: relative;
    margin-bottom: 20px;
}

.circular-loader-inner {
    width: 100%;
    height: 100%;
    border: 3px solid rgba(59, 130, 246, 0.2); /* --accent with transparency */
    border-top: 3px solid var(--accent); /* --accent */
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    position: relative;
}

.circular-loader-inner::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 3px solid transparent;
    border-bottom: 3px solid #8b5cf6; /* Purple accent */
    border-left: 3px solid #8b5cf6;
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite reverse;
    opacity: 0.7;
}

.light-theme .circular-loader-inner {
    border-color: rgba(59, 130, 246, 0.3);
    border-top-color: var(--accent);
}

.light-theme .circular-loader-inner::before {
    border-bottom-color: #7c3aed;
    border-left-color: #7c3aed;
}

/* Loading Text - Matches Your Typography */
.loading-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 15px;
    text-align: center;
    letter-spacing: 0.5px;
}

.light-theme .loading-text {
    color: var(--text-primary);
}

.loading-subtext {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 8px;
    text-align: center;
    font-weight: 400;
}

.light-theme .loading-subtext {
    color: var(--text-secondary);
}

/* Minimal Progress Bar */
.loading-progress {
    width: 180px;
    height: 3px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    margin-top: 15px;
    overflow: hidden;
    opacity: 0.8;
}

.light-theme .loading-progress {
    background: var(--bg-tertiary);
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #8b5cf6);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
}

/* Smooth Animations */
@keyframes spin {
    0% { 
        transform: rotate(0deg); 
    }
    100% { 
        transform: rotate(360deg); 
    }
}

@keyframes gentlePulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: scale(0.98);
    }
}

.loading-pulse {
    animation: gentlePulse 2s ease-in-out infinite;
}

/* Optional: Add some decorative elements */
.loading-decoration {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    animation: gentlePulse 3s ease-in-out infinite;
}

.loading-decoration::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 50%;
}


/* Barcode Generator Styles */
.barcode-generator-container {
    max-width: 600px;
    margin: 0 auto;
}

.barcode-actions {
    display: flex;
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.barcode-preview-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.barcode-preview-card {
    background: var(--bg-secondary);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border);
}

.barcode-preview-title {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.barcode-container {
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    display: inline-block;
    min-width: 300px;
}

.barcode-hint {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 15px;
    font-style: italic;
}

.light-theme .barcode-container {
    background: white;
    border: 1px solid var(--border);
}

.dark-theme .barcode-container {
    background: var(--bg-primary);
    border: 1px solid var(--border);
}

/* Responsive design */
@media (max-width: 768px) {
    .barcode-actions {
        flex-direction: column;
    }
    
    .barcode-actions .btn {
        width: 100%;
    }
    
    .barcode-container {
        min-width: 250px;
        transform: scale(0.9);
    }
}