/* StoreKeep - Minimal CSS */
:root {
    --primary: #10b981;
    --primary-hover: #059669;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hide scrollbars globally */
* {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

*::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

body {
    font-family: 'Quantico', sans-serif;
    background-color: #2d2d2d;
    color: white;
    line-height: 1.4;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#app {
    height: 100vh;
    display: none; /* Hidden initially, shown by JavaScript after auth check */
    flex-direction: column;
}

#app.visible {
    display: flex; /* Show when authenticated */
}

.main-content {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 60px; /* Bottom nav height */
    height: calc(100vh - 60px); /* Full height minus bottom nav */
    box-sizing: border-box;
}

/* Header */
.app-header {
    background-color: #2d2d2d;
    border-bottom: 1px solid #404040;
    padding: 10px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 100;
    box-sizing: border-box;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.app-title {
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 200ms ease-out;
}

.app-title:hover {
    color: var(--primary-hover);
}

.sync-status, .user-profile {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    padding: 4px;
    cursor: pointer;
}

.header-actions {
    display: flex;
    gap: 4px;
    align-items: center;
}

.user-name {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    font-family: 'Quantico', sans-serif;
    text-transform: uppercase;
    cursor: pointer;
}

.user-menu {
    position: fixed;
    bottom: 70px;
    right: 20px;
    background-color: #2a2a2a;
    border: 1px solid #555;
    padding: 4px 0;
    z-index: 1000;
    min-width: 120px;
}

.user-menu-item {
    padding: 4px 16px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Quantico', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.user-menu-item:hover {
    background-color: #3a3a3a;
}


.page {
    display: none;
}

.page.active {
    display: block;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    border-bottom: 1px solid #404040;
    position: sticky;
    top: 0;
    background-color: #00000000;
    backdrop-filter: blur(10px);
    z-index: 50;
    padding: 10px 12px;
}

.page-header h2 {
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    color: #ffffff;
    opacity: 0.6;
}

/* Buttons */
.btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 8px 12px;
    font-size: 14px;
    font-family: 'Quantico', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    margin: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.btn-primary {
    background-color: var(--primary);
}

.btn-secondary {
    background-color: #404040;
}

.btn-success {
    background-color: var(--primary);
}

.btn-warning {
    background-color: #8b4513;
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* KPI Sections */
.kpi-section {
    margin-bottom: 30px;
    padding: 10px;
}

.kpi-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-hover);
    margin-bottom: 12px;
    text-transform: uppercase;
    font-family: 'Quantico', sans-serif;
    padding-bottom: 8px;
    letter-spacing:1px;
    border-bottom: 1px solid #ffffff19;
    -webkit-text-stroke: 1px var(--primary);
    text-stroke: 1px var(--primary);
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
}

/* KPI Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.kpi-card {
    background-color: #404040;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Quantico', sans-serif;
    transition: opacity 300ms ease;
}

.kpi-icon {
    font-size: 24px;
    color: var(--primary);
}

.kpi-icon i {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.kpi-content {
    flex: 1;
}

.kpi-value {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
    font-family: 'Quantico', sans-serif;
}

.kpi-label {
    font-size: 12px;
    color: #ccc;
    margin-bottom: 2px;
    font-family: 'Quantico', sans-serif;
}

.kpi-change {
    font-size: 11px;
}

.kpi-change.positive {
    color: var(--primary-hover);
}

.kpi-change.negative {
    color: #ff6b6b;
}

.kpi-change.neutral {
    color: #ccc;
}

/* Activity Section */
.activity-section {
    background-color: #404040;
    padding: 10px;
}

.activity-section h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid #555;
    transition: background-color 200ms ease-out;
}

.activity-item:hover {
    background-color: #353535;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}

.activity-icon i {
    width: 12px;
    height: 12px;
}

.activity-content {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    min-width: 0;
    gap: 12px;
}

.activity-text {
    font-size: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.activity-time {
    font-size: 12px;
    color: #ccc;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Search and Filters */
.search-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    padding: 0px 12px;
}

.search-bar {
    display: flex;
    flex: 1;
    min-width: 200px;
}

.search-bar input {
    flex: 1;
    background-color: #404040;
    border: 1px solid #555;
    color: white;
    padding: 8px;
    font-size: 14px;
    height: 38px;
    box-sizing: border-box;
}

.search-btn {
    background-color: var(--primary-hover);
    border: none;
    color: white;
    padding: 8px 12px;
    cursor: pointer;
    height: 38px;
    width: 38px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-buttons {
    display: flex;
    gap: 10px;
}

.filter-buttons select {
    background-color: #404040;
    border: 1px solid #555;
    color: white;
    padding: 8px;
    font-size: 14px;
    height: 38px;
    box-sizing: border-box;
}

.filter-buttons input[type="date"],
.filter-buttons input[type="number"] {
    background-color: #404040;
    border: 1px solid #555;
    color: white;
    padding: 8px;
    font-size: 14px;
    height: 38px;
    box-sizing: border-box;
}

.filter-buttons input[type="date"]::-webkit-calendar-picker-indicator,
.filter-buttons input[type="date"]::-webkit-inner-spin-button {
    filter: invert(1);
    cursor: pointer;
}

.filter-buttons input[type="number"]::-webkit-inner-spin-button,
.filter-buttons input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    padding: 0px 12px;
}

/* Variant Forms */
.variant-item {
    background: #404040;
    border: 1px solid #555;
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: normal;
    justify-content: normal;
    align-items: stretch;
}

.variant-item .form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.variant-item .form-group {
    flex: 1;
}

.variant-item label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    color: #ccc;
    font-weight: 600;
}

.variant-item input {
    width: 100%;
    background-color: #2a2a2a;
    border: 1px solid #555;
    color: white;
    padding: 8px;
    font-size: 14px;
}

.size-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.size-inputs input {
    flex: 1;
}

.size-inputs span {
    color: #ccc;
    font-weight: bold;
}

/* Media Upload */
.media-upload {
    margin-bottom: 16px;
}

.upload-btn {
    display: inline-block;
    background-color: var(--primary-hover);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    border: none;
}

.upload-btn:hover {
    background-color: #5a7a1f;
}

#productImages,
#editProductImages {
    display: none;
}

.media-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.media-item {
    position: relative;
    cursor: pointer;
}

.media-content {
    position: relative;
    width: 100%;
    height: 100px;
    overflow: hidden;
    border: 1px solid #555;
}

.media-preview img,
.media-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background-color: rgba(220, 53, 69, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 10;
    transition: background-color 0.2s;
}

.media-remove-btn:hover {
    background-color: rgba(220, 53, 69, 1);
}

.media-item:hover .media-remove-btn {
    display: flex;
}

.media-remove-btn i {
    width: 14px;
    height: 14px;
}

.product-card {
    background-color: #404040;
    padding: 0;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    background-color: #555;
}

.product-card:hover .product-checkbox,
.product-card.selected .product-checkbox {
    opacity: 1;
}

.product-card.selected {
    border: 2px solid var(--primary-hover);
}

.product-checkbox {
    position: absolute;
    top: 8px;
    left: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.product-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    appearance: none;
    background-color: #404040;
    border: 2px solid #555;
    border-radius: 3px;
    position: relative;
}

.product-checkbox input[type="checkbox"]:checked {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.product-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20,6 9,17 4,12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Product Sidebar */
.product-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background-color: #404040;
    border-left: 1px solid #555;
    z-index: 200;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-sidebar.open {
    right: 0;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #555;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2d2d2d;
}

.sidebar-header h3 {
    margin: 0;
    color: #e0e0e0;
    font-size: 18px;
}

.sidebar-close {
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-close:hover {
    color: var(--primary-hover);
}

.sidebar-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.product-detail-item {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #555;
}

.product-detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.product-detail-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-detail-value {
    font-size: 14px;
    color: #e0e0e0;
    font-weight: 500;
}

.variant-detail {
    background-color: #353535;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.variant-detail:last-child {
    margin-bottom: 0;
}


.variant-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 12px;
}

.variant-spec {
    color: #ccc;
}

.variant-spec strong {
    color: #e0e0e0;
}

.cumulative-stats {
    background-color: #353535;
    padding: 16px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-label {
    color: #999;
    font-size: 14px;
}

.stat-value {
    color: #e0e0e0;
    font-weight: 600;
    font-size: 14px;
}

/* Stock Modal Styles */
.stock-variant-item {
    background-color: #353535;
    border: 1px solid #555;
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 4px;
}

.stock-variant-header {
    font-weight: 600;
    color: var(--primary-hover);
    margin-bottom: 12px;
    font-size: 14px;
}

.stock-variant-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #ccc;
}

.stock-variant-spec strong {
    color: #e0e0e0;
}

.stock-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.stock-input-group label {
    font-size: 12px;
    color: #999;
    min-width: 80px;
}

.stock-input-group input {
    flex: 1;
    max-width: 120px;
}

/* Enhanced Stock Modal Styles */
.section-description {
    color: #999;
    font-size: 12px;
    margin-top: 4px;
    font-style: italic;
}

.stock-transaction-details {
    background-color: #353535;
    padding: 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    border: 1px solid #555;
}

.stock-variant-transaction {
    background-color: #404040;
    border: 1px solid #555;
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 4px;
}

.stock-variant-transaction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.stock-variant-transaction-header h5 {
    margin: 0;
    color: var(--primary-hover);
    font-size: 14px;
}

.current-stock-display {
    color: #ccc;
    font-size: 12px;
}

.stock-change-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

.stock-change-input {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stock-change-input label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stock-change-input input {
    padding: 6px 8px;
    border: 1px solid #555;
    border-radius: 3px;
    background-color: #2d2d2d;
    color: #e0e0e0;
    font-size: 12px;
}

.stock-change-input input:focus {
    border-color: var(--primary-hover);
    outline: none;
}

.quantity-change {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-change input {
    flex: 1;
    text-align: center;
}

.quantity-change .change-indicator {
    font-size: 12px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.quantity-change .positive {
    color: #4caf50;
}

.quantity-change .negative {
    color: #f44336;
}

.quantity-change .neutral {
    color: #999;
}

.product-image-container {
    width: 100%;
    padding: 0;
    cursor: pointer;
}

.product-image {
    width: 100%;
    height: 120px;
    background-color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    position: relative;
    overflow: hidden;
}

.product-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14%;
    height: 100%;
}

.product-content-wrapper {
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.product-design {
    font-size: 11px;
    color: #999;
    margin-bottom: 4px;
    font-family: monospace;
}

.product-stock {
    font-size: 12px;
    color: #ccc;
    margin-bottom: 4px;
}

.product-variants {
    font-size: 12px;
    color: #ccc;
    margin-bottom: 4px;
}

.product-supplier {
    font-size: 12px;
    color: #ccc;
    margin-bottom: 4px;
}


/* Forms */
.form-section {
    background-color: #404040;
    padding: 10px;
    margin-bottom: 10px;
}

.form-section h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background-color: #555;
    border: 1px solid #666;
    color: white;
    padding: 8px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-hover);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Sale Form */
.sale-form {
    background-color: #404040;
    padding: 10px;
    margin-bottom: 20px;
}

.sale-items {
    margin: 10px 0;
}

.sale-total {
    background-color: #555;
    padding: 10px;
    margin: 10px 0;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.total-row.total-final {
    font-weight: 600;
    font-size: 16px;
    border-top: 1px solid #666;
    padding-top: 8px;
    margin-top: 8px;
}

.sale-actions {
    display: flex;
    gap: 10px;
}

/* Customer List */
.customer-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0px 12px;
}

.customer-card {
    background-color: #404040;
    padding: 10px;
    /* Removed cursor: pointer and hover state - cards don't open anything and show all details directly */
}

.customer-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.customer-details {
    font-size: 12px;
    color: #ccc;
    margin-bottom: 4px;
}

.customer-actions {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

/* Product Detail */
.product-detail-content {
    background-color: #404040;
    padding: 10px;
}

.product-info {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.product-image img {
    background-color: #555;
    object-fit: cover;
}

.product-details h3 {
    margin-bottom: 8px;
}

.product-details p {
    margin-bottom: 4px;
    color: #ccc;
}

/* Variants */
.variants-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.variant-display-item {
    background-color: #555;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}

.variant-info {
    flex: 1;
}

.variant-stock {
    font-size: 12px;
    color: #ccc;
}

/* Media Gallery */
.media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.media-item {
    background-color: #555;
    cursor: pointer;
}

/* Bottom Navigation */
.page-loader {
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    z-index: 200;
    opacity: 0;
    transition: opacity 200ms ease;
}

.page-loader.active {
    opacity: 1;
}

.page-loader-bar {
    height: 100%;
    width: 0%;
    background: var(--primary);
}

@keyframes loader-fill {
    0%   { width: 0%; }
    30%  { width: 50%; }
    70%  { width: 80%; }
    100% { width: 90%; }
}

.page-loader.active .page-loader-bar {
    animation: loader-fill 1.5s ease-out forwards;
}

.bottom-nav {
    background-color: #2d2d2d;
    border-top: 1px solid #404040;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 100;
    box-sizing: border-box;
}

.bottom-nav-left {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.bottom-nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.bottom-nav-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.bottom-nav-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: rgb(16 185 129 / 0.2);
    cursor: pointer;
    margin: 0;
    font-family: 'Quantico', sans-serif;
    transition: color 200ms ease-out;
}

.bottom-nav-title:hover {
    color: var(--primary-hover);
}

.nav-item {
    flex: 0 0 auto;
    background: none;
    border: none;
    color: #cccccc73;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 4px 8px;
    font-family: 'Quantico', sans-serif;
}

.nav-item:hover {
    color: white;
}

.nav-item:hover .nav-label {
    color: white;
}

.nav-item:hover .nav-icon {
    color: white;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active .nav-label {
    color: var(--primary);
}

.nav-item.active .nav-icon {
    color: var(--primary);
}

.nav-icon {
    font-size: 20px;
}

.nav-icon i {
    width: 20px;
    height: 20px;
}

.nav-label {
    font-size: 11px;
    line-height: 1.2;
    text-transform: uppercase;
    font-weight: 700;
    font-family: 'Quantico', sans-serif;
}

/* Settings */
.settings-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settings-section {
    background-color: #404040;
    padding: 10px;
}

.settings-section h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

.user-list {
    margin-bottom: 10px;
}

.data-actions {
    display: flex;
    gap: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    
    .product-info {
        flex-direction: column;
    }
    
    .kpi-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .main-content {
        margin-bottom: 60px;
        height: calc(100vh - 60px);
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        top: 0;
    }
    
    .kpi-grid {
        grid-template-columns: 1fr;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* Data Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    margin-top: 16px;
}

.data-table th,
.data-table td {
    padding: 8px 4px;
    text-align: left;
    border-bottom: 1px solid #4f4f4f;
    font-size: 12px;
    font-family: monospace;
}

.data-table th {
    background: #404040;
    color: var(--white);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
}

.data-table tr:hover {
    background: #3a3a3a;
}

.data-table th:first-child,
.data-table td:first-child {
    padding-left: 12px; /* 8px extra padding (4px base + 8px) */
}

.data-table th:last-child,
.data-table td:last-child {
    text-align: right;
    padding-right: 12px; /* 8px extra padding (4px base + 8px) */
}

.data-table td:last-child > div {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 8px;
    align-items: center;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 12px; 
    margin: 0 2px;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.show {
    display: flex; /* Show when .show class is added */
}

.modal-content {
    background: #404040;
    padding: 20px;
    border-radius: 0;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-large {
    max-width: 800px;
    width: 95%;
    background: #404040;
    padding: 20px;
    border-radius: 0;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #555;
    padding-bottom: 10px;
}

.modal-close {
    background: none;
    border: none;
    color: #ccc;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--white);
}

/* Batch Operations */
.batch-operations-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-hover);
    color: white;
    padding: 12px 16px;
    margin: 16px 12px;
    border-radius: 4px;
}

.batch-info {
    font-weight: bold;
}

.batch-actions {
    display: flex;
    gap: 8px;
}

.batch-actions .btn {
    font-size: 12px;
    padding: 6px 12px;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0 10px 10px 10px;
    margin-top: auto;
}

.product-actions .btn {
    flex: 1;
    font-size: 12px;
    padding: 6px 8px;
}

/* Enhanced variant styling */
.variant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #555;
}

.variant-header h4 {
    margin: 0;
    color: var(--primary-hover);
    font-size: 16px;
}

.variant-section {
    margin-bottom: 20px;
    padding: 12px;
    background-color: #353535;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.variant-section h5 {
    margin: 0 0 12px 0;
    color: var(--primary-hover);
    font-size: 14px;
    font-weight: bold;
}

.margin-display {
    background-color: #2a2a2a !important;
    color: var(--primary-hover) !important;
    font-weight: bold;
}

/* Login Page Styles */
.login-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
    gap: 20px;
    background-color: #006239;
    color: white;
}

.login-form-container {
    min-width: 400px;
}

.login-title {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.login-form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-form-group {
    display: flex;
    flex-direction: column;
}

.login-label {
    display: block;
    margin-bottom: 5px;
    color: white;
}

.login-input {
    width: 100%;
    padding: 8px;
    background-color: rgba(0, 0, 0, 0.1);
    border: 1px solid transparent;
    color: white;
    border-radius: 0;
    outline: none;
    transition: all 200ms ease-out;
}

.login-input:focus {
    background-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 0 1px #088550;
}

.login-input:-webkit-autofill,
.login-input:-webkit-autofill:hover,
.login-input:-webkit-autofill:focus,
.login-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px rgba(0, 0, 0, 0.1) inset !important;
    -webkit-text-fill-color: white !important;
    border: 1px solid transparent !important;
    transition: background-color 5000s ease-in-out 0s;
}

.login-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px rgba(0, 0, 0, 0.2) inset, 0 0 0 1px #088550 !important;
    border: 1px solid transparent !important;
}

.login-input::placeholder {
    color: #ffffff79 !important;
}

.login-checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-checkbox {
    width: 14px;
    height: 14px;
    cursor: pointer;
    accent-color: #006239;
}

.login-checkbox-label {
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    color: rgb(255, 255, 255);
}

.login-button {
    background-color: white;
    color: #006239;
    border: none;
    padding: 8px;
    border-radius: 0;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Quantico', sans-serif;
    transition: all 200ms ease-out;
    font-weight: 700;
    text-transform: uppercase;
}

.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #006239;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

/* Empty State Messages */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #888;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100vh - 200px);
}

.empty-state-error {
    text-align: center;
    padding: 40px;
    color: #f44336;
}

.empty-state-small {
    text-align: center;
    padding: 20px;
    color: #888;
}

.empty-state-variant {
    color: #999;
    text-align: center;
    padding: 20px;
}

/* Customer Card Styles */
.customer-card {
    padding: 16px;
    background-color: #2a2a2a;
    border: 1px solid #555;
}

.customer-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.customer-card-info {
    flex: 1;
}

.customer-card-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-hover);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.customer-card-detail {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 4px;
}

.customer-card-detail-secondary {
    font-size: 14px;
    color: #888;
    margin-bottom: 4px;
}

.customer-card-detail-small {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.customer-card-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}

.customer-card-actions {
    text-align: right;
    min-width: 150px;
}

.customer-card-total-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.customer-card-total-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-hover);
    margin-bottom: 8px;
}

.customer-card-notes {
    padding: 8px;
    background-color: #353535;
    border-radius: 4px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #aaa;
}

.customer-card-buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.customer-card-button-icon {
    width: 14px;
    height: 14px;
}

/* Activity Item Styles */
.activity-item-clickable {
    cursor: pointer;
}

.activity-item-default {
    cursor: default;
}

.activity-icon-colored {
    /* Color will be set inline for dynamic colors */
}

.activity-description {
    font-size: 12px;
    color: #aaa;
    margin-top: 2px;
}

/* Sale Details Styles */
.sale-details-section {
    margin-bottom: 20px;
}

.sale-details-title {
    color: var(--primary-hover);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.sale-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.sale-details-table {
    width: 100%;
    margin-bottom: 20px;
}

.sale-details-product-small {
    color: #888;
}

.sale-details-total-section {
    border-top: 1px solid #555;
    padding-top: 16px;
}

.sale-details-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.sale-details-total-final {
    display: flex;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid #555;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-hover);
}

/* Payment Status Badge */
.payment-status-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    color: white;
}

.payment-status-paid {
    background-color: #4caf50;
}

.payment-status-partial {
    background-color: #ff9800;
}

.payment-status-pending {
    background-color: #f44336;
}

/* Sale Items Table */
.sale-items-table {
    width: 100%;
    margin-bottom: 16px;
}

.sale-item-quantity-input {
    width: 60px;
    padding: 4px;
    background: #2a2a2a;
    border: 1px solid #555;
    color: white;
}

/* Sales Table Styles */
.sales-table {
    width: 100%;
}

/* Activity Icon Dynamic Colors - will be set inline for now */
