@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);
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.light-theme {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --border: #e2e8f0;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --card-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

.main-content {
    flex: 1;
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    overflow-x: hidden;
}

.navbar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.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;
    gap: 12px;
}

.navbar-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.navbar-title {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.nav-link:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.nav-link.active {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle, .mobile-menu-btn {
    background: var(--bg-tertiary);
    border: none;
    border-radius: 10px;
    padding: 10px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover, .mobile-menu-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

.mobile-menu {
    display: none;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 1rem;
    animation: slideDown 0.3s ease;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    background: var(--accent);
    color: white;
    transform: translateX(5px);
}

.card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #8b5cf6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.btn::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: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.btn-success {
    background: var(--success);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: #0da271;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    color: white;
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
}

.table th,
.table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    background: var(--bg-tertiary);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tr {
    transition: all 0.3s ease;
}

.table tr:hover {
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

.grid {
    display: grid;
    gap: 24px;
}

.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); }

@media (max-width: 1200px) {
    .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    .grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-cols-2, .grid-cols-3, .grid-cols-4 { grid-template-columns: 1fr; }
    .main-content { padding: 16px; }
    .navbar-links { display: none; }
    .mobile-menu { display: block; }
    .navbar-content { padding: 1rem; }
    .card { padding: 20px; }
    .table th, .table td { padding: 12px 16px; }
}

@media (max-width: 640px) {
    .main-content { padding: 12px; }
    .card { padding: 16px; }
    .btn { padding: 10px 16px; }
    .navbar-content { padding: 12px; }
}

@media (min-width: 769px) {
    .mobile-menu-btn { display: none; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.spinner {
    border: 3px solid var(--bg-tertiary);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.product-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 10px;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #8b5cf6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--accent);
}

.product-image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    background: var(--bg-primary);
    border-radius: 12px;
    margin-bottom: 12px;
    position: relative;
}

.product-info {
    flex: 1;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    line-height: 1.4;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 8px;
}

.product-stock {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.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;
    gap: 6px;
}

.product-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.home-page {
    animation: fadeIn 0.6s ease-out;
}

.welcome-section {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
}

.welcome-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.welcome-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.stats-grid {
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.stat-card:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.bg-gradient-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.bg-gradient-green { background: linear-gradient(135deg, #10b981, #047857); }
.bg-gradient-orange { background: linear-gradient(135deg, #f59e0b, #d97706); }
.bg-gradient-purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.recent-sales-list {
    margin-top: 1rem;
}

.sale-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.sale-item:hover {
    border-color: var(--accent);
    transform: translateX(6px);
    box-shadow: var(--card-shadow);
}

.sale-customer {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.sale-details {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sale-amount {
    font-weight: 700;
    font-size: 1rem;
    color: var(--success);
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 1rem;
}

.quick-action-btn {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-primary);
    text-align: center;
}

.quick-action-btn:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--card-shadow-hover);
    background: var(--bg-secondary);
}

.quick-action-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.sales-page {
    animation: fadeIn 0.6s ease-out;
    width: 100%;
    overflow-x: hidden;
}

.sales-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 4px;
}

.sales-stats {
    display: flex;
    gap: 1.5rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 18px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}

.stat-value {
    font-size: 1.2rem;
    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-container {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    width: 100%;
}

.cart-items {
    width: 100%;
    min-width: 100%;
}

.empty-cart, .empty-state {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem 1rem;
    font-style: italic;
}

.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-primary);
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    min-width: 100%;
}

.cart-item:hover {
    border-color: var(--accent);
    transform: translateX(4px);
}

.item-info {
    flex: 1;
    min-width: 0;
}

.item-name {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-price {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    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;
    font-weight: 600;
    font-size: 0.9rem;
}

.qty-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: scale(1.1);
}

.quantity {
    min-width: 30px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.item-total {
    font-weight: 700;
    color: var(--success);
    min-width: 70px;
    text-align: right;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.remove-btn {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.remove-btn:hover {
    background: var(--danger);
    color: white;
    transform: scale(1.1);
}

.cart-totals {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.total-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 8px 0;
    font-size: 0.95rem;
}

.total-line.final {
    font-weight: 700;
    font-size: 1.1rem;
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: 8px;
    color: var(--success);
}

.cart-actions {
    display: flex;
    gap: 12px;
}

.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;
    backdrop-filter: blur(4px);
}

.modal {
    background: var(--bg-primary);
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.close-btn:hover {
    color: var(--danger);
    background: var(--bg-tertiary);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 24px;
    border-top: 1px solid var(--border);
}

.fas.fa-home { color: #3b82f6; }
.fas.fa-shopping-cart { color: white; }
.fas.fa-boxes { color: #f59e0b; }
.fas.fa-chart-bar { color: #8b5cf6; }
.fas.fa-receipt { color: #ef4444; }
.fas.fa-barcode { color: #06b6d4; }
.fas.fa-cog { color: #6b7280; }
.fas.fa-cash-register { color: #10b981; }
.fas.fa-plus { color: #10b981; }
.fas.fa-history { color: #8b5cf6; }
.fas.fa-bolt { color: #f59e0b; }
.fas.fa-user { color: #3b82f6; }
.fas.fa-clock { color: #6b7280; }
.fas.fa-shopping-bag { color: #8b5cf6; }
.fas.fa-box { color: #f59e0b; }
.fas.fa-exclamation-triangle { color: #ef4444; }
.fas.fa-chart-line { color: #10b981; }
.fas.fa-money-bill { color: white; }
.fas.fa-store { color: #3b82f6; }
.fas.fa-info-circle { color: #06b6d4; }
.fas.fa-edit { color: #f59e0b; }
.fas.fa-trash { color: white; }
.fas.fa-print { color: white; }
.fas.fa-search { color: #6b7280; }
.fas.fa-moon { color: #f59e0b; }
.fas.fa-sun { color: #f59e0b; }
.fas.fa-bars { color: var(--text-primary); }
.fas.fa-sign-out-alt { color: white; }
.fas.fa-hourglass-end { color: #f59e0b;}
.fas.fa-chart-pie { color: gold; }
.fas.fa-cog { color: #8b5cf6; } 
.fas.fa-shield-alt { color: #ef4444; }

@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 {
    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: 70px;
    height: 70px;
    border: 4px solid var(--bg-tertiary);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    margin: 20px auto;
}

.loading-text {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.receipt-content {
    background: white;
    color: black;
    padding: 16px;
    font-family: 'Courier New', monospace;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    overflow-x: hidden;
}

.receipt-header {
    text-align: center;
    margin-bottom: 1rem;
    border-bottom: 2px dashed #000;
    padding-bottom: 1rem;
}

.receipt-logo {
    margin-bottom: 0.5rem;
    max-width: 100%;
    height: auto;
}

.receipt-title {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
    font-weight: bold;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    word-wrap: break-word;
}

.receipt-address, .receipt-phone {
    font-size: clamp(0.7rem, 3vw, 0.8rem);
    margin-bottom: 0.25rem;
    font-weight: 500;
    word-wrap: break-word;
}

.receipt-info {
    margin-bottom: 1rem;
    font-size: clamp(0.7rem, 3vw, 0.8rem);
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    word-wrap: break-word;
}

.receipt-items {
    margin-bottom: 1rem;
    overflow-x: auto;
}

.receipt-item-header, .receipt-item {
    display: grid;
    grid-template-columns: minmax(120px, 2fr) 0.8fr 1fr 1fr;
    gap: 6px;
    padding: 6px 0;
    font-size: clamp(0.65rem, 2.5vw, 0.75rem);
    align-items: start;
    min-width: 280px;
}

.receipt-item-header {
    font-weight: bold;
    border-bottom: 2px solid #000;
    padding-bottom: 8px;
    margin-bottom: 6px;
    position: sticky;
    left: 0;
}

.receipt-item {
    border-bottom: 1px dashed #ccc;
}

.item-name {
    font-weight: 600;
    word-break: break-word;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.2;
    min-width: 0;
    color: #000;
}

.item-qty, .item-price, .item-total {
    text-align: center;
    font-weight: 500;
    white-space: nowrap;
}

.receipt-totals {
    border-top: 1px solid #000;
    padding-top: 1rem;
    margin-bottom: 1rem;
}

.receipt-total-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: clamp(0.8rem, 3.5vw, 0.9rem);
}

.receipt-total-line.final {
    font-weight: bold;
    font-size: clamp(0.9rem, 4vw, 1rem);
    border-top: 2px dashed #000;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
}

.receipt-footer {
    text-align: center;
    font-size: clamp(0.7rem, 3vw, 0.8rem);
    line-height: 1.3;
}

.thank-you {
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: clamp(0.8rem, 3.5vw, 0.9rem);
    color: #15803d;
}

.return-policy {
    font-size: clamp(0.65rem, 2.5vw, 0.7rem);
    color: #666;
    margin-bottom: 0.5rem;
}

.receipt-note {
    font-style: italic;
    color: #999;
    margin-top: 0.5rem;
    font-size: clamp(0.65rem, 2.5vw, 0.7rem);
}

/* Mobile-specific fixes */
@media (max-width: 480px) {
    .receipt-content {
        padding: 12px;
        margin: 8px;
    }
    
    .receipt-item-header, .receipt-item {
        grid-template-columns: minmax(100px, 2fr) 0.7fr 0.9fr 0.9fr;
        gap: 4px;
        font-size: 0.65rem;
    }
    
    .item-name {
        font-size: 0.65rem;
        line-height: 1.1;
    }
}

.inventory-header, .receipts-header, .reports-header, .barcode-header, .settings-header, .statistics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    width: 100%;
}

.product-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stock-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.stock-badge.in-stock {
    background: #10b98120;
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.stock-badge.low-stock {
    background: #ef444420;
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.low-stock-row {
    background: #ef444410 !important;
    position: relative;
}

.low-stock-row:hover {
    background: #ef444420 !important;
}

.barcode {
    background: var(--bg-primary);
    padding: 6px 10px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    padding: 16px 20px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    z-index: 1001;
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 300px;
}

.toast.success {
    background: var(--success);
    border-left: 4px solid #047857;
}

.toast.error {
    background: var(--danger);
    border-left: 4px solid #dc2626;
}

.toast.warning {
    background: var(--warning);
    border-left: 4px solid #d97706;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.mobile-menu {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.floating-cart-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    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 8px 25px rgba(16, 185, 129, 0.4);
    border: none;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-cart-btn:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.6);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid var(--bg-primary);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.light-theme .loading-overlay {
    background: rgba(248, 250, 252, 0.9);
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(0px);
}

.circular-loader {
    width: 80px;
    height: 80px;
    position: relative;
    margin-bottom: 24px;
}

.circular-loader-inner {
    width: 100%;
    height: 100%;
    border: 3px solid rgba(59, 130, 246, 0.2);
    border-top: 3px solid var(--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: 6px solid transparent;
    border-bottom: 6px solid #8b5cf6;
    border-left: 6px solid #8b5cf6;
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite reverse;
    opacity: 0.7;
}

.loading-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 16px;
    text-align: center;
    letter-spacing: 0.5px;
}

.loading-subtext {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 8px;
    text-align: center;
    font-weight: 400;
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #8b5cf6);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.barcode-generator-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
    overflow-x: hidden;
}

.barcode-input-section {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border);
    margin: 0 auto;
    max-width: 500px;
    width: 100%;
}

.barcode-actions {
    display: flex;
    gap: 12px;
    margin: 24px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.barcode-preview-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    width: 100%;
    overflow-x: hidden;
}

.barcode-preview-card {
    background: var(--bg-secondary);
    padding: 28px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border);
    width: 100%;
}

.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: 12px;
    display: inline-block;
    min-width: 300px;
    border: 1px solid var(--border);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.barcode-hint {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 16px;
    font-style: italic;
}

.search-box {
    position: relative;
    max-width: 300px;
}

.search-box .form-input {
    padding-left: 40px;
}

.search-box::before {
    content: '\f002';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    z-index: 1;
}

.low-stock-card {
    border: 1px solid rgba(239, 68, 68, 0.3);
    position: relative;
}

.low-stock-card::before {
    background: linear-gradient(90deg, #ef4444, #dc2626) !important;
}

.low-stock-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ef4444;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.low-stock-indicator {
    color: var(--danger);
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.cart-badge {
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    margin-left: 8px;
}

.total-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 8px;
}

.items-badge {
    background: var(--accent);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
}

.date-cell, .customer-cell, .cashier-cell, .items-cell, .amount-cell {
    padding: 8px 0;
}

.date {
    font-weight: 600;
    color: var(--text-primary);
}

.time {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.customer-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .table {
        font-size: 0.85rem;
    }
    
    .table th,
    .table td {
        padding: 12px 8px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 4px;
    }
    
    .action-buttons .btn {
        min-width: auto;
        padding: 6px 8px;
    }
    
    .sales-content {
        width: 100%;
        overflow-x: hidden;
    }
    
    .cart-section {
        position: relative;
        top: 0;
    }
    
    .cart-items-container {
        max-height: 300px;
    }
    
    .barcode-input-section {
        padding: 16px;
    }
    
    .barcode-actions {
        flex-direction: column;
    }
    
    .barcode-actions .btn {
        width: 100%;
    }
}

html {
    scroll-behavior: smooth;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

::selection {
    background: rgba(59, 130, 246, 0.3);
    color: var(--text-primary);
}
/* Enhanced Statistics Circular Styles - Big Circles */
.statistics-page {
    animation: fadeIn 0.6s ease-out;
    width: 100%;
    overflow-x: hidden;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 1rem;
}

.analysis-item-circular {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.analysis-item-circular:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--card-shadow);
}

.big-circular-progress {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.big-circular-bg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-tertiary);
    position: relative;
    overflow: hidden;
}

.big-circular-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        var(--success) 0%,
        #22c55e 20%,
        #f59e0b 40%,
        #ef4444 60%,
        #dc2626 80%,
        #b91c1c 100%
    );
    mask: radial-gradient(transparent 55%, black 56%);
    -webkit-mask: radial-gradient(transparent 55%, black 56%);
    transform: rotate(-90deg);
    transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.big-circular-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 80%;
}

.big-circular-name {
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.big-circular-value {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.1;
}

.big-circular-subtext {
    font-size: 0.65rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Specific color variations */
.big-circular-fill.top-products {
    background: conic-gradient(
        var(--success) 0%,
        #22c55e 25%,
        #16a34a 50%,
        #15803d 75%,
        #166534 100%
    );
}

.big-circular-fill.low-products {
    background: conic-gradient(
        #ef4444 0%,
        #dc2626 25%,
        #b91c1c 50%,
        #991b1b 75%,
        #7f1d1d 100%
    );
}

.big-circular-fill.customers {
    background: conic-gradient(
        #8b5cf6 0%,
        #7c3aed 25%,
        #6d28d9 50%,
        #5b21b6 75%,
        #4c1d95 100%
    );
}

.big-circular-fill.days {
    background: conic-gradient(
        #f59e0b 0%,
        #d97706 25%,
        #b45309 50%,
        #92400e 75%,
        #78350f 100%
    );
}

/* Enhanced Stats Grid for Statistics Page */
.stats-grid .stat-card.circular-stat {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding: 20px;
}

.circular-stat-container {
    position: relative;
    width: 100px;
    height: 100px;
}

.circular-stat-bg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-tertiary);
    position: relative;
}

.circular-stat-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        var(--success) 0%,
        #22c55e 20%,
        #f59e0b 40%,
        #ef4444 60%,
        #dc2626 80%,
        #b91c1c 100%
    );
    mask: radial-gradient(transparent 65%, black 66%);
    -webkit-mask: radial-gradient(transparent 65%, black 66%);
    transform: rotate(-90deg);
}

.circular-stat-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 80%;
}

.circular-stat-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1;
}

.circular-stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.section-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Animation for circular progress */
@keyframes circularFill {
    from {
        transform: rotate(-90deg) scale(0);
    }
    to {
        transform: rotate(-90deg) scale(1);
    }
}

.big-circular-fill {
    animation: circularFill 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.circular-stat-fill {
    animation: circularFill 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .analysis-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .big-circular-progress {
        width: 100px;
        height: 100px;
    }
    
    .big-circular-name {
        font-size: 0.7rem;
    }
    
    .big-circular-value {
        font-size: 0.8rem;
    }
    
    .big-circular-subtext {
        font-size: 0.6rem;
    }
    
    .circular-stat-container {
        width: 80px;
        height: 80px;
    }
    
    .circular-stat-value {
        font-size: 0.9rem;
    }
    
    .circular-stat-label {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .analysis-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 12px;
    }
    
    .big-circular-progress {
        width: 90px;
        height: 90px;
    }
    
    .analysis-item-circular {
        padding: 15px;
    }
}

:root {
    --icon-yellow: #f59e0b;
    --icon-green: #10b981;
    --icon-blue: #3b82f6;
    --icon-purple: #8b5cf6;
    --icon-red: #ef4444;
    --icon-orange: #f97316;
}

.section-title i {
    color: var(--icon-yellow);
}

/* Or target specific icons */
.fa-trophy { color: var(--icon-yellow); }
.fa-chart-bar { color: var(--icon-blue); }
.fa-users { color: var(--icon-green); }
.fa-calendar { color: var(--icon-purple); }
.fa-lightbulb { color: var(--icon-orange); }
.fa-exclamation-triangle { color: var(--icon-red); }

/* Security Page Styles */
.security-page {
    animation: fadeIn 0.6s ease-out;
    width: 100%;
    overflow-x: hidden;
}

.security-activities-container {
    max-height: 600px;
    overflow-y: auto;
    padding: 0.5rem;
}

.security-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.security-activity-item:hover {
    border-color: var(--accent);
    transform: translateX(4px);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-description {
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.activity-changes {
    margin-top: 8px;
    padding: 8px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    border-left: 3px solid var(--warning);
}

.change-item {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    padding: 2px 0;
}

.change-item:last-child {
    margin-bottom: 0;
}

.activity-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.activity-user, .activity-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.activity-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 1rem;
}

.activity-stat {
    text-align: center;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.activity-stat .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}

.activity-stat .stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.edited-products-list {
    padding: 1rem;
}

.edited-product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.edited-product-item:hover {
    border-color: var(--accent);
    transform: translateX(4px);
}

.edited-product-item .product-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.edited-product-item .edit-count {
    background: var(--warning);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Edit Count Badge Styles */
.edit-count-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--warning);
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.edit-count-indicator {
    color: var(--warning);
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

/* Cart Container Scroll Fix */
.cart-container {
    max-height: 80vh;
    overflow-y: auto;
}

.cart-items-container {
    max-height: 400px;
    overflow-y: auto;
    width: 100%;
}

/* Mobile Responsive Fixes for Cart */
@media (max-width: 768px) {
    .cart-section {
        position: relative;
        top: 0;
    }
    
    .cart-container {
        max-height: none;
        overflow-y: visible;
    }
    
    .cart-items-container {
        max-height: 300px;
    }
    
    .security-activity-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .activity-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .activity-stats {
        grid-template-columns: 1fr;
    }
}

/* Receipt Print Style Fixes */
@media print {
    .receipt-content {
        border: none !important;
        box-shadow: none !important;
        max-width: 80mm !important;
        padding: 10px !important;
    }
    
    .receipt-item-header, .receipt-item {
        grid-template-columns: 2fr 0.8fr 1fr 1fr !important;
        gap: 4px !important;
        font-size: 12px !important;
    }
    
    .receipt-logo {
        width: 60px !important;
        height: 60px !important;
    }
    
    .receipt-title {
        font-size: 18px !important;
    }
}

/* Sales Page Mobile Cart Scroll Fix */
@media (max-width: 1024px) {
    .sales-content {
        display: flex;
        flex-direction: column;
    }
    
    .cart-section {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .cart-container {
        max-height: 400px;
    }
}