*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;
  overflow-x: hidden;
  /* Prevent global horizontal scroll */

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}

a:hover {
  color: #535bf2;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background-color: #1a1a1a;
  /* Match the dark theme background usually */
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}

button:hover {
  border-color: #646cff;
}

button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }

  a:hover {
    color: #747bff;
  }

  button {
    background-color: #f9f9f9;
  }
}:root {
  --gold-primary: #d4af37;
  --gold-light: #f9e27d;
  --gold-dark: #aa8928;
  --black-bg: #0a0a0a;
  --black-card: #141414;
  --black-border: #2a2a2a;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --danger: #ff4d4d;
  --success: #00e676;
  --glass-bg: rgba(20, 20, 20, 0.8);
  --glass-border: rgba(212, 175, 55, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  background-color: var(--black-bg);
  color: var(--text-primary);
  overflow-x: hidden;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.gold-gradient-text {
  background: linear-gradient(45deg, var(--gold-dark), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
}

.btn-primary {
  background: linear-gradient(45deg, var(--gold-dark), var(--gold-primary));
  color: #000;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--black-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}
.layout-container {
    display: flex;
    min-height: 100vh;
}

.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    padding: 0 20px;
    align-items: center;
    justify-content: space-between;
    z-index: 900;
    border-radius: 0;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 40px;
    transition: margin-left 0.3s ease;
}

@media (max-width: 768px) {
    .mobile-header {
        display: flex;
    }

    .main-content {
        margin-left: 0;
        padding: 80px 15px 20px;
        /* Reduced padding for mobile */
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
}.dashboard-view {
    animation: fadeIn 0.5s ease;
}

.view-header {
    margin-bottom: 30px;
}

.view-header h1 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.view-header p {
    color: var(--text-secondary);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 480px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}

.metric-card {
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-box.gold {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-primary);
}

.icon-box.blue {
    background: rgba(0, 122, 255, 0.1);
    color: #007aff;
}

.icon-box.red {
    background: rgba(255, 77, 77, 0.1);
    color: var(--danger);
}

.icon-box.green {
    background: rgba(0, 230, 118, 0.1);
    color: var(--success);
}

.metric-info .label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.metric-info .value {
    font-size: 1.5rem;
    font-weight: 700;
}

.trend {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 2px;
}

.trend.pos {
    color: var(--success);
}

.charts-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.chart-wrapper {
    padding: 25px;
    height: 400px;
}

.recent-activity {
    padding: 25px;
}

.chart-header h3 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--gold-light);
}

.chart-body {
    height: calc(100% - 40px);
    overflow: hidden;
    position: relative;
    width: 100%;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.alert-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
}

.alert-item.warn {
    background: rgba(255, 77, 77, 0.05);
    border: 1px solid rgba(255, 77, 77, 0.1);
    color: var(--danger);
}

.alert-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.alert-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.loader-container {
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .charts-container {
        grid-template-columns: 1fr;
    }
}.inventory-view {
    animation: fadeIn 0.5s ease;
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.filters-bar {
    padding: 15px 25px;
    margin-bottom: 20px;
}



.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 8px;
    max-width: 400px;
}

.search-box input {
    background: none;
    border: none;
    color: #fff;
    outline: none;
    width: 100%;
}

.table-container {
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 15px 20px;
    color: var(--gold-light);
    border-bottom: 1px solid var(--black-border);
    font-size: 0.9rem;
}

td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--black-border);
    vertical-align: middle;
}

tr {
    pointer-events: auto;
}

tr:last-child td {
    border-bottom: none;
}

.product-img-thumb {
    width: 50px;
    height: 50px;
    background: var(--black-bg);
    border: 1px solid var(--black-border);
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: var(--text-secondary);
}

.product-img-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-name {
    font-weight: 600;
}

.product-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.price {
    font-weight: 700;
    color: var(--gold-primary);
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.ok {
    background: rgba(0, 230, 118, 0.1);
    color: var(--success);
}

.status-badge.low {
    background: rgba(255, 152, 0, 0.1);
    color: #ff9800;
}

.status-badge.out {
    background: rgba(255, 77, 77, 0.1);
    color: var(--danger);
}

.actions {
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 10;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: 1px solid var(--black-border);
    background: var(--black-bg);
    transition: all 0.2s;
    position: relative;
    z-index: 100;
    pointer-events: auto;
}

.action-btn.edit {
    color: var(--gold-primary);
}

.action-btn.edit:hover {
    background: var(--gold-primary);
    color: #000;
}

.action-btn.delete {
    color: var(--danger);
}

.action-btn.delete:hover {
    background: var(--danger);
    color: #fff;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.modal-content {
    width: 100%;
    max-width: 800px;
    padding: 30px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.img-input-group input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--black-border);
    border-radius: 8px;
    color: #fff;
    outline: none;
}

.form-group input:focus,
.img-input-group input:focus {
    border-color: var(--gold-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.images-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.img-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.img-input-group span {
    width: 25px;
    color: var(--gold-primary);
    font-weight: bold;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--black-border);
}

.image-upload-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.upload-box {
    border: 2px dashed var(--black-border);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.2s;
    color: var(--text-secondary);
}

.upload-box:hover {
    border-color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.05);
    color: #fff;
}

.previews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.preview-item {
    aspect-ratio: 1/1;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--black-border);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-img {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 77, 77, 0.8);
    border: none;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.preview-item .badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gold-primary);
    color: #000;
    font-size: 0.6rem;
    font-weight: 800;
    text-align: center;
    padding: 2px 0;
}

.btn-secondary {
    background: none;
    border: 1px solid var(--black-border);
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .inventory-view {
        padding: 10px;
    }

    .view-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        margin-bottom: 20px;
    }

    .view-header div {
        text-align: center;
    }

    .view-header .btn-primary {
        width: 100%;
        justify-content: center;
    }

    .filters-bar {
        padding: 15px;
    }

    .search-box {
        max-width: 100%;
    }

    .table-container {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
        border: 1px solid var(--black-border);
        margin-bottom: 20px;
    }

    th,
    td {
        padding: 12px 10px;
        font-size: 0.85rem;
        white-space: nowrap;
        /* Prevent wrapping causing weird heights */
    }

    .product-img-thumb {
        width: 40px;
        height: 40px;
    }

    /* Hide less important columns on very small screens if desired, 
       or keep horizontal scroll */
    /* 
    th:nth-child(3), td:nth-child(3),
    th:nth-child(2) .product-desc {
        display: none; 
    } 
    */

    /* Modal Responsive */
    .modal-content {
        padding: 20px;
        width: 95%;
        max-height: 85vh;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
        /* Keep price/stock side-by-side */
    }

    .previews-grid {
        grid-template-columns: repeat(3, 1fr);
        /* 3 cols is fine for mobile too usually */
    }

    .modal-footer {
        flex-direction: column-reverse;
        /* Stack buttons, primary on top */
        gap: 10px;
    }

    .modal-footer button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
        /* Stack price and stock on very small screens */
    }

    .view-header h1 {
        font-size: 1.5rem;
    }

    .previews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Multi-size styles */
.full-width-sizes {
    grid-column: 1 / -1;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--black-border);
}

.sizes-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

.form-group select option {
    background: #000;
    color: #fff;
}

.size-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--black-border);
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.size-item.active {
    border-color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.1);
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    cursor: pointer;
}

.checkbox-wrapper input {
    cursor: pointer;
}

.qty-input {
    width: 100%;
    padding: 5px;
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--black-border);
    border-radius: 4px;
    color: #fff;
    text-align: center;
    color-scheme: dark;
}

.qty-input:focus {
    border-color: var(--gold-primary);
    background: #000;
    color: #fff;
    outline: none;
}

.sc-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--black-bg);
    border: 1px solid var(--black-border);
    font-size: 0.8rem;
    color: var(--text-secondary);
}.login-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 100%);
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    text-align: center;
}

.login-header h1 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.login-header p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group .icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold-primary);
}

.input-group input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--black-border);
    border-radius: 8px;
    color: #fff;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: var(--gold-primary);
}

.error-message {
    color: var(--danger);
    margin-bottom: 20px;
    font-size: 0.85rem;
}

form button {
    width: 100%;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}.pos-view {
    height: calc(100vh - 120px);
}

.pos-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 25px;
    height: 100%;
}

.pos-left {
    display: flex;
    flex-direction: column;
}

.products-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    overflow-y: auto;
    padding-right: 10px;
    margin-top: 20px;
}

.pos-product-card {
    cursor: pointer;
    transition: transform 0.2s;
    overflow: hidden;
}

.pos-product-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-primary);
}

.card-img {
    height: 140px;
    background: var(--black-bg);
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-info {
    padding: 12px;
}

.card-info .name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-info .footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.card-info .stock-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.8rem;
}

.card-info .reserved-tag {
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: bold;
}

.card-info .price {
    color: var(--gold-primary);
    font-weight: 700;
}

.card-info .stock {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* POS Right (Cart) */
.pos-right {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    /* Changed back to hidden */
    height: 100%;
    /* Ensure it fills height */
}

/* Scrollable area for Cart + Options */
.pos-scroll-area {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid var(--black-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.cart-items {
    /* flex: 1; Removed */
    /* overflow-y: auto; Removed */
    padding: 15px;
    flex-shrink: 0;
    /* Let it grow */
}

.empty-cart {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-bottom: 1px solid var(--black-border);
}

.item-details {
    flex: 1;
}

.item-details .name {
    font-size: 0.85rem;
    font-weight: 600;
}

.item-details .unit-price {
    font-size: 0.8rem;
    color: var(--gold-primary);
}

.item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 6px;
}

.item-qty button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
}

.remove-btn {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
}

.sale-options {
    padding: 20px;
    border-top: 1px solid var(--black-border);
}

.section-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.type-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.type-toggle button {
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--black-border);
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.type-toggle button.active {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.customer-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.customer-form input,
.customer-form textarea {
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--black-border);
    border-radius: 6px;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
    width: 100%;
    /* Full width */
    box-sizing: border-box;
    /* Include padding in width */
    resize: none;
    /* Prevent resize on textareas */
}

.payment-method-select {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.payment-method-select select {
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--black-border);
    border-radius: 6px;
    color: #fff;
    outline: none;
}

.input-with-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--gold-border);
    border-radius: 6px;
}

.input-with-icon input {
    border: none !important;
    background: none !important;
    padding-left: 0 !important;
}

.gold-text {
    color: var(--gold-primary);
    font-weight: bold;
}

.pos-total {
    padding: 20px;
    background: var(--card-bg);
    /* Opaque background */
    border-top: 1px solid var(--gold-border);
    flex-shrink: 0;
    /* Sticky footer */
    z-index: 10;
}

.pos-total .row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.pos-total .grand-total {
    font-size: 1.3rem;
    font-weight: 800;
    margin-top: 5px;
    margin-bottom: 20px;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
}

.sale-success-view {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 60vh;
    gap: 20px;
    text-align: center;
    padding: 40px;
}

@media (max-width: 1200px) {
    .pos-grid {
        grid-template-columns: 1fr;
    }

    .pos-right {
        height: auto;
        max-height: 50vh;
        /* Restrict height on mobile */
        overflow-y: auto;
        /* Enable vertical scroll */
        display: flex;
        flex-direction: column;
    }

    .cart-items {
        overflow-y: auto;
        flex: 1;
        /* Allow items to take available space */
        min-height: 150px;

        /* Ensure at least some space is visible */
    }
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.ticket-modal,
.confirm-modal {
    background: var(--card-bg);
    border: 1px solid var(--gold-border);
    padding: 30px;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    text-align: center;
}

.ticket-header h2 {
    color: var(--gold-primary);
    font-size: 1.8rem;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.ticket-subtitle {
    font-size: 0.8rem;
    letter-spacing: 3px;
    margin-bottom: 20px;
    border-bottom: 1px dashed var(--text-secondary);
    padding-bottom: 15px;
}

.ticket-body {
    text-align: left;
    margin-bottom: 25px;
    font-family: 'Courier New', Courier, monospace;
}

.ticket-items {
    margin: 15px 0;
    border-bottom: 1px dashed var(--text-secondary);
    padding-bottom: 10px;
}

.ticket-item-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.ticket-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 10px;
}

.ticket-footer,
.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.warning-text {
    color: var(--accent);
    font-size: 0.9rem;
    margin-top: 5px;
    margin-bottom: 20px;
}

.btn-secondary {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--gold-border);
    color: #fff;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-danger {
    padding: 10px 20px;
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid var(--danger);
    color: var(--danger);
    cursor: pointer;
    border-radius: 8px;
}

.btn-success {
    padding: 10px 20px;
    background: rgba(4, 219, 0, 0.2);
    border: 1px solid var(--success);
    color: var(--success);
    cursor: pointer;
    border-radius: 8px;
}

/* Scroll adjustments */
.pos-scroll-area::-webkit-scrollbar {
    width: 6px;
}

.pos-scroll-area::-webkit-scrollbar-thumb {
    background: var(--gold-border);
    border-radius: 4px;
}.sales-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.sales-view .table-container {
    height: fit-content;
}

.type-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
}

.type-tag.SHIPPING {
    color: #007aff;
    border: 1px solid rgba(0, 122, 255, 0.2);
}

.type-tag.LOCAL {
    color: var(--gold-primary);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.type-tag.RESERVATION {
    color: orange;
    border: 1px solid rgba(255, 165, 0, 0.2);
}

.total {
    font-weight: 700;
    color: var(--gold-light);
}

.action-btn {
    background: none;
    border: 1px solid var(--black-border);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.action-btn:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

/* Sale Details Side Panel */
.sale-details {
    position: fixed;
    right: 20px;
    top: 100px;
    bottom: 20px;
    width: 350px;
    z-index: 100;
    padding: 25px;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--black-border);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.details-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.customer-details {
    margin-top: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.customer-details .label {
    margin-bottom: 5px;
}

.address {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 5px;
    font-style: italic;
}

.items-list {
    flex: 1;
    overflow-y: auto;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--black-border);
    font-size: 0.85rem;
}

.details-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--gold-primary);
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.1rem;
}

.total-val {
    color: var(--gold-primary);
}

.label {
    font-size: 0.75rem;
    color: var(--gold-primary);
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

@media (max-width: 1400px) {
    .sale-details {
        position: fixed;
        inset: 20px;
        width: auto;
        max-width: 500px;
        margin: auto;
    }
}

/* Reservation Modal Styles */
.reservation-modal {
    background: var(--card-bg);
    border: 1px solid var(--gold-border);
    padding: 0;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--black-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: var(--gold-primary);
    font-size: 1.2rem;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.info-section {
    margin-bottom: 20px;
}

.info-section h3,
.actions-form h3 {
    font-size: 0.9rem;
    color: var(--gold-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-section p {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #ddd;
}

.item-list {
    list-style: none;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 10px;
}

.item-list li {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

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

.financial-section {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--black-border);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stat span:first-child {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.stat span:last-child {
    font-size: 1.1rem;
    font-weight: bold;
}

.divider {
    border: 0;
    border-top: 1px dashed var(--text-secondary);
    margin: 20px 0;
    opacity: 0.3;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 5px;
    color: var(--text-secondary);
}

.input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--black-border);
    padding: 10px;
    border-radius: 6px;
}

.input-group input {
    background: none;
    border: none;
    color: #fff;
    width: 100%;
    outline: none;
}

.actions-form select {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--black-border);
    border-radius: 6px;
    color: #fff;
    outline: none;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--black-border);
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

/* Status Badges */
.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-badge.reserved {
    background: rgba(255, 165, 0, 0.15);
    color: orange;
    border: 1px solid orange;
}

.status-badge.paid {
    background: rgba(0, 122, 255, 0.15);
    color: #007aff;
    border: 1px solid #007aff;
}

.status-badge.shipped {
    background: rgba(147, 51, 234, 0.15);
    color: #9333ea;
    border: 1px solid #9333ea;
}

.status-badge.completed,
.status-badge.delivered {
    background: rgba(0, 255, 0, 0.15);
    color: #00ff00;
    border: 1px solid #00ff00;
}

.status-badge.cancelled {
    background: rgba(255, 0, 0, 0.15);
    color: #ff0000;
    border: 1px solid #ff0000;
}

.clickable-row {
    cursor: pointer;
    transition: background 0.2s;
}

.clickable-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.danger-text {
    color: var(--danger);
}

.success-text {
    color: var(--success);
}.sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    border-radius: 0;
    border-right: 1px solid var(--black-border);
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 30px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-close {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

.user-info {
    padding: 10px 20px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--black-border);
}

.avatar {
    width: 45px;
    height: 45px;
    background: var(--gold-dark);
    color: #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.user-info .name {
    font-weight: 600;
    font-size: 0.95rem;
}

.user-info .role {
    font-size: 0.75rem;
    color: var(--gold-primary);
    text-transform: uppercase;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 25px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.nav-link:hover {
    color: var(--gold-light);
    background: rgba(212, 175, 55, 0.05);
}

.nav-link.active {
    color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.1);
    border-right: 3px solid var(--gold-primary);
}

.nav-link .icon svg {
    width: 22px;
    height: 22px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--black-border);
}

.logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 77, 77, 0.1);
    color: var(--danger);
    border: 1px solid rgba(255, 77, 77, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: var(--danger);
    color: #fff;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .mobile-close {
        display: block;
    }

    .sidebar-overlay.show {
        display: block;
    }
}.login-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 100%);
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    text-align: center;
}

.login-header h1 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.login-header p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group .icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold-primary);
}

.input-group input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--black-border);
    border-radius: 8px;
    color: #fff;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: var(--gold-primary);
}

.error-message {
    color: var(--danger);
    margin-bottom: 20px;
    font-size: 0.85rem;
}

form button {
    width: 100%;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}