    :root {
      --main-bg-color: #f8f9fa;
      --sidebar-bg-color: #212529;
      --primary-color: #0d6efd;
      --secondary-color: #6c757d;
      --success-color: #198754;
      --danger-color: #dc3545;
      --warning-color: #ffc107;
      --info-color: #0dcaf0;
      --sidebar-text-color: #e9ecef;
      --sidebar-active-item: #0d6efd;
      --sidebar-hover-bg: rgba(116, 62, 62, 0.936);
      --sidebar-width: 200px;
    }
    
    body {
      background-color: var(--main-bg-color);
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      overflow-x: hidden;
      padding: 0;
      margin: 0;
    }
    
    #sidebar-wrapper {
      min-height: 100vh;
      width: var(--sidebar-width);
      position: fixed;
      left: 0;
      top: 0;
      height: 100%;
      z-index: 999;
      background: linear-gradient(180deg, #1e3a5f 0%, #2c3e50 100%);
      color: var(--sidebar-text-color);
      transition: all 0.3s ease-in-out;
      box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15);
      display: flex;
      flex-direction: column;
      overflow-y: auto;
    }
    
    #sidebar-wrapper .sidebar-heading {
      padding: 1.5rem 1rem;
      font-size: 1.5rem;
      font-weight: bold;
      letter-spacing: 1px;
      color: white;
      background-color: rgba(0, 0, 0, 0.2);
      text-align: center;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    #sidebar-wrapper .sidebar-heading i {
      font-size: 1.75rem;
      animation: pulse 2s infinite;
    }
    
    @keyframes pulse {
      0% { transform: scale(1); }
      50% { transform: scale(1.1); }
      100% { transform: scale(1); }
    }
    
    #sidebar-wrapper .list-group {
      flex: 1 1 auto;
      display: flex;
      flex-direction: column;
      padding-bottom: 0;
    }
    
    #sidebar-wrapper .list-group-item {
      border: none;
      border-radius: 0;
      color: var(--sidebar-text-color);
      font-weight: 500;
      font-size: 0.95rem;
      padding: 0.85rem 1.2rem;
      margin: 0.2rem 0.6rem;
      border-radius: 10px;
      transition: all 0.25s ease;
      background-color: transparent;
      position: relative;
      overflow: hidden;
      display: flex;
      align-items: center;
      gap: 0.8rem;
    }
    
    #sidebar-wrapper .list-group-item i {
      font-size: 1.15rem;
      min-width: 22px;
      text-align: center;
    }
    
    #sidebar-wrapper .list-group-item span, #sidebar-wrapper .list-group-item small {
      font-size: 0.98rem;
    }
    
    #sidebar-wrapper .list-group-item.active, #sidebar-wrapper .list-group-item:hover {
      background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
      color: #fff;
      box-shadow: 0 3px 12px rgba(40,167,69,0.3);
      transform: translateX(5px);
    }
    
    #sidebar-wrapper .list-group-item.active::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      height: 100%;
      width: 4px;
      background-color: #fff;
    }
    
    #sidebar-wrapper .list-group-item:last-child {
      margin: 0.6rem;
      border-radius: 10px;
      border-top: 1px solid rgba(236, 223, 223, 0.1);
      background: #18204a;
      color: #fff;
      font-weight: bold;
      text-align: center;
      box-shadow: 0 -2px 8px rgba(13,110,253,0.08);
      transition: background 0.2s, color 0.2s;
    }
    
    #sidebar-wrapper .list-group-item:last-child:hover {
      background: #dc3545;
      color: #fff;
    }
    
    #page-content-wrapper {
      width: calc(100% - var(--sidebar-width));
      margin-left: var(--sidebar-width);
      min-height: 100vh;
      transition: all 0.3s ease-in-out;
      position: relative;
    }
    
    .navbar {
      background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
      box-shadow: 0 4px 20px rgba(40, 167, 69, 0.3);
      height: 65px;
      padding: 0 2rem;
      border-bottom: 3px solid rgba(255,255,255,0.2);
    }
    
    .navbar h2 {
      color: white !important;
      text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .navbar .nav-link {
      color: white !important;
    }
    
    .navbar .dropdown-toggle {
      color: white !important;
    }
    
    .navbar .dropdown-toggle span {
      color: white !important;
    }
    
    .navbar .dropdown-toggle small {
      color: rgba(255,255,255,0.9) !important;
    }
    
    .navbar .dropdown-menu {
      right: 0;
      left: auto;
      margin-top: 0.5rem;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
      border: none;
      border-radius: 8px;
    }
    
    .navbar .dropdown-item {
      padding: 0.6rem 1.2rem;
      font-weight: 500;
    }
    
    .navbar .dropdown-item:hover {
      background-color: #f8f9fa;
    }
    
    .navbar-toggler {
      border: none;
      font-size: 1.25rem;
    }
    
    .navbar-toggler:focus {
      box-shadow: none;
    }
    
    #menu-toggle {
      cursor: pointer;
      color: white;
      padding: 0.5rem;
      border-radius: 8px;
      transition: all 0.2s ease;
      background: rgba(255,255,255,0.15);
    }
    
    #menu-toggle:hover {
      background: rgba(255,255,255,0.25);
      transform: scale(1.05);
    }
    
    .card {
      border: none;
      border-radius: 10px;
      box-shadow: 0 0 15px rgba(230, 126, 126, 0.717);
      margin-bottom: 25px;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      overflow: hidden;
    }
    
    .card:hover {
      transform: translateY(-5px);
      box-shadow: 0 5px 20px rgba(210, 185, 185, 0.836);
    }
    
    .card-header {
      background-color: white;
      border-bottom: 1px solid rgba(197, 177, 177, 0.888);
      border-top-left-radius: 10px !important;
      border-top-right-radius: 10px !important;
      padding: 15px 20px;
      font-weight: 600;
    }
    
    .dashboard-card {
      border-radius: 12px;
      padding: 20px;
      position: relative;
      overflow: hidden;
      z-index: 1;
      background: #2d2d2d;
      color: white;
      border: none;
      box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
      height: 160px;
      margin-bottom: 20px;
      transition: all 0.3s ease;
    }
    
    .dashboard-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
    }
    
    .dashboard-card h3 {
      font-size: 28px;
      font-weight: 700;
      margin-bottom: 5px;
      letter-spacing: 0.5px;
    }
    
    .dashboard-card .card-title {
      font-size: 16px;
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 1px;
      opacity: 0.7;
      margin-bottom: 15px;
    }
    
    .dashboard-card .icon {
      position: absolute;
      right: 15px;
      bottom: 15px;
      font-size: 4rem;
      opacity: 0.2;
      z-index: -1;
      transition: all 0.3s ease;
    }
    
    .dashboard-card:hover .icon {
      transform: translateY(-10px) rotate(15deg);
      opacity: 0.3;
    }
    
    .dashboard-card p {
      position: relative;
      z-index: 1;
      margin-bottom: 0;
      font-size: 14px;
    }
    
    .dashboard-card .percentage {
      display: inline-flex;
      align-items: center;
      padding: 4px 8px;
      border-radius: 12px;
      font-weight: 500;
      font-size: 14px;
      margin-right: 5px;
    }
    
    .dashboard-card .percentage i {
      margin-right: 4px;
      font-size: 12px;
    }
    
    .dashboard-card.revenue {
      background: linear-gradient(135deg, #0dcaf0 0%, #0a93b0 100%);
      border-color: #0dcaf0;
      color: white;
    }
    
    .dashboard-card.orders {
      background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
      border-color: #0d6efd;
      color: white;
    }
    
    .dashboard-card.customers {
      background: linear-gradient(135deg, #ffc107 0%, #e5ac06 100%);
      border-color: #ffc107;
      color: #212529;
    }
    
    .dashboard-card.products {
      background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
      border-color: #dee2e6;
      color: #212529;
    }
    
    .btn-custom {
      padding: 8px 20px;
      border-radius: 5px;
      font-weight: 500;
      transition: all 0.3s;
      box-shadow: 0 2px 5px rgba(237, 232, 232, 0.82);
    }
    
    .btn-custom:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(219, 203, 203, 0.756);
    }
    
    .btn-custom:active {
      transform: translateY(1px);
      box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
    }
    
    .table {
      border-collapse: separate;
      border-spacing: 0;
    }
    
    .table th {
      background-color: #f8f9fa;
      font-weight: 600;
      border: none;
    }
    
    .table td {
      vertical-align: middle;
      border-color: #f0f0f0;
    }
    
    .badge {
      padding: 7px 12px;
      font-weight: 500;
    }
    
    .product-image {
      width: 50px;
      height: 50px;
      object-fit: cover;
      border-radius: 5px;
    }
    
    .tab-content {
      padding: 20px 0;
    }
    
    .section-content {
      display: none;
    }
    
    .section-content.active {
      display: block;
    }
    
    #loader {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(255, 255, 255, 0.7);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 9999;
    }
    
    .spinner-border {
      width: 3rem;
      height: 3rem;
    }
    
    .notification-badge {
      position: absolute;
      top: -5px;
      right: -5px;
      padding: 0.25rem 0.6rem;
      font-size: 0.75rem;
      line-height: 1;
      border-radius: 10px;
      background-color: var(--danger-color);
      color: white;
      font-weight: bold;
      border: 2px solid white;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
      animation: pulse-light 2s infinite;
    }
    
    @keyframes pulse-light {
      0% { transform: scale(1); }
      50% { transform: scale(1.05); }
      100% { transform: scale(1); }
    }
    
    @media (max-width: 992px) {
      :root {
        --sidebar-width: 170px;
      }
      
      #page-content-wrapper {
        width: calc(100% - var(--sidebar-width));
        margin-left: var(--sidebar-width);
      }
    }
    
    @media (max-width: 768px) {
      :root {
        --sidebar-width: 260px;
      }
      
      #sidebar-wrapper {
        margin-left: calc(-1 * var(--sidebar-width));
        width: var(--sidebar-width);
        z-index: 1050;
      }
      
      #page-content-wrapper {
        margin-left: 0;
        width: 100%;
        transition: transform 0.3s ease-in-out;
        position: relative;
        z-index: 1;
      }
      
      #wrapper.toggled #sidebar-wrapper {
        margin-left: 0;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
      }
      
      #wrapper.toggled #page-content-wrapper {
        transform: translateX(var(--sidebar-width));
        width: 100%;
        margin-left: 0;
      }
      
      #wrapper.toggled::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1040;
      }
      
      .navbar {
        padding: 0 1rem;
        z-index: 1030;
      }
      
      #section-title {
        font-size: 1.5rem;
      }
    }

    /* Dark Mode Support */
    @media (prefers-color-scheme: dark) {
      .dashboard-card {
        background: #2d2d2d;
        color: white;
      }
      
      .chart-container,
      .recent-orders-table .table,
      .best-seller-item,
      .stock-item {
        background: #2d2d2d;
        color: white;
      }
      
      .recent-orders-table .table th {
        background: #1a1a1a;
        color: white;
      }
      
      .recent-orders-table .table td {
        color: #e0e0e0;
      }
      
      .best-seller-info p,
      .stock-info p {
        color: #b0b0b0;
      }
    }

    /* Charts */
    .chart-container {
      position: relative;
      margin: 20px 0;
      padding: 20px;
      background: white;
      border-radius: 15px;
      box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    }

    .chart-container canvas {
      width: 100% !important;
      height: 300px !important;
    }

    /* Recent Orders Table */
    .recent-orders-table {
      margin-top: 20px;
    }

    .recent-orders-table .table {
      background: white;
      border-radius: 15px;
      overflow: hidden;
      box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    }

    .recent-orders-table .table th {
      background: #f8f9fa;
      border-bottom: 2px solid #dee2e6;
    }

    .recent-orders-table .table td {
      vertical-align: middle;
    }

    /* Status Badges */
    .status-badge {
      padding: 0.5rem 1rem;
      border-radius: 50px;
      font-size: 0.875rem;
      font-weight: 500;
    }

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

    .status-badge.processing {
      background: #cce5ff;
      color: #004085;
    }

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

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

    /* Best Sellers */
    .best-sellers {
      margin-top: 20px;
    }

    .best-seller-item {
      display: flex;
      align-items: center;
      padding: 1rem;
      background: white;
      border-radius: 10px;
      margin-bottom: 1rem;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
      transition: transform 0.3s ease;
    }

    .best-seller-item:hover {
      transform: translateX(5px);
    }

    .best-seller-item img {
      width: 50px;
      height: 50px;
      border-radius: 10px;
      margin-right: 1rem;
    }

    .best-seller-info {
      flex: 1;
    }

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

    .best-seller-info p {
      margin: 0;
      color: #6c757d;
      font-size: 0.875rem;
    }

    /* Stock Overview */
    .stock-overview {
      margin-top: 20px;
    }

    .stock-item {
      display: flex;
      align-items: center;
      padding: 1rem;
      background: white;
      border-radius: 10px;
      margin-bottom: 1rem;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    }

    .stock-item.low-stock {
      border-left: 4px solid #ff4444;
    }

    .stock-item.out-of-stock {
      border-left: 4px solid #dc3545;
    }

    .stock-item img {
      width: 50px;
      height: 50px;
      border-radius: 10px;
      margin-right: 1rem;
    }

    .stock-info {
      flex: 1;
    }

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

    .stock-info p {
      margin: 0;
      color: #6c757d;
      font-size: 0.875rem;
    }

    /* Animations */
    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .dashboard-card,
    .chart-container,
    .recent-orders-table,
    .best-sellers,
    .stock-overview {
      animation: fadeIn 0.5s ease-out;
    }

    /* Modal and Form Styling */
    .bg-gradient-primary {
      background: linear-gradient(45deg, #0d6efd, #0a58ca);
    }

    .card {
      border-radius: 0.5rem;
      transition: all 0.3s ease;
    }

    .card:hover {
      transform: translateY(-2px);
      box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }

    .form-control, .form-select {
      border-radius: 0.375rem;
      border: 1px solid #dee2e6;
      padding: 0.5rem 0.75rem;
    }

    .form-control:focus, .form-select:focus {
      border-color: #0d6efd;
      box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    }

    .btn {
      border-radius: 0.375rem;
      padding: 0.5rem 1rem;
      font-weight: 500;
    }

    .table th {
      font-weight: 600;
      background-color: #f8f9fa;
    }

    .modal-content {
      border-radius: 0.5rem;
      border: none;
      box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.2);
    }

    .modal-header {
      border-top-left-radius: 0.5rem;
      border-top-right-radius: 0.5rem;
    }

    .input-group-text {
      background-color: #f8f9fa;
      border: 1px solid #dee2e6;
    }

    .variant-item {
      background-color: #f8f9fa;
      border-radius: 0.375rem;
      padding: 1rem;
      margin-bottom: 1rem;
    }

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

    /* Dashboard Overview Row */
    .dashboard-overview-row {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      margin: 0 -10px;
    }

    .dashboard-overview-row > div {
      flex: 1;
      min-width: 220px;
      padding: 0 10px;
    }

    @media (max-width: 768px) {
      .dashboard-overview-row > div {
        flex: 0 0 calc(50% - 20px);
      }
    }

    @media (max-width: 576px) {
      .dashboard-overview-row > div {
        flex: 0 0 100%;
      }
    }

    /* Product Table Styles */
    .table-responsive {
      background: #fff;
      border-radius: 8px;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .table {
      margin-bottom: 0;
    }

    .table thead th {
      background-color: #f8f9fa;
      font-weight: 600;
      text-transform: uppercase;
      font-size: 0.7rem;
      letter-spacing: 0.5px;
      color: #495057;
      padding: 0.75rem 0.5rem;
      border-bottom: 2px solid #e9ecef;
    }

    .table tbody td {
      padding: 0.65rem 0.5rem;
      vertical-align: middle;
      border-bottom: 1px solid #e9ecef;
      font-size: 0.875rem;
    }

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

    .product-thumbnail {
      width: 60px;
      height: 60px;
      object-fit: cover;
      border-radius: 6px;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      border: 2px solid #fff;
    }

    .product-image-container {
      display: flex;
      justify-content: center;
      align-items: center;
      height: 62px;
    }
    
    .table-hover tbody tr:hover {
      background-color: rgba(13, 110, 253, 0.04);
      transition: background-color 0.2s ease;
    }

    .product-table-shell {
      border: 1px solid #e5e7eb;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
      margin-top: 1.25rem;
      position: relative;
      z-index: 1;
    }

    .product-filter-card {
      position: relative;
      z-index: 20;
      overflow: visible;
      border-color: rgba(19, 125, 70, 0.2) !important;
      background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, rgba(19, 125, 70, 0.7), rgba(220, 38, 38, 0.62)) border-box;
      box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(220, 38, 38, 0.04);
    }

    .product-filter-card .card-body {
      padding: 1.25rem;
      background:
        linear-gradient(135deg, rgba(19, 125, 70, 0.08), rgba(255, 255, 255, 0) 34%),
        linear-gradient(225deg, rgba(220, 38, 38, 0.08), rgba(255, 255, 255, 0) 30%),
        #ffffff;
    }

    .admin-filter-panel {
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98)),
        linear-gradient(135deg, rgba(19, 125, 70, 0.08), rgba(220, 38, 38, 0.07));
      border: 1px solid #dfe5ea;
      border-radius: 8px;
      box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
      padding: 1.15rem;
      position: relative;
      overflow: visible;
    }

    .admin-filter-panel::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: linear-gradient(90deg, #137d46 0%, #137d46 42%, #dc2626 42%, #dc2626 68%, #0d6efd 68%, #0d6efd 100%);
      border-top-left-radius: 8px;
      border-top-right-radius: 8px;
    }

    .product-filter-card::before {
      height: 6px;
      background: linear-gradient(90deg, #137d46 0%, #137d46 50%, #dc2626 50%, #dc2626 100%);
    }

    .admin-filter-panel::after {
      content: "";
      position: absolute;
      top: 1rem;
      right: 1rem;
      width: 68px;
      height: 68px;
      border-radius: 8px;
      border: 1px solid rgba(220, 38, 38, 0.08);
      background: linear-gradient(135deg, rgba(220, 38, 38, 0.08), rgba(19, 125, 70, 0.04));
      pointer-events: none;
    }

    .filter-panel-title {
      display: flex;
      align-items: center;
      gap: 0.9rem;
      margin-bottom: 1.1rem;
      padding-bottom: 1rem;
      border-bottom: 1px solid #e5e7eb;
    }

    .product-filter-card .filter-panel-title {
      background: linear-gradient(90deg, rgba(19, 125, 70, 0.08), rgba(220, 38, 38, 0.06));
      border: 1px solid rgba(19, 125, 70, 0.12);
      border-radius: 8px;
      padding: 0.85rem;
      margin-bottom: 1rem;
    }

    .filter-panel-title > span {
      width: 42px;
      height: 42px;
      border-radius: 8px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: #e6f4ee;
      color: #137d46;
      flex: 0 0 auto;
      box-shadow:
        inset 0 0 0 1px rgba(19, 125, 70, 0.1),
        4px 0 0 rgba(220, 38, 38, 0.22);
    }

    .product-filter-card .filter-panel-title > span {
      width: 48px;
      height: 48px;
      background: linear-gradient(135deg, #137d46, #0f6b3d);
      color: #ffffff;
      box-shadow:
        0 10px 20px rgba(19, 125, 70, 0.22),
        5px 0 0 rgba(220, 38, 38, 0.78);
    }

    .filter-panel-title strong {
      display: block;
      color: #111827;
      font-size: 1rem;
      line-height: 1.2;
      font-weight: 800;
    }

    .product-filter-card .filter-panel-title strong {
      font-size: 1.08rem;
      color: #0f172a;
    }

    .filter-panel-title strong::after {
      content: "";
      display: block;
      width: 42px;
      height: 3px;
      margin-top: 0.42rem;
      border-radius: 999px;
      background: linear-gradient(90deg, #137d46, #dc2626);
    }

    .filter-panel-title small {
      display: block;
      color: #667085;
      font-size: 0.82rem;
      margin-top: 0.15rem;
      font-weight: 600;
    }

    .product-filter-card .filter-panel-title small {
      color: #475467;
    }

    .filter-field label {
      display: block;
      color: #374151;
      font-size: 0.72rem;
      font-weight: 800;
      text-transform: uppercase;
      margin-bottom: 0.35rem;
      letter-spacing: 0;
    }

    .product-filter-card .filter-field {
      position: relative;
      padding: 0.75rem;
      border: 1px solid rgba(220, 38, 38, 0.42);
      border-radius: 8px;
      background:
        linear-gradient(135deg, rgba(185, 28, 28, 0.92), rgba(220, 38, 38, 0.82)),
        #dc2626;
      box-shadow: 0 10px 22px rgba(185, 28, 28, 0.14);
    }

    .product-filter-card .filter-field::before {
      content: "";
      position: absolute;
      top: 0.75rem;
      bottom: 0.75rem;
      left: 0;
      width: 5px;
      border-radius: 999px;
      background: #137d46;
    }

    .product-filter-card .filter-field:nth-child(4)::before {
      background: #ffffff;
    }

    .product-filter-card .filter-field label {
      color: #ffffff;
      margin-left: 0.15rem;
      text-shadow: 0 1px 1px rgba(127, 29, 29, 0.35);
    }

    .filter-field .form-control,
    .filter-field .form-select,
    .filter-field .input-group-text,
    .filter-field .btn {
      min-height: 44px;
      border-radius: 8px;
      border-color: #d8dee5;
      font-weight: 600;
      color: #1f2937;
      box-shadow: none;
      background-color: #ffffff;
    }

    .product-filter-card .filter-field .form-control,
    .product-filter-card .filter-field .form-select,
    .product-filter-card .filter-field .btn {
      border-color: rgba(255, 255, 255, 0.72);
      background-color: #ffffff;
      color: #111827;
      box-shadow: 0 6px 14px rgba(127, 29, 29, 0.12);
    }

    .product-filter-card .filter-field .form-control::placeholder {
      color: #6b7280;
      opacity: 1;
    }

    .filter-field .form-control:focus,
    .filter-field .form-select:focus {
      border-color: #137d46;
      box-shadow: 0 0 0 0.18rem rgba(19, 125, 70, 0.12);
    }

    .filter-field .input-group .input-group-text {
      border-top-right-radius: 0;
      border-bottom-right-radius: 0;
      background: #fff5f5;
      color: #dc2626;
      border-color: #f1c9c9;
    }

    .product-filter-card .filter-field .input-group-text {
      background: #137d46;
      color: #ffffff;
      border-color: #137d46;
    }

    .filter-field .input-group .form-control {
      border-top-left-radius: 0;
      border-bottom-left-radius: 0;
    }

    .filter-hint-box {
      min-height: 42px;
      display: flex;
      align-items: center;
      padding: 0.5rem 0.75rem;
      border: 1px solid #d1d5db;
      border-radius: 8px;
      background: #f9fafb;
      color: #4b5563;
      font-weight: 600;
      font-size: 0.85rem;
    }

    .product-filter-card .card-body,
    .product-filter-card .row,
    .product-filter-card .btn-group {
      overflow: visible;
    }

    .product-filter-card .row {
      row-gap: 0.75rem;
    }

    .product-filter-card .dropdown-menu {
      z-index: 1080;
      margin-top: 0.45rem;
      border-radius: 8px;
      border: 1px solid rgba(19, 125, 70, 0.22);
      box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
      overflow: hidden;
    }

    .product-filter-card .dropdown-menu .dropdown-item {
      font-weight: 700;
      padding: 0.7rem 0.9rem;
    }

    .product-filter-card .dropdown-menu .dropdown-item:hover {
      background: #edf8f1;
      color: #0f6b3d;
    }

    #bulk-actions {
      min-height: 44px;
      white-space: nowrap;
      width: 100%;
      border-color: #dc2626;
      background: linear-gradient(90deg, #ffffff 0%, #fff7f7 100%);
      color: #374151;
      font-weight: 800;
    }

    .product-bulk-group {
      box-shadow: 0 8px 18px rgba(220, 38, 38, 0.08);
      border-radius: 8px;
    }

    #bulk-actions::before {
      content: "";
      display: inline-block;
      width: 8px;
      height: 8px;
      margin-right: 0.5rem;
      border-radius: 999px;
      background: #dc2626;
      box-shadow: 12px 0 0 #137d46;
      vertical-align: middle;
    }

    #bulk-actions.btn-primary {
      color: #fff;
      background: linear-gradient(90deg, #137d46, #0f6b3d);
      border-color: #137d46;
      box-shadow: 0 10px 22px rgba(19, 125, 70, 0.24);
    }

    .product-filter-card .dropdown-menu .dropdown-item.text-danger {
      border-left: 3px solid #dc2626;
      background: #fff7f7;
      font-weight: 700;
    }

    .products-table {
      border-collapse: separate;
      border-spacing: 0;
    }

    .products-table thead th {
      border-left: 0 !important;
      border-right: 0 !important;
      border-top: 0 !important;
      background: #f3f4f6 !important;
      color: #111827 !important;
      letter-spacing: 0;
    }

    .products-table tbody td {
      border-left: 0 !important;
      border-right: 0 !important;
      border-top: 0 !important;
      color: #1f2937;
    }

    .products-table tbody tr:nth-child(even) td {
      background-color: #f9fafb;
    }

    .products-table tbody tr:nth-child(odd) td {
      background-color: #ffffff;
    }

    .products-table tbody tr:hover td {
      background-color: #eef6ff;
    }

    .product-select-column {
      width: 44px;
      min-width: 44px;
    }

    .product-select-box {
      width: 18px;
      height: 18px;
      border-radius: 3px;
      cursor: pointer;
      accent-color: #0d6efd;
    }

    .product-price-summary {
      font-weight: 600;
      color: #111827;
      white-space: nowrap;
    }

    .product-price-summary .more-prices {
      color: #6b7280;
      font-weight: 500;
    }

    .table td .product-name-cell.product-name-cell {
      font-weight: 700 !important;
      color: #111827 !important;
      font-size: 0.95rem;
      line-height: 1.25;
    }

    .admin-brand-link {
      color: inherit;
    }

    .admin-brand-logo {
      width: 64px;
      height: 64px;
      object-fit: contain;
      background: #fff;
      border: 2px solid rgba(255, 255, 255, 0.9);
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
      padding: 6px;
    }

    .admin-conversation-preview {
      display: flex;
      flex-direction: column;
      gap: 0.45rem;
      min-width: 280px;
    }

    .admin-conversation-line {
      border: 1px solid #e5e7eb;
      border-radius: 8px;
      padding: 0.45rem 0.6rem;
      background: #fff;
    }

    .admin-conversation-line strong {
      display: block;
      color: #111827;
      font-size: 0.72rem;
      margin-bottom: 0.12rem;
    }

    .admin-conversation-line span {
      display: block;
      color: #4b5563;
      font-size: 0.78rem;
      line-height: 1.35;
    }

    .admin-conversation-line.customer-line {
      border-left: 3px solid #dc2626;
      background: #fff7f7;
    }

    .admin-conversation-line.admin-line {
      border-left: 3px solid #137d46;
      background: #effaf3;
    }
    
    .badge {
      font-weight: 500;
      padding: 0.5em 0.75em;
      font-size: 0.75rem;
      border-radius: 6px;
    }

    .btn-group .btn {
      padding: 0.375rem 0.75rem;
      font-size: 0.875rem;
      border-radius: 6px;
      margin: 0 2px;
      transition: all 0.2s ease;
    }
    
    .btn-group .btn:hover {
      transform: translateY(-1px);
    }

    .btn-outline-primary {
      border-color: #e9ecef;
    }
    
    .btn-outline-danger {
      border-color: #e9ecef;
    }

    .form-check-input {
      cursor: pointer;
    }
    
    /* Status Badge Colors */
    .badge.bg-success {
      background-color: #28a745 !important;
    }
    
    .badge.bg-warning {
      background-color: #ffc107 !important;
      color: #000;
    }
    
    .badge.bg-danger {
      background-color: #dc3545 !important;
    }

    .badge.bg-info {
      background-color: #17a2b8 !important;
    }
    
    .badge.bg-light {
      background-color: #f8f9fa !important;
      border: 1px solid #e9ecef;
    }

    /* Product Details Cell */
    .product-details h6 {
      font-size: 0.875rem;
      margin-bottom: 0.25rem;
      font-weight: 600;
    }

    .product-details small {
      font-size: 0.75rem;
      color: #6c757d;
    }

    /* Percentage indicators */
    .dashboard-card.revenue .percentage {
      background-color: rgba(255, 255, 255, 0.2);
      color: white;
    }
    
    .dashboard-card.orders .percentage {
      background-color: rgba(255, 255, 255, 0.2);
      color: white;
    }
    
    .dashboard-card.customers .percentage {
      background-color: rgba(0, 0, 0, 0.1);
      color: #212529;
    }
    
    .dashboard-card.products .percentage {
      background-color: rgba(0, 0, 0, 0.1);
      color: #212529;
    }

    /* Sidebar Profile */
    .sidebar-profile {
      background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
      border-bottom: 1px solid rgba(255,255,255,0.1);
      box-shadow: 0 3px 12px rgba(0,0,0,0.15);
      min-height: 110px;
      padding: 1.2rem 0.8rem;
    }
    .sidebar-profile img {
      transition: box-shadow 0.3s;
    }
    .sidebar-profile img:hover {
      box-shadow: 0 4px 16px rgba(13,110,253,0.25);
    }

    /* Sidebar Overlay */
    #sidebar-overlay {
      display: none;
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.35);
      z-index: 998;
      transition: opacity 0.3s;
      opacity: 0;
    }
    #wrapper.sidebar-open #sidebar-overlay {
      display: block;
      opacity: 1;
    }

    /* Sidebar Slide Animation */
    #sidebar-wrapper {
      box-shadow: 3px 0 20px rgba(0,0,0,0.18);
      transition: margin-left 0.35s cubic-bezier(.77,0,.18,1), box-shadow 0.3s;
    }
    @media (max-width: 991.98px) {
      #sidebar-wrapper {
        margin-left: -260px;
        box-shadow: none;
      }
      #wrapper.toggled #sidebar-wrapper, #wrapper.sidebar-open #sidebar-wrapper {
        margin-left: 0;
        box-shadow: 3px 0 20px rgba(0,0,0,0.18);
      }
      #sidebar-overlay {
        display: block;
      }
      #sidebar-wrapper .list-group-item:last-child {
        font-size: 0.95rem;
        padding: 0.7rem 0.5rem;
      }
    }

    /* Sidebar Item Animation */
    #sidebar-wrapper .list-group-item {
      transition: background 0.2s, color 0.2s, transform 0.2s;
    }
    #sidebar-wrapper .list-group-item:hover {
      background: linear-gradient(90deg, #0d6efd 0%, #0a58ca 100%);
      color: #fff;
      transform: translateX(8px) scale(1.04);
      box-shadow: 0 2px 8px rgba(13,110,253,0.08);
    }
    #sidebar-wrapper .list-group-item.active {
      background: linear-gradient(90deg, #0d6efd 0%, #0a58ca 100%);
      color: #fff;
      box-shadow: 0 2px 12px rgba(13,110,253,0.18);
      transform: scale(1.05);
    }

    /* Menu Icon Animation */
    .menu-animated {
      width: 36px;
      height: 36px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      background: rgba(255,255,255,0.15);
      border: none;
      outline: none;
      position: relative;
      z-index: 1100;
      border-radius: 8px;
      transition: all 0.3s ease;
    }
    
    .menu-animated:hover {
      background: rgba(255,255,255,0.25);
      transform: scale(1.05);
    }
    .menu-icon-bar {
      display: block;
      width: 20px;
      height: 2.5px;
      margin: 2.5px 0;
      background: white;
      border-radius: 2px;
      transition: all 0.35s cubic-bezier(.77,0,.18,1);
    }
    #wrapper.sidebar-open .menu-icon-bar:nth-child(1) {
      transform: translateY(6px) rotate(45deg);
    }
    #wrapper.sidebar-open .menu-icon-bar:nth-child(2) {
      opacity: 0;
    }
    #wrapper.sidebar-open .menu-icon-bar:nth-child(3) {
      transform: translateY(-6px) rotate(-45deg);
    }

    /* Overlay and sidebar open state */
    #wrapper.sidebar-open #sidebar-overlay {
      display: block;
      opacity: 1;
      pointer-events: auto;
    }
    #wrapper.sidebar-open #sidebar-wrapper {
      margin-left: 0;
      box-shadow: 3px 0 20px rgba(0,0,0,0.18);
    }

    /* Notification Slide Panel */
    .notification-panel {
      position: fixed;
      top: 80px;
      right: -370px;
      width: 350px;
      max-width: 90vw;
      height: 420px;
      background: #fff;
      box-shadow: 0 8px 32px rgba(0,0,0,0.18);
      border-radius: 16px 0 0 16px;
      z-index: 1200;
      transition: right 0.35s cubic-bezier(.77,0,.18,1), opacity 0.2s;
      opacity: 0;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }
    .notification-panel.open {
      right: 20px;
      opacity: 1;
    }
    .notification-header {
      padding: 18px 20px 12px 20px;
      border-bottom: 1px solid #f0f0f0;
      background: #f8f9fa;
    }
    .notification-list {
      flex: 1;
      overflow-y: auto;
      padding: 12px 0 0 0;
    }
    .notification-item {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 12px 20px;
      border-bottom: 1px solid #f3f3f3;
      transition: background 0.2s;
      cursor: pointer;
    }
    .notification-item:last-child {
      border-bottom: none;
    }
    .notification-item:hover {
      background: #f6faff;
    }
    .notification-icon {
      font-size: 1.3rem;
      margin-top: 2px;
    }
    .notification-content {
      flex: 1;
    }
    .notification-title {
      font-weight: 600;
      font-size: 1rem;
    }
    .notification-time {
      font-size: 0.85rem;
      color: #888;
    }
    #close-notification-panel {
      background: none;
      border: none;
      font-size: 1.2rem;
      opacity: 0.7;
      transition: opacity 0.2s;
    }
    #close-notification-panel:hover {
      opacity: 1;
    }
    @media (max-width: 600px) {
      .notification-panel {
        width: 98vw;
        right: -100vw;
        border-radius: 0;
        top: 0;
        height: 100vh;
      }
      .notification-panel.open {
        right: 0;
      }
    }

/* Driver portal */
.driver-portal-card {
  overflow: hidden;
}

.driver-stat {
  min-height: 82px;
  padding: 14px;
  border: 1px solid rgba(30, 108, 65, 0.16);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, #f2fbf6);
}

.driver-stat span {
  display: block;
  color: #6b7280;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.driver-stat strong {
  display: block;
  margin-top: 6px;
  color: #1e6c41;
  font-size: 1.35rem;
  font-weight: 900;
}

.driver-orders-list {
  display: grid;
  gap: 14px;
}

.driver-order-card {
  padding: 16px;
  border: 1px solid #e6e9ee;
  border-left: 5px solid #a61c35;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.driver-order-top,
.driver-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.driver-order-number {
  color: #a61c35;
  font-size: 0.78rem;
  font-weight: 900;
}

.driver-order-top h6 {
  margin: 2px 0 0;
  font-weight: 900;
}

.driver-order-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.driver-order-grid div {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  min-width: 0;
  color: #374151;
  font-size: 0.88rem;
}

.driver-order-grid i {
  color: #1e6c41;
  margin-top: 3px;
}

.driver-order-grid span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.driver-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.driver-items span,
.driver-complete-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 800;
}

.driver-complete-badge {
  background: #eaf5ee;
  color: #1e6c41;
}

.driver-empty-state {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 34px 16px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #64748b;
  text-align: center;
}

.driver-empty-state i {
  color: #a61c35;
  font-size: 2rem;
}

@media (max-width: 768px) {
  #page-content-wrapper {
    min-width: 0;
  }

  .container-fluid.px-4 {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .driver-order-grid {
    grid-template-columns: 1fr;
  }

  .driver-actions {
    justify-content: stretch;
  }

  .driver-actions .btn {
    flex: 1 1 140px;
  }

  #orders-section .table-responsive,
  #users-section .table-responsive {
    border: 1px solid #eef0f3;
    border-radius: 8px;
  }
}
