/* Sidebar Layout */
.sidebar {
  width: 260px;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #0f172a, #020617);
  color: #fff;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.4);
  z-index: 1000;
}

/* Header */
.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-header .brand {
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 0;
  color: #38bdf8;
}

/* Scrollable menu */
.sidebar-menu {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0;
}

.sidebar-menu::-webkit-scrollbar {
  width: 5px;
}
.sidebar-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}

/* Nav links */
.sidebar .nav-link {
  color: #cbd5e1;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

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

/* Hover */
.sidebar .nav-link:hover {
  background: rgba(56, 189, 248, 0.12);
  color: #fff;
}

/* Active */
.sidebar .nav-link.active {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border-left: 4px solid #38bdf8;
}

/* Footer */
.sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0;
}

/* Logout */
.sidebar .logout {
  color: #f87171;
}

.sidebar .logout:hover {
  background: rgba(248, 113, 113, 0.15);
  color: #fecaca;
}


  @media (max-width: 768px) {

    .sidebar {
      width: 100%;
      height: auto;
      position: relative;
      border-right: none;
      box-shadow: none;
    }

    .sidebar-menu {
      display: flex;
      overflow-x: auto;
      white-space: nowrap;
      padding: 10px;
      gap: 10px;
    }

    .nav-link {
      border-radius: 10px;
      padding: 10px 14px;
      background: #fff;
      min-width: max-content;
    }

    .sidebar-footer {
      display: none;
    }

    .main-content {
      margin-left: 0;
      width: 100%;
      padding: 15px;
    }

    .metric-title {
      font-size: 11px;
    }

    .metric-value {
      font-size: 16px;
    }

    .metric-icon {
      width: 38px;
      height: 38px;
      font-size: 18px;
    }

    .recent-orders-card {
      padding: 15px;
    }

    .order-card .d-flex {
      flex-direction: column;
      align-items: flex-start !important;
      gap: 10px;
    }

    .order-card .text-end {
      text-align: left !important;
    }
  }
