/* ==========================================================================
   CSS Variables and Theme Configuration
   ========================================================================== */

/* Light mode variables */
@media (prefers-color-scheme: light) {
    :root {
        --background-color: var(--bs-body-bg);
        --text-color: var(--bs-body-color);
        --navbar-background-color: var(--bs-secondary-bg);
        --navbar-text-color: var(--bs-light);
        --card-background-color: var(--bs-body-bg);
        --table-background-color: var(--bs-light-bg-subtle);
        --table-border-color: var(--bs-border-color);
        --table-header-background-color: var(--bs-warning);
        --table-header-text-color: var(--bs-dark);
        --table-row-even-background-color: var(--bs-light-bg-subtle);
        --table-row-odd-background-color: var(--bs-body-bg);
        --table-row-hover-background-color: var(--bs-primary-bg-subtle);
        --theme-toggle-hover: var(--bs-primary-bg-subtle);
    }
}

/* Dark mode variables */
@media (prefers-color-scheme: dark) {
    :root {
        --background-color: var(--bs-body-bg);
        --text-color: var(--bs-body-color);
        --navbar-background-color: var(--bs-secondary-bg-subtle);
        --navbar-text-color: var(--bs-secondary-text-emphasis);
        --card-background-color: var(--bs-body-bg);
        --table-background-color: var(--bs-dark-bg-subtle);
        --table-border-color: var(--bs-border-color);
        --table-header-background-color: var(--bs-warning);
        --table-header-text-color: var(--bs-dark);
        --table-row-even-background-color: var(--bs-tertiary-bg);
        --table-row-odd-background-color: var(--bs-secondary-bg);
        --table-row-hover-background-color: var(--bs-primary-bg-subtle);
        --theme-toggle-hover: var(--bs-primary-text-emphasis);
    }
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

body {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Oswald', 'Georgia', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    text-align: center;
}

h4 {
    background-color: var(--table-header-background-color);
    color: var(--table-header-text-color);
    padding: .25rem;
}

.main-container {
    display: flex;
    margin-left: 250px;
    /* Match sidebar width */
    padding: 3rem;
    transition: margin-left 0.3s ease;
}

/* Adjust main container for collapsed sidebar */
@media (min-width: 992px) {
    .main-container.collapsed {
        margin-left: 60px;
    }
}

.dashboard-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--bs-body-bg);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.content {
    flex: 1;
    padding: 2px;
    padding-top: 25px;
    border-radius: 40px;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}

.visually-hidden {
    display: hidden;
}

/* ==========================================================================
   Navigation Components
   ========================================================================== */

/* Sidebar */


.sidebar {
    width: 250px;
    /* Fixed width instead of fit-content */
    background-color: var(--navbar-background-color);
    color: var(--navbar-text-color);
    padding: 1rem;
    top: 86px;
    height: 100vh;
    position: fixed;
    left: 0;
    transition: width 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.sidebar ul li {
    margin-bottom: 15px;
    overflow: hidden;
}

.sidebar ul li a {
    color: var(--navbar-text-color);
    text-decoration: none;
    font-size: 1.1em;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    background-color: var(--table-row-hover-background-color);
    color: var(--text-color);
}

/* Collapsed sidebar state for larger screens */
@media (min-width: 992px) {
    .sidebar.collapsed {
        width: 70px;
        overflow: hidden;
    }
    
    .sidebar.collapsed .nav-text {
        opacity: 0;
        transform: translateX(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        text-wrap: nowrap;
    }
    
    .sidebar.collapsed .nav-link {
        justify-content: start;
        padding: 10px;

        display: flex;
        flex-wrap: nowrap;
    }
    
    .sidebar.collapsed .nav-link i {
        margin-right: 0;
    }
}

/* Hover expansion for collapsed sidebar */
@media (min-width: 992px) {
    .sidebar.collapsed:hover {
        width: 250px;
        z-index: 1001;
    }
    
    .sidebar.collapsed:hover .nav-text {
        transform: translateX(0);
        text-wrap: nowrap;
        opacity: 1;
    }
    
    .sidebar.collapsed:hover .nav-link {
        justify-content: flex-start;
        padding: 10px;

        display: flex;
        flex-wrap: nowrap;
    }
    
    .sidebar.collapsed:hover .nav-link i {
        margin-right: 10px;
    }
}

/* Navigation bar */

.navbar {
    background-color: var(--navbar-background-color);
    color: var(--navbar-text-color);
    padding: 5px 10px 0px;
    width: 100%;
    justify-content: space-between;

    position: fixed;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

.navbar-logo {
    width: 100%;
    /* Maintain aspect ratio */
    max-height: 50px;
    display: block;
    margin: 0 auto;
    /* Center the logo */
    border: none;
}

.navbar-brand {
    font-size: 1.5em;
    color: var(--navbar-text-color);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.navbar-links {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    justify-content: space-between;
    align-items: end;
    display: flex;
    gap: 15px;
}

.navbar-links li {
    display: inline;
}

.navbar-links a,
.navbar-links button {
    text-decoration: none;
    font-size: 1em;
    border-radius: 5px 5px 0px 0px;
    margin-bottom: 1px;
}


/* Navigation tabs */
.nav-title h1 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    margin-bottom: 0;
    padding: .5rem 1rem;
    border-radius: 5px 5px 0px 0px;
    font-weight: bold;
    font-variant: small-caps;
    text-transform: lowercase;

}

.nav-tabs .nav-link {
    color: var(--navbar-text-color);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    /* gap: 0.75rem; */
    transition: all 0.2s ease;
    background-color: color-mix(in hsl, var(--table-header-background-color) 10%, transparent 10%);
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--bs-primary-bg-subtle);
    color: var(--bs-body-color);
    
}

.nav-link i {
    font-size: 1.25rem;
}

.nav-tabs .nav-link:hover {
    color: var(--table-header-text-color);
    background-color: color-mix(in hsl, var(--table-header-background-color) 80%, transparent 20%);
    border-color: var(--table-header-background-color);
    border-radius: 0px;
    border-top-left-radius: var(--bs-nav-tabs-border-radius);
    border-top-right-radius: var(--bs-nav-tabs-border-radius);
    /* border-bottom: 1px solid var(--table-header-background-color); */

}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
    color: var(--table-header-text-color);
    background-color: var(--table-header-background-color);
    font-weight: bold;
    border-radius: 0px;
    border-top-left-radius: var(--bs-nav-tabs-border-radius);
    border-top-right-radius: var(--bs-nav-tabs-border-radius);
    border-bottom: 1px solid var(--table-header-background-color);
}

.border {
    border: 1px solid var(--table-header-background-color) !important;
}

.row,
.col {
    height: fit-content;
}

.pagination {
    background-color: var(--card-background-color);
    color: var(--text-color);
}

.page-item {
    background-color: var(--card-background-color);
    color: var(--text-color);
}

.page-link {
    background-color: var(--card-background-color);
    color: var(--text-color);
}

.page-item.disabled .page-link {
    background-color: var(--bs-body-bg);
    color: var(--navbar-text-color);
}

.page-item:hover .page-link {
    background-color: var(--table-header-background-color);
    color: var(--table-header-text-color);
}

/* ==========================================================================
   Card Components
   ========================================================================== */


.card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.card-body {
    padding: 20px;
    color: var(--bs-body-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: var(--table-header-background-color);
    color: var(--table-header-text-color);
}

/* .card-title{
    background-color: var(--table-header-background-color);
    text-align: var(--table-header-text-color)
} */

.modal-content {
    background-color: var(--card-background-color);
    color: var(--bs-body-color);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}


.modal-header {
    background-color: var(--table-header-background-color);
    color: var(--table-header-text-color);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Table Styles
   ========================================================================== */

/* Generic table styling */
.table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--table-background-color);
    color: var(--bs-body-color);

}

.table th,
.table td {

    border: 1px solid var(--table-border-color);
    padding: 8px;
    text-align: left;
    /* Align text to the left for better readability */
}

.table th {
    background-color: var(--table-header-background-color);
    font-weight: bold;
    color: var(--table-header-text-color);

}

.table tr:nth-child(even) {
    background-color: var(--table-row-even-background-color);
}

.table tr:nth-child(odd) {
    background-color: var(--table-row-odd-background-color);
}

.table tr:hover {
    background-color: var(--table-row-hover-background-color);
}

.table-interactive tr:hover {
    background-color: var(--table-row-hover-background-color);
    cursor: pointer;
}

.table-interactive th:hover {
    cursor: default;
}

.scrollable-table {
    /* height: 50vh; */
    width: 100%;
    overflow-y: auto;
    border: 1px solid var(--table-border-color);
    border-radius: 4px;
}

.show-table {
    height: 270px;
}

.scrollable-table thead th {
    position: sticky;
    border-top: 1px solid var(--table-border-color);
    top: 0px;
    background: var(--table-header-background-color);
    z-index: 2;
}

.scrollable-table::-webkit-scrollbar {
    width: 8px;
}

.scrollable-table::-webkit-scrollbar-track {
    background: var(--table-row-even-background-color);
    border-radius: 4px;
}

.scrollable-table::-webkit-scrollbar-thumb {
    background: var(--table-header-background-color);
    border-radius: 4px;
}

.scrollable-table::-webkit-scrollbar-thumb:hover {
    background: var(--table-header-background-color);
}


.tour-breakdown-table th,
.tour-breakdown-table td {
    border: 1px solid var(--table-border-color);
    padding: 16px;
    text-align: center;
}

.tour-breakdown-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--table-background-color);
}

.sortable-ajax-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: var(--table-background-color);
}

th.sorted {
    background-color: var(--table-header-background-color);
    color: var(--table-header-text-color);
    position: relative;
}


.sort-arrow {
    display: inline-block;
    width: 1.2em;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

/* ==========================================================================
   Form Components
   ========================================================================== */

/* Login and Signup Forms */
.login-container,
.signup-container {
    max-width: 600px;
    max-height: 400px;
    margin: 50px auto;
    background: var(--card-background-color);
    color: var(--bs-body-color);
    padding: 0px 20px 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}


.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    background: var(--card-background-color);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

form div {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input {
    padding: 10px;
    border: 1px solid var(--bs-border-color);
    border-radius: 3px;
}

select {
    padding: 10px;
    border: 1px solid var(--bs-border-color);
    border-radius: 10px;
    background-color: var(--card-background-color);
    color: var(--bs-body-color);
}

button {
    padding: 10px;
    background: var(--navbar-background-color);
    color: var(--navbar-text-color);
    border: none;
    border-radius: 3px;
    cursor: pointer;

}

button:hover {
    background: var(--bs-primary);
}

.errors {
    color: var(--bs-danger);
    text-align: center;
    margin-top: 10px;
}

.list-group-item {
    background-color: var(--card-background-color);
    color: var(--bs-body-color);
    border: 1px solid var(--table-border-color);
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
}

/* ==========================================================================
   Chart and Iframe Components
   ========================================================================== */

.iframe-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
}

.iframe-container iframe {
    background-color: var(--card-background-color);
    width: 100%;
    height: 350px;
    border: none;
    display: block;
    /* Ensure the iframe behaves like a block element */
}

/* ==========================================================================
   Calendar Components
   ========================================================================== */

.calendar-container {
    background: var(--card-background-color);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

}

.calendar-header {
    margin-bottom: 1rem;
}

.calendar-header .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1;
    min-width: 2rem;
    width: auto;
}

.calendar-header h4 {
    margin: auto;
    font-size: 1.1rem;
}

.calendar-grid {
    width: fit-content;
    margin: auto;
}

.calendar-weekdays {
    border-bottom: 1px solid var(--table-border-color);
}

.calendar-cell {
    flex: 1;
    text-align: center;
    padding: 0.1rem;
    font-weight: bold;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
    margin: 0;
    font-size: .6rem;
    height: 2rem;
}

.calendar-day:hover {
    background-color: var(--table-row-hover-background-color);
}

.calendar-day.selected {
    background-color: var(--table-header-background-color);
    color: var(--table-header-text-color);
}

.calendar-day.unavailable {
    background-color: var(--table-row-even-background-color);
    cursor: unset;
}

.calendar-day.other-month {
    opacity: 0.5;
}

.calendar-day.today {
    border: 2px solid var(--table-header-background-color);
}

.calendar-section {
    margin-bottom: 0;
    width: 100%;
    max-width: 100%;
}

.schedule-section {
    width: 100%;
    max-width: 100%;
}

.selected-dates-container {
    height: fit-content;
    /* width: 100%; */
    overflow-x: auto; /* Handle horizontal overflow */
    overflow-y: auto; /* Handle vertical overflow */

}

/* Tables in schedule section */
.schedule-section .table {
    width: 100%;
}

.selected-dates-container::-webkit-scrollbar {
    width: 8px;
}

.selected-dates-container::-webkit-scrollbar-track {
    background: var(--table-row-even-background-color);
    border-radius: 4px;
}

.selected-dates-container::-webkit-scrollbar-thumb {
    background: var(--navbar-background-color);
    border-radius: 4px;
}

.selected-dates-container::-webkit-scrollbar-thumb:hover {
    background: var(--table-row-hover-background-color);
}

#dates-list li {
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--table-border-color);
}

#dates-list li:last-child {
    border-bottom: none;
}

.item-buttons {
    max-width: 300px;
    font-size: .5rem;
}

.tag-group {
    height: fit-content;
    max-height: 240px;
}

/* Item Type Filter Styles */
.item-type-filter {
    background-color: var(--card-background-color);
    border: 1px solid var(--table-border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.item-type-filter .form-label {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 0;
}

.item-type-filter .form-select {
    background-color: var(--bs-body-bg);
    border-color: var(--table-border-color);
    color: var(--bs-body-color);
}

.item-type-filter .form-select:focus {
    background-color: var(--bs-body-bg);
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem var(--bs-primary-bg-subtle);
}

.item-type-filter .btn {
    transition: all 0.2s ease;
}

.item-type-filter .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Filtered item buttons */
.item-add-btn.filtered {
    display: none;
}

.item-add-btn:not(.filtered) {
    display: inline-block;
}

/* ==========================================================================
   Transaction Screen Components
   ========================================================================== */
.pos-item {
    cursor: pointer;
    transition: all 0.2s;
    max-width: 100%;
    height: 260px;
}


.inventory-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.size-button {
    min-width: 45px;
    margin: auto;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    justify-self: center;
}

.size-button.out-of-stock {
    opacity: 0.5;
    cursor: not-allowed;
}


.size-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.transaction-card-title {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    font-weight: bold;
}

.transaction-card-text {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.transaction-card-body {
    padding: 0.75rem;
}

/* Transaction Screen Layout */
.transaction-container {
    height: calc(100vh - 60px);
    /* Adjust 60px based on your header height */
    padding: 1rem;
    overflow: hidden;
}


.inventory-grid::-webkit-scrollbar {
    width: 6px;
}

.inventory-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.inventory-grid::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.inventory-grid::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Add to styles.css */
.floating-controls {
    position: fixed;
    right: 2rem;
    top: 5rem;
    width: 340px;
    height: calc(100vh - 7rem);
    /* Use height instead of max-height */
    background: var(--card-background-color);
    border: 1px solid var(--table-border-color);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}


/* When minimized, hide content */
.floating-controls.minimized .controls-content {
    opacity: 0;
    pointer-events: none;
}

/* Add smooth scrollbar styling */
.floating-controls::-webkit-scrollbar {
    width: 6px;
}

.floating-controls::-webkit-scrollbar-track {
    background: var(--card-background-color);
}

.floating-controls::-webkit-scrollbar-thumb {
    background-color: var(--table-border-color);
    border-radius: 3px;
}

.floating-controls.minimized {
    transform: translateX(calc(100% - 40px));
}

.floating-controls .toggle-controls {
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-controls.minimized .toggle-controls i {
    transform: rotate(180deg);
}

.controls-content {
    flex: 1 1 auto;
    overflow-y: auto;
    max-height: 100%;
    transition: opacity 0.2s ease;
}

.floating-controls.minimized .controls-content {
    opacity: 0;
    pointer-events: none;
}

/* Add to the existing CSS */
.theme-toggle button {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.theme-toggle button:hover {
    transform: scale(1.1);
    background-color: var(--bs-body-color);
    color: var(--bs-body-bg);
}

.theme-toggle i {
    font-size: 1rem;
}

/* ==========================================================================
   POS System Styles
   ========================================================================== */

/* POS Dashboard Container */
.pos-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 20px;
    height: calc(100vh - 80px);
    padding: 20px;
}

.pos-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pos-sidebar {
    background: var(--card-background-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--table-border-color);
}

.pos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    margin-bottom: 20px;
}

.pos-header h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.pos-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--card-background-color);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid var(--table-border-color);
}

.stat-card h3 {
    margin: 0 0 10px 0;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
}

.pos-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    flex: 1;
}

.pos-section {
    background: var(--card-background-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--table-border-color);
}

.pos-section h2 {
    margin: 0 0 20px 0;
    color: var(--text-color);
    font-size: 1.3rem;
    font-weight: 600;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.quick-action-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

.quick-action-btn.secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.quick-action-btn.success {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.quick-action-btn.warning {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.recent-transactions {
    max-height: 300px;
    overflow-y: auto;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.transaction-item:hover {
    background-color: var(--table-row-hover-background-color);
}

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

.transaction-info {
    flex: 1;
}

.transaction-amount {
    font-weight: 600;
    color: #28a745;
}

.transaction-status {
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.status-completed {
    background-color: #d4edda;
    color: #155724;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-failed {
    background-color: #f8d7da;
    color: #721c24;
}

.inventory-alerts {
    max-height: 200px;
    overflow-y: auto;
}

.alert-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.alert-low-stock {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
}

.alert-out-of-stock {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
}

.alert-quantity {
    font-weight: 600;
    color: #dc3545;
}

.pos-sidebar-header {
    text-align: center;
    margin-bottom: 20px;
}

.pos-sidebar-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.pos-sidebar-header p {
    margin: 5px 0 0 0;
    color: var(--text-color);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* POS Sale Interface */
.pos-sale-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 20px;
    height: calc(100vh - 80px);
    padding: 20px;
}

.pos-sale-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pos-sale-sidebar {
    background: var(--card-background-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--table-border-color);
}

.pos-sale-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    margin-bottom: 20px;
}

.pos-sale-header h1 {
    margin: 0;
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.pos-sale-header .back-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.pos-sale-header .back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
}

.pos-sale-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    flex: 1;
}

.pos-sale-section {
    background: var(--card-background-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--table-border-color);
}

.pos-sale-section h2 {
    margin: 0 20px 20px 0;
    color: var(--text-color);
    font-size: 1.3rem;
    font-weight: 600;
}

.item-grid {
    display: grid;
    grid-template-columns: repeat(1fr, 2);
    gap: 20px;
    max-height: 500px;
    overflow-y: auto;
}

.item-card {
    background: var(--card-background-color);
    border: 2px solid var(--table-border-color);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-card:hover {
    border-color: var(--bs-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.item-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.item-sizes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* flex-direction: row; */
    gap: 8px;
    margin-left: 20px;
}


.size-btn:hover:not(.disabled) {
    background: var(--bs-primary);
    color: white;
    border-color: var(--bs-primary);
}

.size-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--bs-light-bg-subtle);
    color: var(--text-color);
    position: relative;
}

.size-btn.disabled:hover {
    background: var(--bs-light-bg-subtle);
    color: var(--text-color);
    border-color: var(--table-border-color);
    transform: none;
}

.size-btn.disabled::after {
    content: "OUT OF STOCK";
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--bs-danger);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    white-space: nowrap;
}

.stock-indicator {
    display: block;
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 2px;
}

.stock-indicator:empty::before {
    content: "(0)";
    opacity: 0.5;
}

/* Low stock warning */
.size-btn.low-stock .stock-indicator {
    color: var(--bs-warning);
    font-weight: bold;
}

.size-btn.low-stock::before {
    content: "⚠️";
    margin-right: 4px;
    font-size: 0.8rem;
}

.item-card.selected {
    border-color: var(--bs-success);
    background-color: var(--bs-success-bg-subtle);
}

.item-image {
    height: 80px;
    width: 80px;
    object-fit: cover;
    margin-bottom: 10px;
    align-self: center;
    justify-self: center;
    margin: 0 auto;
    display: block;
    border-radius: 6px;
}

.item-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color);
}

.item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bs-success);
    margin-bottom: 5px;
}

.item-stock {
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.7;
}

.size-selector {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 10px;
}

.size-btn {
    padding: 8px 16px;
    border: 1px solid var(--table-border-color);
    background: var(--card-background-color);
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 100px;
}

.size-btn:hover {
    background: var(--table-row-hover-background-color);
}

.size-btn.selected {
    background: var(--bs-primary);
    color: white;
    border-color: var(--bs-primary);
}

.size-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--table-border-color);
    background: var(--card-background-color);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.quantity-btn:hover {
    background: var(--table-row-hover-background-color);
}

.quantity-display {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
}

.cart-section {
    background: var(--card-background-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border: 1px solid var(--table-border-color);
}

.cart-items {
    /* max-height: 300px; */
    overflow-y: auto;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid var(--table-border-color);
}

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

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 500;
    margin-bottom: 2px;
    color: var(--text-color);
}

.cart-item-details {
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.7;
}

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

.cart-item-price {
    font-weight: 600;
    color: var(--text-color);
}

.cart-totals {
    border-top: 2px solid var(--table-border-color);
    padding-top: 15px;
}

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

.cart-total-row.final {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-color);
    border-top: 1px solid var(--table-border-color);
    padding-top: 8px;
    margin-top: 8px;
}

.payment-section {
    background: var(--card-background-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--table-border-color);
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.payment-method {
    padding: 15px;
    border: 2px solid var(--table-border-color);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--card-background-color);
}

.payment-method:hover {
    border-color: var(--bs-primary);
}

.payment-method.selected {
    border-color: var(--bs-success);
    background-color: var(--bs-success-bg-subtle);
}

.payment-method-icon {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.payment-method-name {
    font-size: 0.8rem;
    font-weight: 500;
}

.customer-section {
    background: var(--card-background-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border: 1px solid var(--table-border-color);
}

.customer-search {
    position: relative;
    margin-bottom: 15px;
}

.customer-search input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--table-border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    background: var(--card-background-color);
    color: var(--text-color);
}

.customer-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-background-color);
    border: 1px solid var(--table-border-color);
    border-radius: 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.customer-result {
    padding: 10px;
    border-bottom: 1px solid var(--table-border-color);
    cursor: pointer;
}

.customer-result:hover {
    background: var(--table-row-hover-background-color);
}

.customer-result:last-child {
    border-bottom: none;
}

.customer-name {
    font-weight: 500;
    margin-bottom: 2px;
    color: var(--text-color);
}

.customer-email {
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.7;
}

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

.sale-btn {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sale-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.sale-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.sale-btn.secondary {
    background: #6c757d;
    color: white;
}

.sale-btn.secondary:hover {
    background: #5a6268;
}

.sale-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Loading Overlay */
#loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#loading-overlay>div {
    background: var(--card-background-color);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--table-border-color);
}

/* POS Responsive Design */
@media (max-width: 1200px) {

    .pos-container,
    .pos-sale-container {
        grid-template-columns: 1fr;
    }

    .pos-sidebar,
    .pos-sale-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {

    .pos-sections,
    .pos-stats {
        grid-template-columns: 1fr;
    }

    .pos-stats {
        gap: 15px;
    }

    .item-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .item-card {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .item-sizes {
        margin-left: 0;
        margin-top: 15px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .size-btn {
        min-width: auto;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   Inventory Management Styles
   ========================================================================== */

.inventory-item {
    cursor: pointer;
    transition: all 0.2s ease;
    max-width: 100%;
}

.inventory-item:hover {
    background-color: var(--table-row-hover-background-color);
}

.inventory-item .form-control:read-only {
    background-color: var(--bs-light-bg-subtle);
    color: var(--text-color);
    opacity: 0.7;
}

/* Status badges with icons */
.badge i {
    font-size: 0.75rem;
}

/* Table row status colors */
.table-success {
    background-color: var(--bs-success-bg-subtle) !important;
}

.table-warning {
    background-color: var(--bs-warning-bg-subtle) !important;
}

.table-danger {
    background-color: var(--bs-danger-bg-subtle) !important;
}

/* Input groups for currency fields */
.input-group-text {
    background-color: var(--bs-light-bg-subtle);
    border-color: var(--table-border-color);
    color: var(--text-color);
}

/* Modal enhancements */
.modal-title {
    color: var(--table-header-text-color);
}

.modal-body {
    background-color: var(--card-background-color);
    color: var(--bs-body-color);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Form label enhancements */
.form-label.fw-medium {
    color: var(--text-color);
    font-weight: 500;
}

/* ==========================================================================
   Venue Selector Components
   ========================================================================== */

/* Venue search suggestions */
#venue-suggestions {
    background-color: var(--card-background-color);
    border-color: var(--table-border-color);
    color: var(--bs-body-color);
}

.venue-suggestion {
    border-color: var(--table-border-color);
    color: var(--bs-body-color);
    transition: background-color 0.2s ease;
}

.venue-suggestion:hover,
.venue-suggestion.hover {
    background-color: var(--table-row-hover-background-color);
}

.venue-suggestion.create-new-venue {
    background-color: var(--table-row-even-background-color);
}

/* Venue search status alerts */
#venue-search-status .alert {
    border-color: var(--table-border-color);
    background-color: var(--card-background-color);
}

#venue-search-status .alert-success {
    background-color: var(--bs-success-bg-subtle);
    border-color: var(--bs-success-border-subtle);
    color: var(--bs-success-text-emphasis);
}

#venue-search-status .alert-warning {
    background-color: var(--bs-warning-bg-subtle);
    border-color: var(--bs-warning-border-subtle);
    color: var(--bs-warning-text-emphasis);
}

#venue-search-status .alert-danger {
    background-color: var(--bs-danger-bg-subtle);
    border-color: var(--bs-danger-border-subtle);
    color: var(--bs-danger-text-emphasis);
}

#venue-search-status .alert-info {
    background-color: var(--bs-info-bg-subtle);
    border-color: var(--bs-info-border-subtle);
    color: var(--bs-info-text-emphasis);
}

/* New venue autocomplete styling */
#new-venue-autocomplete-container {
    position: relative;
}

#new-venue-autocomplete {
    background-color: var(--bs-body-bg);
    border-color: var(--table-border-color);
    color: var(--bs-body-color);
}

#new-venue-autocomplete:focus {
    background-color: var(--bs-body-bg);
    border-color: var(--bs-primary);
    color: var(--bs-body-color);
    box-shadow: 0 0 0 0.2rem var(--bs-primary-bg-subtle);
}

/* New venue status alerts */
#new-venue-status .alert {
    border-color: var(--table-border-color);
    background-color: var(--card-background-color);
}

#new-venue-status .alert-success {
    background-color: var(--bs-success-bg-subtle);
    border-color: var(--bs-success-border-subtle);
    color: var(--bs-success-text-emphasis);
}

#new-venue-status .alert-warning {
    background-color: var(--bs-warning-bg-subtle);
    border-color: var(--bs-warning-border-subtle);
    color: var(--bs-warning-text-emphasis);
}

#new-venue-status .alert-danger {
    background-color: var(--bs-danger-bg-subtle);
    border-color: var(--bs-danger-border-subtle);
    color: var(--bs-danger-text-emphasis);
}

#new-venue-status .alert-info {
    background-color: var(--bs-info-bg-subtle);
    border-color: var(--bs-info-border-subtle);
    color: var(--bs-info-text-emphasis);
}

/* New venue form fields styling */
#new-venue-type,
#new-venue-capacity {
    background-color: var(--bs-body-bg);
    border-color: var(--table-border-color);
    color: var(--bs-body-color);
}

#new-venue-type:focus,
#new-venue-capacity:focus {
    background-color: var(--bs-body-bg);
    border-color: var(--bs-primary);
    color: var(--bs-body-color);
    box-shadow: 0 0 0 0.2rem var(--bs-primary-bg-subtle);
}

#new-venue-type option {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}

/* ==========================================================================
   TourSaver Components
   ========================================================================== */

/* TourSaver modal styling */
#saveTourModal .modal-content {
    background-color: var(--card-background-color);
    border-color: var(--table-border-color);
}

#saveTourModal .modal-header {
    border-bottom-color: var(--table-border-color);
}

#saveTourModal .modal-footer {
    border-top-color: var(--table-border-color);
}

/* TourSaver form sections */
#selected-dates-summary,
#selected-items-summary,
#forecast-summary {
    background-color: var(--table-row-even-background-color);
    border-color: var(--table-border-color);
    color: var(--bs-body-color);
}

#selected-dates-summary:hover,
#selected-items-summary:hover,
#forecast-summary:hover {
    background-color: var(--table-row-hover-background-color);
}

/* TourSaver alert styling */
.floating-controls .alert {
    border-color: var(--table-border-color);
    background-color: var(--card-background-color);
    color: var(--bs-body-color);
}

.floating-controls .alert-success {
    background-color: var(--bs-success-bg-subtle);
    border-color: var(--bs-success-border-subtle);
    color: var(--bs-success-text-emphasis);
}

.floating-controls .alert-warning {
    background-color: var(--bs-warning-bg-subtle);
    border-color: var(--bs-warning-border-subtle);
    color: var(--bs-warning-text-emphasis);
}

.floating-controls .alert-danger {
    background-color: var(--bs-danger-bg-subtle);
    border-color: var(--bs-danger-border-subtle);
    color: var(--bs-danger-text-emphasis);
}

.floating-controls .alert-info {
    background-color: var(--bs-info-bg-subtle);
    border-color: var(--bs-info-border-subtle);
    color: var(--bs-info-text-emphasis);
}

/* TourSaver form elements */
#saveTourModal .form-control,
#saveTourModal .form-select {
    background-color: var(--bs-body-bg);
    border-color: var(--table-border-color);
    color: var(--bs-body-color);
}

#saveTourModal .form-control:focus,
#saveTourModal .form-select:focus {
    background-color: var(--bs-body-bg);
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem var(--bs-primary-bg-subtle);
}

#saveTourModal .form-label {
    color: var(--text-color);
    font-weight: 500;
}

/* TourSaver button enhancements */
#saveTourModal .btn {
    transition: all 0.2s ease;
}

#saveTourModal .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#saveTourModal .btn:disabled {
    transform: none;
    box-shadow: none;
}

/* ==========================================================================
   Inventory Card Enhancements
   ========================================================================== */

.inventory-card {
    transition: all 0.3s ease;
    border: 1px solid var(--table-border-color);
}

.inventory-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.inventory-card .position-relative {
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.inventory-card .badge {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.inventory-card .badge.bg-success {
    background: linear-gradient(135deg, var(--bs-success), #28a745) !important;
}

.inventory-card .badge.bg-info {
    background: linear-gradient(135deg, var(--bs-info), #17a2b8) !important;
}

.inventory-card .badge.bg-danger {
    background: linear-gradient(135deg, var(--bs-danger), #dc3545) !important;
}

.inventory-card .badge.bg-warning {
    background: linear-gradient(135deg, var(--bs-warning), #ffc107) !important;
}

.inventory-card .card-title {
    border-bottom: 1px solid var(--table-border-color);
    background-color: var(--card-background-color);
}

.inventory-card .card-body {
    background-color: var(--card-background-color);
}

.inventory-card .btn {
    transition: all 0.2s ease;
}

.inventory-card .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   POS Template Enhancements
   ========================================================================== */

/* Customer Management Styles */
.customer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.customer-card {
    background: var(--card-background-color);
    border: 1px solid var(--table-border-color);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.customer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.customer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.customer-avatar {
    font-size: 2rem;
    color: var(--bs-primary);
}

.customer-info h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.customer-email,
.customer-phone {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.customer-actions {
    display: flex;
    gap: 0.5rem;
}

.customer-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
}

.stat-value {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Inventory Management Styles */
.inventory-grid {
    height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: grid;
    grid-auto-rows: 1fr;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

/* Reports & Analytics Styles */

.payment-method-card {
    background: var(--card-background-color);
    border: 1px solid var(--table-border-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.payment-method-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.payment-method-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.metric-card {
    background: var(--card-background-color);
    border: 1px solid var(--table-border-color);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s ease;
    min-height: 80px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.metric-card:hover {
    transform: translateY(+2px);
}

.metric-card .card-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.metric-card .card-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    opacity: 0.8;
}

.metric-card .card-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.125rem;
    line-height: 1.1;
}

.metric-card .text-muted {
    font-size: 0.7rem;
    line-height: 1.2;
}

/* Compact metrics row layout */
.metrics-row {
    margin-bottom: 1.5rem;
}

.metrics-row .row {
    --bs-gutter-x: 0.75rem;
}

/* Alternative: Single row compact layout */
.metrics-compact {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.metrics-compact .metric-card {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
}

/* Extra compact variant for tight spaces */
.metric-card.compact {
    padding: 0.5rem;
    padding-left: 1rem;
    min-height: 60px;
}

.metric-card.compact .card-title {
    font-size: 1.4rem;
}

.metric-card.compact .card-subtitle {
    font-size: 0.7rem;
}

.metric-card.compact .text-muted {
    font-size: 0.65rem;
}

.metric-icon {
    font-size: 2rem;
}

.metric-content h4 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.metric-content p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Settings Styles */
.settings-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.settings-nav-btn {
    background: none;
    border: 1px solid var(--table-border-color);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    text-align: left;
    transition: all 0.2s ease;
    color: var(--text-color);
}

.settings-nav-btn:hover,
.settings-nav-btn.active {
    background: var(--bs-primary);
    color: white;
    border-color: var(--bs-primary);
}

.settings-tab {
    display: none;
}

.settings-tab.active {
    display: block;
}

.setting-group {
    background: var(--card-background-color);
    border: 1px solid var(--table-border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.payment-processor-card {
    background: var(--card-background-color);
    border: 1px solid var(--table-border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.processor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.processor-actions {
    display: flex;
    gap: 0.5rem;
}

/* Refund Processing Styles */
.recent-transactions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1rem;
}

.transaction-card {
    background: var(--card-background-color);
    border: 1px solid var(--table-border-color);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.transaction-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.transaction-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.transaction-info h6 {
    margin: 0;
    font-weight: 600;
}

.transaction-info p {
    margin: 0;
    font-size: 0.9rem;
}

.transaction-items {
    margin-bottom: 1rem;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--table-border-color);
}

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

.item-name {
    flex: 1;
    font-size: 0.9rem;
}

.item-quantity {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0 0.5rem;
}

.item-price {
    font-weight: 600;
    font-size: 0.9rem;
}

.transaction-actions {
    display: flex;
    gap: 0.5rem;
}

.refund-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.refund-type-card {
    background: var(--card-background-color);
    border: 1px solid var(--table-border-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.refund-type-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.refund-type-card i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.refund-type-card h6 {
    margin: 0;
    font-weight: 600;
}

.refund-type-card p {
    margin: 0;
    font-size: 0.8rem;
}

/* Search Results Styles */
.transaction-result {
    background: var(--card-background-color);
    border: 1px solid var(--table-border-color);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.transaction-result:hover {
    background: var(--table-row-hover-background-color);
}

/* Refund Form Styles */
.refund-item {
    background: var(--card-background-color);
    border: 1px solid var(--table-border-color);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 0.5rem;
}

.refund-summary {
    background: var(--bs-light-bg-subtle);
    border: 1px solid var(--table-border-color);
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
}

/* Empty State Styles */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-state i {
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {

    .customer-grid,
    .inventory-grid,
    .recent-transactions {
        grid-template-columns: 1fr;
    }

    .refund-types {
        grid-template-columns: 1fr;
    }

    .customer-stats {
        grid-template-columns: 1fr;
    }

    .settings-nav {
        flex-direction: row;
        overflow-x: auto;
    }

    .settings-nav-btn {
        white-space: nowrap;
    }
    
    /* Responsive metric cards */
    .metrics-compact {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .metrics-compact .metric-card {
        min-width: auto;
        max-width: none;
    }
    
    .metric-card {
        min-height: 70px;
    }
    
    .metric-card .card-title {
        font-size: 1.5rem;
    }
    
    /* Stack metric cards on small screens */
    .metric-card.compact .text-muted {
        font-size: 0.6rem;
    }
}

/* Medium screen adjustments for 6-column metrics */
@media (max-width: 1200px) {
    .metric-card.compact .card-title {
        font-size: 1.2rem;
    }
    
    .metric-card.compact .text-muted {
        font-size: 0.6rem;
        line-height: 1.1;
    }
}

@media (max-width: 992px) {
    .metric-card.compact .card-title {
        font-size: 1.3rem;
    }
}

/* Sidebar responsive/collapsible styles */
@media (max-width: 991.98px) {
    .sidebar {
        left: -250px;
        transition: left 0.3s ease;
        z-index: 1050;
    }

    .sidebar.show {
        left: 0;
    }

    .main-container {
        margin-left: 0;
        padding: 1rem;
    }

    #sidebar-toggle {
        display: block !important;
    }

    /* Overlay for sidebar when open */
    .sidebar-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.3);
        z-index: 1049;
    }
}

@media (min-width: 992px) {
    #sidebar-toggle {
        display: none !important;
    }

    .sidebar {
        left: 0;
        position: fixed;
        transition: width 0.3s ease, transform 0.3s ease;
    }

    /* .main-container.expanded {
        margin-left: 250px;
        padding: 3rem;
        transition: margin-left 0.3s ease;
    } */
    
    .main-container {
        margin-left: 60px;
    }
}

/* ==========================================================================
   Landing Page Styles
   ========================================================================== */

/* Demo Section Styles */
.demo {
    background: linear-gradient(135deg, var(--bs-secondary-bg) 0%, var(--bs-tertiary-bg) 100%);
    padding: 4rem 0;
}

.demo__content {
    max-width: 1200px;
    margin: 0 auto;
}

.demo__video-container {
    position: relative;
    width: 100%;
    margin: 0 auto 2rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: var(--bs-body-bg);
    border: 1px solid var(--table-border-color);
}

.demo__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
}

.demo__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 1rem;
}

.demo__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.demo__video-container:hover .demo__video-overlay {
    opacity: 1;
}

.demo__video-overlay-content {
    text-align: center;
    color: white;
    padding: 2rem;
}

.demo__video-overlay-content i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #ff0000;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.demo__video-overlay-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.demo__features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.demo__feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--bs-body-color);
}

.demo__feature i {
    font-size: 1.2rem;
}

/* Pilot Program Section Styles */
.pilot-signup {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-primary-bg-subtle) 100%);
    color: white;
    padding: 4rem 0;
}

.pilot-signup__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.pilot-signup__text h2 {
    color: white;
    margin-bottom: 1rem;
}

.pilot-signup__text .lead {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.pilot-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pilot-benefit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.pilot-benefit i {
    font-size: 1.2rem;
}

.pilot-signup__form .card {
    background: var(--card-background-color);
    color: var(--text-color);
    border: 1px solid var(--table-border-color);
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pilot-signup__form .card-body {
    padding: 2rem;
}

.pilot-signup__form h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.pilot-signup__form p {
    color: var(--bs-secondary-text-emphasis);
    margin-bottom: 1.5rem;
}

.pilot-form .form-control {
    border-radius: 0.5rem;
    border: 1px solid var(--table-border-color);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
}

.pilot-form .form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem var(--bs-primary-bg-subtle);
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
}

.pilot-form .form-label {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pilot-form .form-text {
    color: var(--bs-secondary-text-emphasis);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.pilot-form .btn--primary {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-primary-bg-subtle) 100%);
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    transition: all 0.3s ease;
}

.pilot-form .btn--primary:hover {
    background: linear-gradient(135deg, var(--bs-primary-bg-subtle) 0%, var(--bs-primary) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: white;
}

.pilot-form .btn--primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.pilot-form .invalid-feedback {
    color: var(--bs-danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.pilot-form .alert {
    border-radius: 0.5rem;
    border: none;
    margin-bottom: 1rem;
}

.pilot-form .alert-success {
    background: var(--bs-success-bg-subtle);
    color: var(--bs-success-text-emphasis);
    border: 1px solid var(--bs-success-border-subtle);
}

.pilot-form .alert-danger {
    background: var(--bs-danger-bg-subtle);
    color: var(--bs-danger-text-emphasis);
    border: 1px solid var(--bs-danger-border-subtle);
}

/* Responsive Design for Demo and Pilot Sections */
@media (max-width: 768px) {
    .pilot-signup__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .demo__video-container {
        max-width: 100%;
    }

    .demo__features {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .pilot-benefits {
        margin-bottom: 2rem;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    color: white;
    padding-top: 80px;
    /* Account for fixed navbar */
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}


.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-actions {
    margin-bottom: 2rem;
}

.hero-image {
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Scroll Animation Styles */
[data-scroll] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

[data-scroll].is-inview {
    opacity: 1;
    transform: translateY(0);
}

/* Hero section specific animation styles */
#hero-section [data-scroll] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

/* Loading state styles */
body.loading {
    overflow: hidden;
}

/* Ensure smooth transition when enabling scroll */
body {
    transition: overflow 0.3s ease;
}

/* Loading Indicator */
.loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: white;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-indicator.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-indicator p {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
    opacity: 0.9;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Locomotive Scroll Styles */
html.has-scroll-smooth {
    overflow: hidden;
}

html.has-scroll-dragging {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.has-scroll-smooth body {
    overflow: hidden;
}

.has-scroll-smooth [data-scroll-container] {
    min-height: 100vh;
}

/* Parallax effect for hero background */

/* Enhanced button styles for hero section */
.hero-section .btn {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.hero-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
}

.hero-section .btn-primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.hero-section .btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.hero-section .btn-outline-light {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-section .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Features Section */
.features-section {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--bs-body-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--bs-secondary-text-emphasis);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    background: var(--card-background-color);
    border: 1px solid var(--table-border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--bs-primary);
}

.feature-icon {
    font-size: 3rem;
    color: var(--bs-primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--bs-body-color);
}

.feature-card p {
    color: var(--bs-secondary-text-emphasis);
    line-height: 1.6;
    margin: 0;
}

/* How It Works Section */
.how-it-works-section {
    background-color: var(--bs-secondary-bg);
    color: var(--bs-body-color);
}

.step-card {
    background: var(--card-background-color);
    border: 1px solid var(--table-border-color);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--bs-body-color);
}

.step-card p {
    color: var(--bs-secondary-text-emphasis);
    line-height: 1.6;
    margin: 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.cta-section .section-title {
    color: white;
}

.cta-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.cta-actions {
    margin-top: 2rem;
}

/* Footer */
.footer {
    background-color: var(--bs-secondary-bg);
    color: var(--bs-secondary-text-emphasis);
    border-top: 1px solid var(--table-border-color);
}

/* Landing Page Navbar */
.landing-navbar {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.landing-navbar .navbar-brand {
    color: white;
}

.landing-navbar .nav-link {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}

.landing-navbar .nav-link:hover {
    color: white;
}

.landing-navbar .btn-primary {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    transition: all 0.3s ease;
}

.landing-navbar .btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

/* Responsive Design for Landing Page */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .feature-card,
    .step-card {
        padding: 1.5rem;
    }

    .hero-actions .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .cta-actions .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .feature-card,
    .step-card {
        padding: 1rem;
    }
}

/* ==========================================================================
   Modern Landing Page Styles (Inspired by Luxury Design Agencies)
   ========================================================================== */

/* Modern Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

/* Modern Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(130%) blur(10px);
    background: linear-gradient(180deg, rgba(16, 23, 38, .75), rgba(16, 23, 38, .35));
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.nav__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
}

.logo {
    font-weight: 800;
    letter-spacing: .5px;
    color: #fff;
    text-decoration: none;
}

.nav__menu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 12px;
}

.nav__link {
    color: var(--bs-secondary-text-emphasis);
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.nav__link.is-active,
.nav__link:hover {
    color: var(--bs-body-color);
    background: rgba(255, 255, 255, .04);
}

.nav__cta {
    margin-left: auto;
    display: flex;
    gap: 10px;
}

.nav__toggle {
    margin-left: auto;
    background: transparent;
    color: var(--bs-body-color);
    border: 1px solid rgba(255, 255, 255, .08);
    padding: 8px 10px;
    border-radius: 10px;
    display: grid;
    place-items: center;
}

@media (min-width: 900px) {
    .nav__toggle {
        display: none;
    }

    .nav__menu {
        display: flex;
    }
}

/* Modern Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 650;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn--primary {
    background: linear-gradient(180deg, rgba(0, 229, 168, .85), rgba(0, 229, 168, .65));
    color: #001611;
    border: 0;
    border-radius: 14px;
    padding: 14px 22px;
    box-shadow: 0 6px 20px rgba(0, 229, 168, .25);
    transition: transform .2s cubic-bezier(.22, 1, .36, 1), box-shadow .2s;
}

.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(0, 229, 168, .35);
    color: #001611;
    text-decoration: none;
}

.btn--ghost {
    background: transparent;
    color: var(--bs-body-color);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    padding: 14px 22px;
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, .04);
    color: var(--bs-body-color);
    text-decoration: none;
}

.icon-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .08);
    padding: 8px;
    border-radius: 12px;
    color: var(--bs-body-color);
    cursor: pointer;
}

/* Skip Link */
.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 16px;
    top: 16px;
    width: auto;
    height: auto;
    background: var(--bs-secondary-bg);
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--bs-body-color);
    text-decoration: none;
}

/* Modern Hero Section */
.hero {
    position: relative;
    padding: clamp(56px, 6vw, 120px) 0;
    color: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.1s ease-out, filter 0.3s ease-out;
    filter: blur(5px);
    will-change: transform, filter;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
    z-index: -1;
    transition: opacity 0.3s ease-out;
}

.hero h1 {
    line-height: 1.08;
    font-size: clamp(2.5rem, 2.2rem + 4vw, 4.5rem);
    letter-spacing: -.02em;
    margin: 0 0 16px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero .lead {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 120px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .02) 0 1px, transparent 1px 120px),
        radial-gradient(rgba(255, 255, 255, .045) 1px, transparent 1.2px);
    background-size: 120px 100%, 100% 120px, 3px 3px;
    background-position: 0 0, 0 0, 0 0;
    mix-blend-mode: overlay;
    opacity: .45;
}

.hero__content {
    display: grid;
    gap: 24px;
}

.hero .actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.trust {
    margin-top: 32px;
}

.trust__badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.trust__badge {
    border: 1px solid rgba(255, 255, 255, .2);
    padding: 6px 10px;
    border-radius: 999px;
    color: rgba(255, 255, 255, .9);
    background: rgba(255, 255, 255, .1);
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.hero__art {
    min-height: 200px;
    position: relative;
}

.orb {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    filter: blur(30px) saturate(140%);
    opacity: .6;
}

.orb--accent {
    background: radial-gradient(circle at 30% 30%, rgba(0, 229, 168, .8), transparent 60%);
    right: 10%;
    top: 10%;
}

.orb--blue {
    background: radial-gradient(circle at 70% 70%, rgba(103, 179, 255, .8), transparent 60%);
    left: 8%;
    bottom: -10%;
}

@media (min-width: 900px) {
    .hero__content {
        grid-template-columns: 1.1fr .9fr;
        align-items: center;
    }
}

/* Modern Section Styles */
.section {
    padding: clamp(56px, 6vw, 120px) 0;
}

.section__head {
    max-width: 800px;
    margin-bottom: 16px;
    text-align: center;
}

.section__head p {
    margin-top: 8px;
    margin-bottom: 24px;
    color: var(--bs-secondary-text-emphasis);
}

.grid {
    display: grid;
    gap: 16px;
}

/* Modern Card Styles */
.card {
    border-radius: 8px;
    border: 1px solid var(--table-border-color);
    transition: box-shadow 0.2s ease;
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 1px 0 rgba(255, 255, 255, .04) inset;
    backdrop-filter: saturate(130%) blur(10px);
    padding: 32px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .15);
    border-color: var(--bs-primary);
}

/* Features Grid */
.features__grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 700px) {
    .features__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .features__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Feature Cards */
.feature {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    text-align: left;
}

.feature__icon {
    grid-row: 1;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(103, 179, 255, .12);
    border: 1px solid rgba(255, 255, 255, .08);
    filter: drop-shadow(0 6px 22px rgba(0, 229, 168, .25));
}

.feature__icon i {
    stroke: #00e5a8;
    width: 22px;
    height: 22px;
    font-size: 22px;
    color: #00e5a8;
}

.feature h3,
.feature p {
    grid-column: 2;
    margin: 0;
}

.feature h3 {
    font-size: clamp(1.6rem, 1.3rem + 1.6vw, 2.25rem);
    margin-bottom: 8px;
    color: var(--bs-body-color);
}

.feature p {
    color: var(--bs-secondary-text-emphasis);
    line-height: 1.6;
}

/* Platform Section */
.platform__grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 960px) {
    .platform__grid {
        grid-template-columns: 1.1fr .9fr;
    }
}

.checks {
    list-style: none;
    padding: 0;
    margin: 16px 0 24px;
    display: grid;
    gap: 8px;
}

.check {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--bs-body-color);
}

.check::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: linear-gradient(180deg, rgba(0, 229, 168, .8), rgba(0, 229, 168, .45));
    box-shadow: 0 6px 22px rgba(0, 229, 168, .25);
}

/* Platform Preview */
.merchandise-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.merchandise-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 1px 0 rgba(255, 255, 255, .04) inset;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.merchandise-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .4), 0 1px 0 rgba(255, 255, 255, .04) inset;
}



/* Live Performance Section */

@media (min-width: 960px) {
    .live__grid {
        grid-template-columns: 1fr 1fr;
    }
}

.live__media {
    min-height: 280px;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.live__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 1px 0 rgba(255, 255, 255, .04) inset;
    filter: saturate(110%);
}

.live__text {
    padding-inline: 4px;
}

.live__grid {
    display: grid;
    gap: 24px;
    align-items: center;
    column-gap: 36px;
}

/* Steps Section */
.steps {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 700px) {
    .steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.step {
    position: relative;
    text-align: center;
}

.step h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.1;
    font-size: calc(clamp(1.6rem, 1.3rem + 1.6vw, 2.25rem) * .84);
    margin-bottom: 8px;
    justify-content: center;
}

.step__badge {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    font-weight: 800;
    font-size: .85rem;
    line-height: 1;
    color: #001611;
    background: linear-gradient(180deg, rgba(0, 229, 168, .9), rgba(0, 229, 168, .6));
    box-shadow: 0 6px 18px rgba(0, 229, 168, .25);
}

/* CTA Section */
.section--cta {
    background: linear-gradient(180deg, rgba(103, 179, 255, .06), rgba(255, 255, 255, 0) 60%), var(--bs-secondary-bg);
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.section--how .section__head {
    margin-bottom: 24px;
    text-align: center;
}

.how__cta {
    margin-top: 56px;
    text-align: center;
}

.how__cta .actions {
    justify-content: center;
}

.kicker {
    color: var(--bs-secondary-text-emphasis);
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .9rem;
}

/* Marquee Section */
.marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    border-block: 1px solid rgba(255, 255, 255, .08);
    background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .01));
}

.track {
    display: flex;
    gap: 16px;
    will-change: transform;
    animation: scroll 30s linear infinite;
    padding: 16px;
    list-style: none;
    margin: 0;
}

.marquee:focus-within .track,
.marquee:hover .track {
    animation-play-state: paused;
}

.item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bs-secondary-bg);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    color: var(--bs-body-color);
    white-space: nowrap;
}

.item svg {
    filter: drop-shadow(0 6px 22px rgba(0, 229, 168, .25));
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Reveal Animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s ease, transform .6s cubic-bezier(.22, 1, .36, 1);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Footer */
.site-footer {
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    background: rgba(0, 0, 0, .2);
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}



/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: clamp(2rem, 1.8rem + 2.6vw, 3.25rem);
    }

    .hero .actions {
        flex-direction: column;
    }

    .btn--primary,
    .btn--ghost {
        width: 100%;
        text-align: center;
    }

    .features__grid,
    .steps {
        grid-template-columns: 1fr;
    }

    .platform__grid {
        grid-template-columns: 1fr;
    }

    .live__grid {
        grid-template-columns: 1fr;
    }

    .dashboard {
        grid-template-columns: 1fr;
    }

    .nav__cta {
        flex-direction: column;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem);
    }

    .card {
        padding: 1.5rem;
    }

    .trust__badges {
        flex-direction: column;
        align-items: center;
    }
}

/* Decorator Order Display Styles */
.decorator-order-section {
    font-family: inherit;
    /* max-width: 1200px; */
    margin: 0 auto;
    background: var(--bs-body-bg, white);
    padding: 15px;
    border-radius: var(--bs-border-radius-lg, 8px);
    box-shadow: var(--bs-box-shadow, 0 4px 6px rgba(0, 0, 0, 0.1));
    border: 1px solid var(--bs-border-color, #dee2e6);
}

.order-header {
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.order-header h2 {
    color: var(--bs-body-color, #333);
    margin-bottom: 5px;
    font-size: 1.5rem;
    font-weight: bold;
}

.order-details {
    display: flex;
    gap: 20px;
    color: var(--bs-secondary-color, #666);
    font-size: 0.9rem;
}

.order-details p {
    margin: 0;
}

.category-section {
    margin-bottom: 20px;
    border: 1px solid var(--bs-border-color, #e0e0e0);
    border-radius: var(--bs-border-radius, 6px);
    overflow: hidden;
}

.category-header {
    padding: 0;
    font-weight: bold;
    font-size: 1rem;
    /* color: var(--bs-body-color, #333); */
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}

.category-header h4 {
    margin: 0;
    color: var(--bs-primary-text, #333);
}

.item-row {
    border-bottom: 1px solid var(--bs-border-color, #e0e0e0);
    padding: 12px;
    display: flex;
    align-items: flex-start;
    background: var(--bs-body-bg, white);
}

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

.item-main-info {
    flex: 1;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.item-details {
    flex: 1;
    min-width: 150px;
}

.item-name {
    font-size: 1rem;
    font-weight: bold;
    color: var(--bs-body-color, #333);
    margin-bottom: 2px;
}

.item-description {
    color: var(--bs-secondary-color, #666);
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.item-color {
    color: var(--bs-muted-color, #888);
    font-size: 0.8rem;
}

.item-quantities {
    min-width: 150px;
}

.size-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.size-item {
    display: flex;
    align-items: center;
    gap: 3px;
    background: var(--bs-dark-bg-subtle, #f8f9fa);
    padding: 3px 6px;
    border-radius: var(--bs-border-radius-sm, 3px);
    border: 1px solid var(--bs-border-color, #e0e0e0);
}

.size-label {
    font-weight: bold;
    color: var(--bs-body-color, #333);
    font-size: 0.8rem;
}

.size-quantity {
    color: var(--bs-primary, #007bff);
    font-weight: bold;
    font-size: 0.8rem;
}

.item-totals {
    min-width: 100px;
    text-align: right;
}

.total-quantity {
    font-weight: bold;
    color: var(--bs-body-color, #333);
    margin-bottom: 2px;
    font-size: 0.9rem;
}

.unit-price {
    color: var(--bs-secondary-color, #666);
    font-size: 0.8rem;
    margin-bottom: 2px;
}

.total-price {
    font-weight: bold;
    color: var(--bs-success, #28a745);
    font-size: 1rem;
}


.order-summary-section {
    margin-top: 15px;
    padding: 12px;
    background: var(--bs-dark-bg-subtle, #f8f9fa);
    border-radius: var(--bs-border-radius, 6px);
    border: 1px solid var(--bs-border-color, #e0e0e0);
}

.order-summary-section h4 {
    color: var(--bs-primary-text, #333);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    padding: 2px 0;
}

.summary-label {
    color: var(--bs-secondary-color, #666);
    font-weight: 500;
}

.summary-value {
    color: var(--bs-body-color, #333);
    font-weight: bold;
}

.total-row {
    border-top: 1px solid var(--bs-primary, #007bff);
    padding-top: 6px;
    margin-top: 6px;
    font-size: 1rem;
}

.total-row .summary-label {
    color: var(--bs-body-color, #333);
    font-weight: bold;
}

.total-row .summary-value {
    color: var(--bs-success, #28a745);
    font-size: 1.1rem;
}

/* View Toggle Styles */
.view-toggle {
    margin-bottom: 10px;
}

.view-toggle .btn-group .btn {
    border-radius: 6px;
}

.view-toggle .btn.active {
    background-color: var(--bs-primary, #007bff);
    border-color: var(--bs-primary, #007bff);
    color: var(--bs-primary-text, white);
}

.forecast-view {
    transition: opacity 0.3s ease;
}
.toolbar {
    /* background-color: var(--navbar-background-color);
    color: var(--navbar-text-color);
    padding: 5px 10px 0px;
    width: 100%;

    position: fixed;
    z-index: 1000; */
    top: 86px;
    left: 60px;
    padding-right: 60px;
    justify-content: end;
    z-index:999;
    
}
/* macOS-style Controls Toolbar */
.controls-toolbar {
    background: var(--bs-body-bg, #fff);
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: var(--bs-border-radius-sm, 4px);
    padding: 8px 12px;
    box-shadow: var(--bs-box-shadow-sm, 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075));
    margin-bottom: 16px;
}

.toolbar-form {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.toolbar-input{
    border: 1px solid var(--bs-border-color, #ced4da);
    border-radius: var(--bs-border-radius-sm, 4px);
    padding: 4px 8px;
    font-size: 12px;
    height: 24px;
    line-height: 1;
    min-width: 140px;
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.toolbar-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--bs-body-color, #333);
    white-space: nowrap;
    margin: 0;
}

.toolbar-select {
    font-size: 12px;
    padding: 4px 8px;
    border: 1px solid var(--bs-border-color, #ced4da);
    border-radius: var(--bs-border-radius-sm, 4px);
    background: var(--bs-body-bg, #fff);
    color: var(--bs-body-color, #333);
    min-width: 140px;
    height: 24px;
    line-height: 1;
}

.toolbar-select:focus {
    outline: none;
    border-color: var(--bs-primary, #007bff);
    box-shadow: 0 0 0 2px var(--bs-primary-rgb, 0, 123, 255, 0.25);
}

.toolbar-button {
    font-size: 12px;
    padding: 4px 12px;
    border: 1px solid var(--bs-border-color, #ced4da);
    border-radius: var(--bs-border-radius-sm, 4px);
    background: var(--bs-secondary-bg, #f8f9fa);
    color: var(--bs-body-color, #333);
    cursor: pointer;
    height: 24px;
    line-height: 1;
    transition: all 0.1s ease;
}

.toolbar-button:hover {
    background: var(--bs-tertiary-bg, #e9ecef);
    border-color: var(--bs-border-color-translucent, #adb5bd);
}

.toolbar-button:active {
    background: var(--bs-secondary-bg-subtle, #dee2e6);
    transform: translateY(1px);
}

.toolbar-button-success {
    background: var(--bs-success, #198754);
    color: white;
    border-color: var(--bs-success, #198754);
}

.toolbar-button-success:hover {
    background: var(--bs-success-bg-subtle, #d1e7dd);
    color: var(--bs-success-text-emphasis, #0a3629);
    border-color: var(--bs-success-border-subtle, #a3cfbb);
}

/* Responsive Design */
@media (max-width: 768px) {
    .decorator-order-section {
        padding: 10px;
    }
    
    .item-row {
        flex-direction: column;
        gap: 8px;
        padding: 8px;
    }
    
    .item-main-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .order-details {
        flex-direction: column;
        gap: 5px;
    }
    
    .size-breakdown {
        justify-content: flex-start;
        gap: 6px;
    }
    
    .category-header {
        padding: 6px 8px;
        font-size: 0.9rem;
    }
    
    .toolbar-form {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .toolbar-group {
        width: 100%;
        justify-content: space-between;
    }
    
    .toolbar-select {
        min-width: 120px;
        flex: 1;
    }
}

/* Sales Chart Styling */

.chart-section .card {
  border: 1px solid var(--bs-border-color);
  border-radius: 0.375rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.chart-section .card-header {
  background-color: var(--bs-body-bg);
  border-bottom: 1px solid var(--bs-border-color);
  padding: 0.75rem 1rem;
}

.chart-section .card-header h5 {
  color: var(--bs-body-color);
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.chart-section .card-header small {
  color: var(--bs-secondary-color);
  font-size: 0.875rem;
}

.chart-section .card-body {
  padding: 1rem;
}

.chart-container {
    padding: 20px;
    margin: 0px auto 10px;
    background-color: var(--bs-secondary-bg);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background: var(--card-background-color);
    border: 1px solid var(--table-border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
    height: 400px;
    width: 100%;
}

/* Chart responsive design */
@media (max-width: 768px) {
  .chart-container {
    height: 300px;
  }
  
  .chart-section .card-header h5 {
    font-size: 1rem;
  }
  
  .chart-section .card-header small {
    font-size: 0.8rem;
  }
}

/* Chart section visibility control */
.chart-section {
    margin-top: 1rem;
    display: none; /* Start hidden by default */
    opacity: 0;
    transition: opacity 0.3s ease;
}