@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --primary: #7c3aed;
    --primary-dark: #5b21b6;
    --primary-light: #a855f7;
    --secondary: #2dd4bf;
    --danger: #f87171;
    --warning: #fbbf24;
    --info: #38bdf8;
    --dark: #0f172a;
    --light: #f8fafc;
    --surface: rgba(15, 23, 42, 0.72);
    --border: rgba(255, 255, 255, 0.18);
    --shadow-sm: 0 6px 15px rgba(15, 23, 42, 0.15);
    --shadow: 0 18px 35px rgba(15, 23, 42, 0.2);
    --shadow-lg: 0 25px 50px rgba(15, 23, 42, 0.25);
    --shadow-xl: 0 35px 65px rgba(15, 23, 42, 0.35);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.96rem;
    background: radial-gradient(circle at 20% 20%, rgba(124, 58, 237, 0.25), transparent 55%),
                radial-gradient(circle at 80% 0%, rgba(45, 212, 191, 0.25), transparent 45%),
                linear-gradient(135deg, #050813 0%, #0f172a 55%, #1e1b4b 100%);
    color: #e2e8f0;
    line-height: 1.6;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    inset: 8% auto auto 12%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.25), transparent 65%);
    filter: blur(10px);
    pointer-events: none;
    opacity: 0.8;
}

.app-header {
    background: rgba(8, 12, 24, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.85rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 25px 45px rgba(5, 8, 19, 0.45);
    backdrop-filter: blur(18px);
    border-radius: 1.25rem;
    margin: 0.75rem 0.75rem 1rem;
}

.app-header__left,
.app-header__right {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.app-header__quick {
    flex: 1;
    justify-content: center;
    gap: 1rem;
    display: flex;
    flex-wrap: wrap;
}

.brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: #0f172a;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #312e81, #4338ca, #2563eb);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.brand-text {
    font-size: 1rem;
    letter-spacing: 0.3px;
}

.header-link {
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.2rem;
    transition: color 0.2s ease;
}

.header-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: transparent;
    transition: background 0.2s ease;
}

.header-link:hover,
.header-link:focus {
    color: #1d4ed8;
}

.header-link:hover::after,
.header-link:focus::after {
    background: rgba(37, 99, 235, 0.4);
}

.header-link.active {
    color: #1d4ed8;
}

.header-link.active::after {
    background: #1d4ed8;
}

.user-chip {
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8fafc;
    color: #0f172a;
}

.user-chip:focus {
    outline: none;
    box-shadow: 0 0 0 0.15rem rgba(59, 130, 246, 0.25);
}

.user-initial {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e0e7ff;
    color: #312e81;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.user-name {
    font-weight: 600;
}

/* Navbar Styles */
.navbar {
    background: rgba(30, 41, 59, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff !important;
    letter-spacing: -0.5px;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
}

.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.sidebar {
    min-height: 100vh;
    background: linear-gradient(180deg, rgba(12, 18, 32, 0.95), rgba(7, 11, 26, 0.85));
    backdrop-filter: blur(24px);
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 1rem;
}

.sidebar .nav-link {
    padding: 0.85rem 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    border-radius: 0.75rem;
    margin: 0.25rem 0.75rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateX(4px);
}

.sidebar .nav-link.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.sidebar .nav-link i {
    font-size: 1.1rem;
    width: 20px;
}

main {
    min-height: calc(100vh - 72px);
    background: transparent;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.25rem;
    box-shadow: var(--shadow-xl);
    transition: all 0.3s ease;
}

.card {
    background: rgba(13, 18, 31, 0.75);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 1.15rem;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    color: #e2e8f0;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.card-header {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    padding: 1.2rem 1.4rem;
    border-radius: 1.15rem 1.15rem 0 0;
    color: #f8fafc;
}

main,
.card-body,
.form-label,
.table,
.table td,
.table th,
label,
p,
span,
small {
    color: #e2e8f0;
}

.text-muted {
    color: rgba(226, 232, 240, 0.75) !important;
}

.form-label,
label {
    color: rgba(248, 250, 252, 0.92) !important;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.form-control,
.form-select {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: #f8fafc;
}

.form-control:focus,
.form-select:focus {
    background: rgba(15, 23, 42, 0.8);
    border-color: var(--primary-light);
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.25);
}

.form-control::placeholder,
.form-select option {
    color: rgba(226, 232, 240, 0.65);
}

.modal-content {
    background: rgba(13, 18, 31, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: #f8fafc;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(12px);
}

.modal-header,
.modal-footer {
    border-color: rgba(148, 163, 184, 0.2);
}

.modal-title {
    color: #f8fafc;
    font-weight: 600;
}

.btn-close {
    filter: invert(1) grayscale(100%);
    opacity: 0.75;
}

.btn-close:hover {
    opacity: 1;
}

.list-group-item {
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.list-group-item span,
.list-group-item strong,
.list-group-item small {
    color: inherit;
}

.table thead {
    background: rgba(248, 250, 252, 0.05);
    color: #f8fafc;
}

.table tbody tr:hover {
    background: rgba(148, 163, 184, 0.08);
}

.table td {
    border-color: rgba(148, 163, 184, 0.2);
}
.table {
    margin-bottom: 0;
}

.table {
    margin-bottom: 0;
    --bs-table-bg: rgba(13, 18, 31, 0.7);
    --bs-table-striped-bg: rgba(148, 163, 184, 0.08);
    --bs-table-striped-color: #e2e8f0;
    --bs-table-hover-bg: rgba(124, 58, 237, 0.08);
    --bs-table-hover-color: #f8fafc;
    --bs-table-color: #e2e8f0;
    --bs-table-border-color: rgba(148, 163, 184, 0.25);
    color: #e2e8f0;
}

.table thead {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1;
    box-shadow: inset 0 -1px 0 rgba(15, 23, 42, 0.25);
}

.table thead th,
.table thead td {
    border: none;
    padding: 1rem 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    color: #f8fafc !important;
    text-shadow: 0 1px 3px rgba(15, 23, 42, 0.35);
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background: rgba(79, 70, 229, 0.05);
    transform: scale(1.01);
}

.table td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
}

.pos-shell {
    background: rgba(8, 12, 24, 0.92);
    border-radius: 1.4rem;
    padding: 2rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: var(--shadow-lg);
    color: #f8fafc;
}

.pos-header h2 {
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #f8fafc;
}

.pos-full-main {
    flex: 1 1 auto;
    width: 100%;
    padding-bottom: 2rem !important;
}

.pos-panel {
    background: rgba(10, 14, 28, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 1.2rem;
    padding: 1.35rem;
    box-shadow: var(--shadow);
    color: #e2e8f0;
}

.pos-product-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.pos-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.pos-product-thumb {
    height: 120px;
    width: 100%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pos-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pos-product-card:hover .pos-product-thumb img {
    transform: scale(1.05);
}

.pos-product-meta {
    padding: 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pos-product-name {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: #f8fafc;
}

.pos-product-price {
    font-size: 1.1rem;
    color: var(--secondary);
}

.pos-product-grid {
    padding-right: 0.5rem;
}

.cart-panel {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cart-panel .table-responsive {
    padding-right: 0.35rem;
    margin-top: 0;
    max-height: 350px;
    overflow-y: auto;
}

.payment-panel {
    margin-top: auto;
}

.cart-panel .table {
    --bs-table-bg: transparent;
    --bs-table-color: #f8fafc;
    --bs-table-border-color: rgba(148, 163, 184, 0.25);
    color: #f8fafc;
}

.cart-panel .table thead {
    background: rgba(15, 17, 30, 0.95);
    color: #f8fafc;
    position: sticky;
    top: 0;
    z-index: 3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-panel .table thead th {
    box-shadow: inset 0 -1px 0 rgba(148, 163, 184, 0.25);
    color: #f8fafc;
    font-weight: 600;
}

.cart-panel .table tbody tr:last-child td {
    border-bottom: none;
}

.cart-panel .table td {
    padding: 0.75rem 0.5rem;
    color: #f8fafc;
}

.cart-panel table tbody tr + tr {
    border-top: 1px dashed rgba(148, 163, 184, 0.2);
}

.cart-panel.cart-highlight {
    animation: cartPulse 0.6s ease;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

@keyframes cartPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(37, 99, 235, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

.pos-summary-box {
    background: rgba(15, 23, 42, 0.85);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    gap: 0.35rem;
    display: flex;
    flex-direction: column;
}

.pos-summary-box .total-line {
    border-top: 1px dashed rgba(148, 163, 184, 0.3);
    padding-top: 0.5rem;
    margin-top: 0.35rem;
}

.pos-panel .form-label {
    font-weight: 600;
}

.pos-panel textarea,
.pos-panel input,
.pos-panel select {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(148, 163, 184, 0.35);
    color: #f8fafc;
}

/* Modern Button Styles */
.btn {
    padding: 0.65rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
}

.btn-success {
    background: linear-gradient(135deg, var(--secondary), #059669);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #dc2626);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
}

/* Form Inputs */
.form-control,
.form-select {
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.15);
}

.form-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

/* Badges */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Stat Cards */
.stat-card {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(15, 23, 42, 0.65));
    border: 1px solid rgba(167, 139, 250, 0.25);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 18px 35px rgba(5, 8, 19, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 110px;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 0%, rgba(45, 212, 191, 0.2), transparent 60%);
    opacity: 0.6;
    pointer-events: none;
}

.stat-card > * {
    position: relative;
    z-index: 1;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 30px 60px rgba(5, 8, 19, 0.45);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    box-shadow: 0 12px 24px rgba(124, 58, 237, 0.4);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: rgba(248, 250, 252, 0.75);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.security-tips {
    color: rgba(248, 250, 252, 0.85) !important;
}

.security-tips li {
    color: inherit;
    position: relative;
    padding-left: 1.15rem;
}

.security-tips li::before {
    content: '';
    position: absolute;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 999px;
    background: var(--secondary);
    left: 0;
    top: 0.55rem;
    box-shadow: 0 0 8px rgba(45, 212, 191, 0.5);
}

.footer {
    background: rgba(8, 12, 24, 0.95) !important;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    color: #f8fafc;
    box-shadow: 0 -10px 30px rgba(5, 8, 19, 0.35);
}

.footer .text-muted {
    color: rgba(248, 250, 252, 0.85) !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.5s ease-out;
}

/* Alert Styles */
.alert {
    border-radius: 0.75rem;
    border: none;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow);
    background: rgba(15, 23, 42, 0.85);
    color: #f8fafc;
    border-left: 4px solid rgba(148, 163, 184, 0.4);
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.45));
    border-left: 4px solid var(--secondary);
    color: #ecfdf5;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.9), rgba(220, 38, 38, 0.65));
    border-left: 4px solid var(--danger);
    color: #fee2e2;
}

/* Modal */
.modal-content {
    border-radius: 1.25rem;
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), transparent);
}

.modal-body {
    padding: 1.5rem;
}

/* Pagination */
.pagination .page-link {
    border-radius: 0.5rem;
    margin: 0 0.25rem;
    border: 2px solid var(--border);
    color: var(--primary);
    font-weight: 600;
}

.pagination .page-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

/* Loading States */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* Responsive Utilities */
@media (max-width: 768px) {
    body {
        font-size: 0.9rem;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .card-header h5 {
        font-size: 1rem;
    }
    
    .table {
        font-size: 0.85rem;
    }
    
    .table thead th,
    .table td {
        padding: 0.75rem 0.85rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .sidebar .nav-link {
        padding: 0.75rem 1rem;
        margin: 0.2rem 0.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .stat-value {
        font-size: 1.75rem;
    }
    
    .card {
        border-radius: 1rem;
    }
    
    main {
        padding: 1rem !important;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Print Styles */
@media print {
    body {
        background: #fff !important;
    }
    
    .sidebar,
    .navbar,
    .btn,
    .card:hover {
        box-shadow: none !important;
    }
    
    .stat-card,
    .card {
        border: 1px solid #dee2e6;
        page-break-inside: avoid;
    }
}

/* Light Mode Overrides */
[data-theme="light"] {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #14b8a6;
    --dark: #f8fafc;
    --light: #0f172a;
    --surface: rgba(255, 255, 255, 0.9);
    --border: rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] body {
    background: #f1f5f9;
    color: #1e293b;
}

[data-theme="light"] body::before {
    opacity: 0.4;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.4), transparent 65%);
}

[data-theme="light"] .app-header,
[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.9) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .navbar-brand,
[data-theme="light"] .navbar-nav .nav-link,
[data-theme="light"] .brand-pill {
    color: #1e293b !important;
}

[data-theme="light"] .navbar-nav .nav-link:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #0f172a !important;
}

[data-theme="light"] .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .navbar-toggler-icon {
    filter: invert(1);
}

[data-theme="light"] .sidebar {
    background: #fff;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .sidebar .nav-link {
    color: #475569;
}

[data-theme="light"] .sidebar .nav-link:hover {
    background: #f1f5f9;
    color: #1e293b !important;
}

[data-theme="light"] .sidebar .nav-link:hover i {
    color: #1e293b !important;
}

[data-theme="light"] .sidebar .nav-link.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
}

[data-theme="light"] .card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: #1e293b !important;
}

[data-theme="light"] .card-header {
    background: #f8fafc !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    color: #1e293b !important;
}

[data-theme="light"] main,
[data-theme="light"] .card-body {
    color: #334155 !important;
}

[data-theme="light"] .form-label,
[data-theme="light"] label,
[data-theme="light"] .form-text,
[data-theme="light"] .input-group-text {
    color: #334155 !important;
}

[data-theme="light"] .form-control,
[data-theme="light"] .form-select {
    color: #1e293b !important;
    background-color: #fff !important;
    border-color: #cbd5e1 !important;
}

[data-theme="light"] .form-control::placeholder {
    color: #94a3b8 !important;
    opacity: 1;
}

[data-theme="light"] .form-select option {
    color: #1e293b;
    background-color: #fff;
}

[data-theme="light"] p,
[data-theme="light"] span:not(.badge),
[data-theme="light"] small,
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
    color: #334155 !important;
}

[data-theme="light"] .text-muted {
    color: #64748b !important;
}



[data-theme="light"] .form-control:focus,
[data-theme="light"] .form-select:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
    color: #1e293b;
}

[data-theme="light"] .form-control::placeholder {
    color: #94a3b8;
}

[data-theme="light"] .modal-content {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1e293b;
}

[data-theme="light"] .modal-header,
[data-theme="light"] .modal-footer {
    border-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .modal-title {
    color: #1e293b;
}

[data-theme="light"] .btn-close {
    filter: none;
}

[data-theme="light"] .list-group-item {
    background: #fff !important;
    border-color: rgba(0, 0, 0, 0.05) !important;
    color: #1e293b !important;
}

[data-theme="light"] .table thead {
    background: #f1f5f9 !important;
    color: #475569 !important;
    box-shadow: none !important;
    border-bottom: 2px solid #e2e8f0 !important;
}

[data-theme="light"] .table thead th,
[data-theme="light"] .table th {
    color: #1e293b !important;
    background-color: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

[data-theme="light"] .table tbody tr:hover {
    background: #f1f5f9 !important;
    color: #1e293b !important;
}

[data-theme="light"] .table tbody tr:hover td,
[data-theme="light"] .table tbody tr:hover th {
    color: #1e293b !important;
}

[data-theme="light"] .table td {
    border-color: #e2e8f0;
    color: #1e293b !important;
}

[data-theme="light"] .table {
    --bs-table-bg: #fff;
    --bs-table-striped-bg: #f8fafc;
    --bs-table-striped-color: #1e293b;
    --bs-table-hover-bg: #f1f5f9;
    --bs-table-hover-color: #1e293b;
    --bs-table-color: #1e293b;
    background-color: #fff !important;
    color: #1e293b !important;
}

/* POS Light Mode Overrides */
[data-theme="light"] .pos-shell {
    background: #f1f5f9 !important; /* Darker gray (Slate 100) */
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
}

[data-theme="light"] .pos-header h2 {
    color: #0f172a !important;
}

[data-theme="light"] .pos-panel {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #1e293b !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .pos-product-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .pos-product-card:hover {
    background: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .pos-product-thumb {
    background: #e2e8f0 !important; /* Darker gray for image placeholder */
    border-bottom-color: #cbd5e1 !important;
}

[data-theme="light"] .pos-product-name {
    color: #0f172a !important;
}

[data-theme="light"] .pos-product-price {
    color: var(--primary) !important;
}

[data-theme="light"] .cart-panel .table {
    --bs-table-color: #1e293b !important;
    color: #1e293b !important;
}

[data-theme="light"] .cart-panel .table thead {
    background: #e2e8f0 !important; /* Darker header background */
    color: #0f172a !important;
}

[data-theme="light"] .cart-panel .table thead th {
    color: #0f172a !important;
    box-shadow: inset 0 -1px 0 #cbd5e1 !important;
    font-weight: 700 !important;
}

[data-theme="light"] .cart-panel .table td {
    color: #1e293b !important;
}

[data-theme="light"] .cart-panel table tbody tr + tr {
    border-top-color: #e2e8f0 !important;
}

[data-theme="light"] .pos-summary-box {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #1e293b !important;
}

[data-theme="light"] .pos-summary-box .total-line {
    border-top-color: #cbd5e1 !important;
}

[data-theme="light"] .pos-panel input,
[data-theme="light"] .pos-panel select,
[data-theme="light"] .pos-panel textarea {
    background: #fff !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
}

[data-theme="light"] .pos-panel input:focus,
[data-theme="light"] .pos-panel select:focus,
[data-theme="light"] .pos-panel textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.1) !important;
}

[data-theme="light"] .pos-panel .text-muted {
    color: #64748b !important;
}

/* Footer Light Mode Overrides */
[data-theme="light"] .footer {
    background: #fff !important;
    border-top-color: #e2e8f0 !important;
    color: #1e293b !important;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .footer .text-muted {
    color: #64748b !important;
}



