    body {
        font-family: "Fira Sans", sans-serif;
        font-size: 14px;
        background: #e9e9e0;
    }

    :root {
        --sidebar-width: 250px;
        --sidebar-bg: #1e293b;
        --sidebar-color: #e2e8f0;
        --header-bg: #ffffff;
        --card-bg: #ffffff;
        --primary-color: #3b82f6;
    }

    /* sidebar start */
    :root {
        --sidebar-width: 250px;
        --sidebar-collapsed-width: 70px;
        --sidebar-bg: #333;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: var(--sidebar-width);
        color: var(--sidebar-bg) !important;
        transition: all 0.3s ease;
        z-index: 1000;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    /* Collapsed state */
    .sidebar.collapsed {
        width: var(--sidebar-collapsed-width);
    }

    .sidebar.collapsed .sidebar-header {
        padding: 1.5rem 0.5rem;
    }

    .sidebar.collapsed .logo-text {
        display: none;
    }

    .sidebar.collapsed .menu-item span {
        display: none;
    }

    .sidebar.collapsed .menu-item {
        padding: 0.75rem;
        justify-content: center;
    }

    .sidebar.collapsed .menu-item i {
        margin-right: 0;
        font-size: 1.3rem;
    }

    .sidebar.collapsed .submenu {
        display: none !important;
    }

    .sidebar.collapsed .has-submenu::after {
        display: none;
    }

    /* Toggle button */
    .sidebar-toggle {
        position: absolute;
        top: 1rem;
        right: -15px;
        width: 30px;
        height: 30px;
        background-color: #fe9f43;
        color: white;
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 1001;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        transition: all 0.3s;
    }

    .sidebar-toggle:hover {
        background-color: #e88e2a;
        transform: scale(1.1);
    }

    .sidebar-toggle i {
        transition: transform 0.3s;
    }

    .sidebar.collapsed .sidebar-toggle i {
        transform: rotate(180deg);
    }

    .sidebar-header {
        padding: 1.5rem 1rem;
        align-items: center;
        display: flex;
        justify-content: space-between;
        background-color: white;
        position: relative;
    }

    .sidebar-menu {
        padding: 1rem 0;
        overflow: auto;
        height: calc(100vh - 70px);
        background-color: white;
    }

    .sidebar-menu .menu-item {
        padding: 0.75rem 1.5rem;
        text-decoration: none;
        display: flex;
        align-items: center;
        transition: all 0.2s;
        font-size: 14px;
        color: var(--sidebar-bg) !important;
        white-space: nowrap;
        overflow: hidden;
    }

    .sidebar-menu .menu-item:hover {
        background-color: #fe9f43 !important;
        color: white !important;
    }

    .sidebar-menu .menu-item.active {
        background-color: #fe9f43 !important;
        color: white !important;
    }

    .sidebar-menu .menu-item i {
        margin-right: 0.75rem;
        font-size: 1.1rem;
        min-width: 24px;
        text-align: center;
    }

    .sidebar-menu .submenu {
        padding-left: 2.5rem;
        display: none;
    }

    .sidebar-menu .has-submenu.active .submenu {
        display: block;
    }

    /* Arrow for submenu */
    .has-submenu {
        position: relative;
    }

    .has-submenu::after {
        content: '\f107';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        position: absolute;
        right: 1.5rem;
        transition: transform 0.3s;
    }

    .has-submenu.active::after {
        transform: rotate(180deg);
    }



    /*==================== sidebar end  =============*/
    /* main content */
    .main-content {
        margin-left: var(--sidebar-width);
        padding: 1.5rem;
        transition: all 0.3s;

        /* height: 140vh; */
    }

    .pos-btn {
        border-radius: 12px;
        padding: 8px 18px;
    }

    /* Icon Boxes */
    .icon-box {
        width: 38px;
        height: 38px;
        background: #ffffff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #eee;
        cursor: pointer;
        font-size: 18px;
    }

    /* Notification Badge */
    .notification-badge {
        position: absolute;
        top: -2px;
        right: -2px;
        font-size: 10px;
        border-radius: 50%;
    }

    /* User Avatar */
    .user-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid #eee;
    }

    .header {
        background-color: var(--header-bg);
        padding: 1rem 0;
        margin-bottom: 1.5rem;
        border-bottom: 1px solid #e2e8f0;
        border-radius: 5px;
    }

    .card {
        border: none;
        border-radius: 0.5rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        margin-bottom: 1.5rem;
    }

    .card-header {
        background-color: white;
        border-bottom: 1px solid #e2e8f0;
        padding: 1rem 1.5rem;
        font-weight: 600;
    }

    /* dashbord */
    /* Sales Analytics Section */
    .inventory-analytics-section {
        padding: 20px 0px 20px 0px;
    }

    .inventory-analytics-card {
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        border: 1px solid #eef2f7;
        padding: 24px;
        margin-bottom: 24px;
        height: 100%;
    }

    .inventory-analytics-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 24px;
    }

    .inventory-analytics-title {
        color: #2b2d42;
        font-size: 18px;
        font-weight: 600;
        margin: 0;
    }

    .inventory-chart-container {
        background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
        border-radius: 8px;
        padding: 20px;
        margin-bottom: 16px;
        height: 240px;
    }

    .inventory-chart-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }

    .inventory-chart-title {
        color: #6c757d;
        font-size: 14px;
    }

    .inventory-chart-legend {
        display: flex;
        gap: 12px;
    }

    .inventory-chart-badge {
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 500;
    }

    .inventory-chart-badge-primary {
        background-color: rgba(67, 97, 238, 0.1);
        color: #4361ee;
    }

    .inventory-chart-badge-success {
        background-color: rgba(6, 214, 160, 0.1);
        color: #06d6a0;
    }

    .inventory-chart-visual {
        position: relative;
    }

    .inventory-chart-bar-container {
        display: flex;
        align-items: flex-end;
        height: 100%;
    }

    .inventory-chart-bar-group {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-right: 20px;
    }

    .inventory-chart-bar {
        width: 20px;
        border-radius: 4px 4px 0 0;
    }

    .inventory-chart-bar-primary {
        background-color: #4361ee;
    }

    .inventory-chart-bar-success {
        background-color: #fe9f43;
    }

    .inventory-chart-month {
        color: #6c757d;
        font-size: 12px;
        margin-top: 8px;
    }

    /* Assignment Analytics Section */
    .assignment-analytics-card {
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        border: 1px solid #eef2f7;
        padding: 24px;
        height: 100%;
    }

    .assignment-analytics-title {
        color: #2b2d42;
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 24px;
    }

    .assignment-status-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 0;
        border-bottom: 1px solid #eef2f7;
    }

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

    .assignment-status-left {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .assignment-status-badge {
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 500;
    }

    .assignment-status-badge-assigned {
        background-color: rgba(67, 97, 238, 0.1);
        color: #4361ee;
    }

    .assignment-status-badge-available {
        background-color: rgba(6, 214, 160, 0.1);
        color: #06d6a0;
    }

    .assignment-status-badge-maintenance {
        background-color: rgba(255, 209, 102, 0.1);
        color: #ffd166;
    }

    .assignment-status-percentage {
        color: #2b2d42;
        font-weight: 600;
        font-size: 14px;
    }

    .assignment-status-right {
        text-align: right;
    }

    .assignment-status-label {
        color: #6c757d;
        font-size: 12px;
    }

    .assignment-status-count {
        color: #2b2d42;
        font-weight: 600;
        font-size: 16px;
    }

    .assignment-donut-container {
        position: relative;
        text-align: center;
        margin: 24px 0;
    }

    .assignment-donut-wrapper {
        display: inline-block;
        position: relative;
    }

    .assignment-donut-center {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
    }

    .assignment-donut-total {
        color: #2b2d42;
        font-size: 24px;
        font-weight: 700;
        line-height: 1.2;
    }

    .assignment-donut-label {
        color: #6c757d;
        font-size: 12px;
    }

    .assignment-stats-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        text-align: center;
        margin-top: 20px;
    }

    .assignment-stat-value {
        color: #2b2d42;
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 4px;
    }

    .assignment-stat-label {
        color: #6c757d;
        font-size: 12px;
    }

    /* Responsive adjustments */
    @media (max-width: 992px) {
        .inventory-metrics-grid {
            grid-template-columns: repeat(2, 1fr);
        }

        .assignment-stats-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

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

        .inventory-chart-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 12px;
        }

        .inventory-chart-legend {
            width: 100%;
            justify-content: space-between;
        }

        .assignment-stats-grid {
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
        }
    }

    /* Dropdown custom styles */
    .inventory-dropdown-toggle {
        background: white;
        border: 1px solid #dee2e6;
        color: #6c757d;
        font-size: 14px;
        padding: 6px 12px;
        border-radius: 6px;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .inventory-dropdown-toggle:hover {
        background: #f8f9fa;
        border-color: #adb5bd;
    }

    .inventory-dropdown-menu {
        border: 1px solid #eef2f7;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        padding: 8px 0;
    }

    .inventory-dropdown-item {
        padding: 8px 16px;
        color: #495057;
        font-size: 14px;
    }

    .inventory-dropdown-item:hover {
        background-color: #f8f9fa;
        color: #2b2d42;
    }

    .stats-card {
        text-align: center;
        padding: 1.5rem;
        border-radius: 10px 10px 10px;
        box-shadow: 1px 1px 7px 1px #fe9f43;
    }

    .stats-card .value {
        font-size: 1.75rem;
        font-weight: 700;
        margin: 0.5rem 0;
    }

    .stats-card .label {
        color: #64748b;
        font-size: 0.875rem;
    }

    .stats-card .icon {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 1rem;
        font-size: 1.5rem;
    }

    .customer-stats .stats-card {
        border-right: 1px solid #e2e8f0;
    }

    .customer-stats .stats-card:last-child {
        border-right: none;
    }

    .table th {
        color: var(--text-secondary);
        font-weight: 600;
        font-size: 0.875rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        border-bottom: 1px solid var(--card-border);
        padding: 1rem 0.75rem;
        background: #f8fafc;
    }

    table tbody tr:hover {
        background-color: #f8fafc;
    }

    .table td {
        padding: 1rem 0.75rem;
        vertical-align: middle;
        border-bottom: 1px solid var(--card-border);
        color: var(--text-primary);
        font-weight: 500;
        align-items: center;
    }

    /* ================= */
    /* page-header of category all page */
    .page-header {
        background: white;
        border-bottom: 1px solid #e2e8f0;
        padding: 1.5rem 0;
        margin-bottom: 2rem;
        border-radius: 8px;
    }

    .page-title {
        color: var(--text-primary);
        font-weight: 700;
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .page-subtitle {
        color: var(--text-secondary);
        font-size: 1rem;
        margin-bottom: 0;
    }


    .search-box {
        position: relative;
        max-width: 300px;
    }

    .search-box .form-control {
        padding-left: 2.5rem;
        border-radius: 0.5rem;
        border: 1px solid #d1d5db;
        font-size: 0.875rem;
    }

    .search-box .bi-search {
        position: absolute;
        left: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-muted);
    }

    .sidebar .badge {
        font-size: 0.75rem;
        font-weight: 600;
        padding: 0.375rem 0.75rem;
        border-radius: 0.375rem;
    }

    .status-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
    }

    .status-badge::before {
        content: "";
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: currentColor;
    }

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

    .empty-state .bi {
        font-size: 3rem;
        margin-bottom: 1rem;
        opacity: 0.5;
    }

    .add-btn {
        background-color: #fe9f43;
        color: white;
        border-radius: 0.5rem;
        padding: 0.5rem 1rem;
        font-weight: 600;
        transition: background-color 0.2s;
    }

    .add-btn:hover {
        background-color: #e07b2f;
        color: white;
    }

    @media (max-width: 768px) {
        .page-title {
            font-size: 1.5rem;
        }

        .search-box {
            max-width: 100%;
            margin-top: 1rem;
        }

        .table-responsive {
            font-size: 0.875rem;
        }

        .action-buttons .btn {
            padding: 0.25rem 0.5rem;
            font-size: 0.75rem;
        }
    }

    /*  =====================*/
    /* model */

    .demo-btn {
        background: var(--primary-color);
        color: white;
        border: none;
        padding: 0.75rem 1.5rem;
        border-radius: 0.5rem;
        font-weight: 500;
        transition: all 0.2s ease;
    }

    .demo-btn:hover {
        background: #2563eb;
        transform: translateY(-1px);
    }

    /* Modal Styles */
    .modal-content {
        border: none;
        border-radius: 0.75rem;
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    }

    .modal-header {
        border-bottom: 1px solid var(--border-color);
        padding: 1.5rem 1.5rem 0;
        background: transparent;
    }

    .modal-title {
        color: var(--text-primary);
        font-weight: 700;
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-footer {
        border-top: 1px solid var(--border-color);
        padding: 1rem 1.5rem 1.5rem;
        background: transparent;
    }

    .form-label {
        color: var(--text-primary);
        font-weight: 600;
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
        display: block;
    }

    /* Focused state for all inputs/selects/textarea/etc */
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):focus,
    select:focus,
    textarea:focus,
    .form-control:focus,
    .form-select:focus,
    .form-range:focus,
    .form-check-input:focus,
    .form-file-input:focus {
        outline: 2px solid #fe9f43 !important;
        box-shadow: 0 0 0 0.25rem rgba(254, 159, 67, 0.25) !important;
        border-color: #fe9f43 !important;
    }

    /* Checkboxes & radios focus */
    .form-check-input:focus {
        box-shadow: 0 0 0 0.25rem rgba(254, 159, 67, 0.25) !important;
        border-color: #fe9f43 !important;
    }

    /* Override Bootstrap 'is-invalid' default red */
    input.is-invalid,
    select.is-invalid,
    textarea.is-invalid,
    .form-control.is-invalid,
    .form-select.is-invalid,
    .form-range.is-invalid,
    .form-check-input.is-invalid,
    .form-file-input.is-invalid {
        border-color: #fe9f43 !important;
        box-shadow: 0 0 0 0.25rem rgba(254, 159, 67, 0.25) !important;
    }

    .form-label.required::after {
        content: " *";
        color: var(--danger-color);
    }

    .form-control {
        border: 1px solid #fe9f43;
        border-radius: 0.5rem;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        transition: all 0.2s ease;
        color: var(--text-primary);
    }

    .form-select {
        border: 1px solid #fe9f43;
        border-radius: 0.5rem;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        transition: all 0.2s ease;
        color: var(--text-primary);
    }

    .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        outline: none;
    }

    .form-control::placeholder {
        color: var(--text-muted);
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-hint {
        color: var(--text-muted);
        font-size: 0.75rem;
        margin-top: 0.25rem;
        display: block;
    }

    /* Animation for modal */
    .modal.fade .modal-dialog {
        transform: translateY(-50px);
        transition: transform 0.3s ease-out;
    }

    .modal.show .modal-dialog {
        transform: translateY(0);
    }

    @media (max-width: 576px) {
        .modal-dialog {
            margin: 1rem;
        }

        .modal-body {
            padding: 1.25rem;
        }

        .modal-footer {
            padding: 1rem 1.25rem 1.25rem;
        }
    }

    /* ===================== */
    .stock-card {
        border-radius: 16px;
        transition: transform 0.2s ease-in-out;
        box-shadow: 1px 1px 7px 1px #fe9f43 !important;
    }

    .stock-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 22px rgba(0, 0, 0, 0.12);
    }

    .divider {
        height: 1px;
        background: #e9ecef;
    }

    /*  */
    /* ===================== */
    /*  */
    /* ===================== */
    /*  */
    /* ===================== */
    /* media query */


    /* Media query for medium screens */
    @media (max-width: 992px) {

        .main-content {
            margin: 10px 10px 10px 50px;
        }

        .sidebar {
            transform: translateX(-100%);
            width: var(--sidebar-width);
        }

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

        .sidebar.collapsed {
            width: var(--sidebar-width);
        }

        .sidebar.collapsed .menu-item span {
            display: inline;
        }

        .sidebar.collapsed .menu-item {
            padding: 0.75rem 1.5rem;
            justify-content: flex-start;
        }

        .sidebar.collapsed .menu-item i {
            margin-right: 0.75rem;
        }

        /* Overlay for mobile */
        .sidebar-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 999;
        }

        .sidebar-overlay.show {
            display: block;
        }

        /* Toggle button for mobile */
        .mobile-toggle {
            position: fixed;
            top: 1rem;
            left: 1rem;
            width: 40px;
            height: 40px;
            background-color: #fe9f43;
            color: white;
            border: none;
            border-radius: 5px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 998;
            font-size: 25px;
        }
    }

    /* For desktop: always show collapse/expand */
    @media (min-width: 993px) {
        .mobile-toggle {
            display: none;
        }

        .sidebar-overlay {
            display: none !important;
        }
    }

    @media (max-width: 768px) {
        .justify-content-md-end {
            justify-content: space-between !important;
            gap: 21px;
        }

        .add-btn {
            font-size: 14px;
            padding: 5px;
        }
    }

    /* @media (max-width: 425px) {
        .add-btn {
            font-size: 14px;
            padding: 5px;
        }
    } */
