        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: Arial, sans-serif;
            background-color: #f5f5f5;
        }

        .main-wrapper {
            margin-left: 239px;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }
        /* Sidebar Styles */
        .sidebar {
            width: 240px;
            height: 100vh;
            background: linear-gradient(to bottom, #2d4a5e 0%, #1a2e3d 100%);
            position: fixed;
            left: 0;
            top: 0;
            color: white;
            overflow-y: auto;
        }

        .logo-section {
            background-color: #1a3447;
            padding: 15px 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .logo {
            width: 50px;
            height: 50px;
            background-color: #0066cc;
            border-radius: 50%;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: bold;
        }
        .logo img{
            object-fit: cover;
            width: 100%;
            height: 100%;
        }

        .logo-text {
            font-size: 25px;
            font-weight: bold;
            letter-spacing: 1px;
        }

        .profile-section {
            text-align: center;
            padding: 20px 20px;
        }

        .profile-image {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            background-color: #ddd;
            margin: 0 auto 20px;
            border: 5px solid white;
        }

        .profile-name {
            font-size: 18px;
            font-weight: bold;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .menu {
            padding: 0px 0;
        }

        .menu-item {
            padding: 7px 25px  !important;
            display: flex;
            align-items: center;
            gap: 15px;
            cursor: pointer;
            transition: background-color 0.3s;
            font-size: 13px;
            font-weight: 500;
            position: relative;
        }

        

        .menu-item.active {
            background-color: #00a896;
        }

        .menu-item.active::after {
            content: attr(data-id);
            position: absolute;
            right: 20px;
            font-size: 14px;
            color: rgba(255, 255, 255, 0.8);
        }

        .menu-icon {
            width: 24px;
            font-size: 14px;
        }

        .color-code {
            text-align: center;
            padding: 20px;
            font-size: 18px;
            font-weight: bold;
            color: #00a896;
        }

        /* Header Styles */
        .header {
            /* margin-left: 290px; */
            background-color: white;
            padding: 20px 40px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        .welcome-text {
            font-size: 18px;
        }

        .color-display {
            color: #666;
            font-family: monospace;
        }

        .datetime-btn {
            background-color: white;
            border: 2px solid #ddd;
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
            font-weight: bold;
        }

        .profile-icon {
            width: 40px;
            height: 40px;
            background-color: #ddd;
            border-radius: 50%;
            cursor: pointer;
        }

        /* Content Styles */
        .content {
            width: 100%;
            /* margin-left: 290px; */
            padding: 40px;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            margin-bottom: 40px;
        }

        .stat-card {
            background-color: white;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        .stat-title {
            font-size: 16px;
            font-weight: bold;
            margin-bottom: 15px;
            text-transform: uppercase;
        }

        .stat-value {
            font-size: 32px;
            font-weight: bold;
            color: #333;
        }

        .graph-section {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 20px;
        }

        .graph-card {
            background-color: white;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        .card-title {
            font-size: 20px;
            font-weight: bold;
            margin-bottom: 20px;
        }

        .color-blocks {
            display: flex;
            flex-direction: column;
            gap: 20px;
            margin: 20px 0;
        }

        .color-block {
            padding: 20px;
            border-radius: 8px;
            color: white;
            font-family: monospace;
            font-size: 18px;
            font-weight: bold;
            text-align: center;
        }

        .customers-section {
            height: 400px;
            background-color: #f9f9f9;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #999;
        }

        .footer {
            /* margin-left: 290px; */
            background-color: #2d4a5e;
            color: white;
            text-align: center;
            padding: 15px;
            font-size: 14px;
        }
        .section-padding{
            padding: 60px 50px !important;
        }
    .inventory-container {
        /* background-color: #f5f5f5; */
        padding: 20px;
        min-height: 100vh;
    }
    
    .color-badges {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .color-badge {
        display: flex;
        align-items: center;
        gap: 10px;
        font-weight: bold;
    }
    
    .star-badge {
        width: 50px;
        height: 50px;
        background: #1abc9c;
        clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    }
    
    .star-badge.blue {
        background: #3498db;
    }
    
    .star-badge.dark {
        background: #2c3e50;
    }
    
    .star-badge.red {
        background: #e74c3c;
    }
    
    .inventory-card {
        width: 100%;
        background: white;
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        padding: 30px;
    }
    
    .inventory-header h2 {
        font-size: 28px;
        font-weight: bold;
        margin-bottom: 5px;
    }
    
    .inventory-header p {
        color: #999;
        margin-bottom: 20px;
    }
    
    .action-buttons {
        display: flex;
        gap: 10px;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }
    
    .btn-turquoise {
        background-color: #1abc9c;
        color: white;
        border: none;
    }
    
    .btn-turquoise:hover {
        background-color: #16a085;
        color: white;
    }
    
    .btn-blue {
        background-color: #3498db;
        color: white;
        border: none;
    }
    
    .btn-blue:hover {
        background-color: #2980b9;
        color: white;
    }
    
    .search-section {
        display: flex;
        gap: 10px;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }
    
    .search-section select,
    .search-section input {
        border: 1px solid #ddd;
        padding: 8px 12px;
        border-radius: 5px;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .inventory-table {
        width: 100%;
        margin-bottom: 0;
    }
    
    .inventory-table thead {
        background-color: #34495e;
        color: white;
    }
    
    .inventory-table thead th {
        padding: 15px 10px;
        font-weight: 600;
        border: none;
        font-size: 14px;
    }
    
    .inventory-table tbody tr {
        background-color: #f9f9f9;
        border-bottom: 8px solid white;
    }
    
    .inventory-table tbody tr:hover {
        background-color: #f0f0f0;
    }
    
    .inventory-table tbody td {
        padding: 15px 10px;
        vertical-align: middle;
        font-size: 14px;
        border: none;
    }
    
    .reorder-badge {
        display: inline-block;
        padding: 4px 12px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: bold;
    }
    
    .reorder-no {
        background-color: #d4edda;
        color: #28a745;
    }
    
    .reorder-yes {
        background-color: #f8d7da;
        color: #dc3545;
    }
    
    .action-btns {
        display: flex;
        gap: 5px;
    }
    
    .btn-edit {
        background-color: #3498db;
        color: white;
        border: none;
        padding: 5px 10px;
        border-radius: 4px;
        font-size: 12px;
    }
    
    .btn-delete {
        background-color: #e74c3c;
        color: white;
        border: none;
        padding: 5px 10px;
        border-radius: 4px;
        font-size: 12px;
    }
    
    .footer-badge {
        text-align: center;
        margin-top: 30px;
    }
    
    .circle-badge {
        width: 80px;
        height: 80px;
        background-color: #f9eae8;
        border-radius: 50%;
        margin: 0 auto;
        margin-bottom: 10px;
    }


      
    
    .color-badges {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .color-badge {
        display: flex;
        align-items: center;
        gap: 10px;
        font-weight: bold;
    }
    
    .star-badge {
        width: 50px;
        height: 50px;
        background: #1abc9c;
        clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    }
    
    .star-badge.blue {
        background: #3498db;
    }
    
    .star-badge.dark {
        background: #2c3e50;
    }
    
    .star-badge.red {
        background: #e74c3c;
    }
    
    .inventory-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    /* max-width: 1014px; */
    right: 0;
    /* float: right; */
}
    
    .inventory-header h2 {
        font-size: 28px;
        font-weight: bold;
        margin-bottom: 5px;
    }
    
    .inventory-header p {
        color: #999;
        margin-bottom: 20px;
    }
    
    .action-buttons {
        display: flex;
        gap: 10px;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }
    
    .btn-turquoise {
        background-color: #1abc9c;
        color: white;
        border: none;
    }
    
    .btn-turquoise:hover {
        background-color: #16a085;
        color: white;
    }
    
    .btn-blue {
        background-color: #3498db;
        color: white;
        border: none;
    }
    
    .btn-blue:hover {
        background-color: #2980b9;
        color: white;
    }
    
    .search-section {
        display: flex;
        gap: 10px;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }
    
    .search-section select,
    .search-section input {
        border: 1px solid #ddd;
        padding: 8px 12px;
        border-radius: 5px;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .inventory-table {
        width: 100%;
        margin-bottom: 0;
    }
    
    .inventory-table thead {
        background-color: #34495e;
        color: white;
    }
    
    .inventory-table thead th {
        padding: 15px 10px;
        font-weight: 600;
        border: none;
        font-size: 14px;
    }
    
    .inventory-table tbody tr {
        background-color: #f9f9f9;
        border-bottom: 8px solid white;
    }
    
    .inventory-table tbody tr:hover {
        background-color: #f0f0f0;
    }
    
    .inventory-table tbody td {
        padding: 15px 10px;
        vertical-align: middle;
        font-size: 14px;
        border: none;
    }
    
    .reorder-badge {
        display: inline-block;
        padding: 4px 12px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: bold;
    }
    
    .reorder-no {
        background-color: #d4edda;
        color: #28a745;
    }
    
    .reorder-yes {
        background-color: #f8d7da;
        color: #dc3545;
    }
    
    .action-btns {
        display: flex;
        gap: 5px;
    }
    
    .btn-edit {
        background-color: #3498db;
        color: white;
        border: none;
        padding: 5px 10px;
        border-radius: 4px;
        font-size: 12px;
    }
    
    .btn-delete {
        background-color: #e74c3c;
        color: white;
        border: none;
        padding: 5px 10px;
        border-radius: 4px;
        font-size: 12px;
    }
    
    .footer-badge {
        text-align: center;
        margin-top: 30px;
    }
    
    .circle-badge {
        width: 80px;
        height: 80px;
        background-color: #f9eae8;
        border-radius: 50%;
        margin: 0 auto;
        margin-bottom: 10px;
    }
    a{
        text-decoration: none !important;
        color: white !important;
    }




























        /* Sales Table Styling */
        .sales-table thead th {
            background-color: #000 !important;
            color: #fff !important;
            padding: 12px 15px;
        }

        .sales-table td {
            padding: 10px 15px;
            vertical-align: middle;
        }

        .sales-table tbody tr:hover {
            background-color: #f8f9fa;
        }

        .balance-positive {
            color: #28a745;
            font-weight: 600;
        }

        .balance-negative {
            color: #dc3545;
            font-weight: 600;
        }

        .balance-zero {
            color: #6c757d;
        }

        /* Modal Styling */
        .sales-modal {
            display: none;
            position: fixed;
            z-index: 1050;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
        }

        .modal-content {
            background: #fff;
            margin: 3% auto;
            padding: 25px;
            border-radius: 10px;
            width: 90%;
            max-width: 1000px;
            max-height: 85vh;
            overflow-y: auto;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-bottom: 15px;
            border-bottom: 2px solid #f0f0f0;
            margin-bottom: 20px;
        }

        .modal-header h3 {
            margin: 0;
            color: #333;
            font-size: 1.5rem;
        }

        .close-modal {
            background: none;
            border: none;
            cursor: pointer;
            color: #888;
            font-size: 24px;
            line-height: 1;
        }

        .close-modal:hover {
            color: #000;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-row {
            display: flex;
            gap: 15px;
            margin-bottom: 15px;
        }

        .form-row .form-group {
            flex: 1;
            margin-bottom: 0;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #555;
            font-size: 14px;
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 14px;
            transition: border-color 0.3s;
        }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            border-color: #007bff;
            outline: none;
            box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
        }

        .form-group input[readonly] {
            background-color: #f8f9fa;
            cursor: not-allowed;
        }

        /* Enhanced Select Styling */
        .enhanced-select {
            position: relative;
            width: 100%;
        }

        .select-search {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 14px;
            background: white;
        }

        .select-search:focus {
            border-color: #007bff;
            outline: none;
        }

        .select-dropdown {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            max-height: 250px;
            overflow-y: auto;
            background: white;
            border: 1px solid #ddd;
            border-radius: 6px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            margin-top: 5px;
        }

        .select-dropdown.active {
            display: block;
        }

        .select-option {
            padding: 10px 15px;
            cursor: pointer;
            transition: background 0.2s;
            border-bottom: 1px solid #f5f5f5;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .select-option:last-child {
            border-bottom: none;
        }

        .select-option:hover {
            background: #f8f9fa;
        }

        .select-option.selected {
            background: #e7f3ff;
            border-left: 3px solid #007bff;
        }

        .option-icon {
            font-size: 14px;
            width: 20px;
            text-align: center;
        }

        .option-text {
            flex: 1;
        }

        .option-details {
            font-size: 12px;
            color: #666;
            margin-top: 2px;
        }

        /* Items Section Styling */
        .items-section {
            margin: 20px 0;
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 20px;
            background: #fafafa;
        }

        .items-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #eee;
        }

        .items-header h4 {
            margin: 0;
            color: #333;
            font-size: 1.2rem;
        }

        .items-list {
            margin: 20px 0;
        }

        .item-row {
            display: flex;
            gap: 15px;
            margin-bottom: 15px;
            padding: 15px;
            background: white;
            border-radius: 8px;
            border: 1px solid #e9ecef;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            align-items: flex-end;
        }

        .item-row .form-group {
            margin-bottom: 0;
        }

        .item-row .form-group label {
            font-size: 12px;
            color: #666;
            margin-bottom: 5px;
        }

        .remove-item {
            background: #dc3545;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            padding: 10px 15px;
            align-self: center;
            transition: background 0.3s;
            height: 40px;
        }

        .remove-item:hover {
            background: #c82333;
        }

        .items-summary {
            margin-top: 20px;
            padding: 20px;
            background: #e7f3ff;
            border-radius: 8px;
            border: 1px solid #cfe2ff;
        }

        .summary-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
            padding-bottom: 8px;
            border-bottom: 1px dashed #b6d4fe;
        }

        .summary-row:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }

        .summary-label {
            font-weight: 600;
            color: #495057;
        }

        .summary-value {
            font-weight: 700;
            color: #212529;
            font-size: 1.1rem;
        }

        .item-badge {
            display: inline-block;
            background: #e9ecef;
            padding: 4px 8px;
            border-radius: 4px;
            margin: 2px;
            font-size: 12px;
            color: #495057;
            border: 1px solid #dee2e6;
        }

        /* Button Styling */
        .btn {
            padding: 10px 24px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.3s;
        }

        .btn-success {
            background: #28a745;
            color: #fff;
        }

        .btn-success:hover {
            background: #218838;
            transform: translateY(-1px);
        }

        .btn-primary {
            background: #007bff;
            color: #fff;
        }

        .btn-primary:hover {
            background: #0056b3;
            transform: translateY(-1px);
        }

        .btn-secondary {
            background: #6c757d;
            color: #fff;
        }

        .btn-secondary:hover {
            background: #545b62;
        }

        .btn-danger {
            background: #dc3545;
            color: #fff;
        }

        .btn-danger:hover {
            background: #c82333;
            transform: translateY(-1px);
        }

        .btn-outline-secondary {
            padding: 8px 16px;
            border: 1px solid #6c757d;
            background: transparent;
            color: #6c757d;
            border-radius: 4px;
            cursor: pointer;
        }

        .btn-outline-secondary:hover {
            background: #6c757d;
            color: white;
        }

        .btn-sm {
            padding: 6px 12px;
            font-size: 12px;
        }

        /* Action Buttons */
        .action-btns {
            display: flex;
            gap: 8px;
        }

        .action-btn {
            padding: 6px 12px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .action-btn i {
            font-size: 12px;
        }

        .btn-edit {
            background: #28a745;
            color: white;
        }

        .btn-edit:hover {
            background: #218838;
        }

        .btn-delete {
            background: #dc3545;
            color: white;
        }

        .btn-delete:hover {
            background: #c82333;
        }

        .btn-view {
            background: #17a2b8;
            color: white;
        }

        .btn-view:hover {
            background: #138496;
        }

        /* Header Styling */
        .sales-header {
            margin-bottom: 30px;
        }

        .sales-header h2 {
            margin: 0 0 10px 0;
            color: #333;
            font-size: 2rem;
        }

        .sales-header p {
            color: #666;
            margin: 0;
        }

        /* Search and Filters */
        .search-section {
            display: flex;
            gap: 10px;
            margin: 20px 0;
            align-items: center;
            flex-wrap: wrap;
        }

        .search-section .form-control {
            flex: 1;
            min-width: 200px;
            max-width: 300px;
            padding: 8px 12px;
        }

        .search-section .form-select {
            width: 150px;
            padding: 8px 12px;
        }

        /* Alert Messages */
        .alert {
            padding: 12px 15px;
            border-radius: 6px;
            margin-bottom: 20px;
            display: none;
            animation: slideIn 0.3s ease-out;
        }

        .alert-success {
            background: #d4edda;
            color: #155724;
            border-left: 4px solid #28a745;
        }

        .alert-danger {
            background: #f8d7da;
            color: #721c24;
            border-left: 4px solid #dc3545;
        }

        .alert-info {
            background: #d1ecf1;
            color: #0c5460;
            border-left: 4px solid #17a2b8;
        }

        /* Animations */
        @keyframes slideIn {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .loading-spinner {
            display: inline-block;
            width: 16px;
            height: 16px;
            border: 2px solid #f3f3f3;
            border-top: 2px solid #3498db;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        /* View Details Modal Styling */
        .details-grid {
            display: grid;
            gap: 12px;
        }

        .detail-row {
            display: flex;
            justify-content: space-between;
            padding: 8px 0;
            border-bottom: 1px solid #f0f0f0;
        }

        .detail-row:last-child {
            border-bottom: none;
        }

        .detail-label {
            font-weight: 600;
            color: #555;
        }

        .detail-value {
            color: #333;
        }

        /* Inventory item in table */
        .inventory-items {
            max-width: 250px;
        }

        .inventory-item {
            background: #e9ecef;
            padding: 4px 8px;
            border-radius: 4px;
            margin: 2px 0;
            font-size: 12px;
            display: flex;
            justify-content: space-between;
        }