body {
  background-color: #f9fafb;
  font-family: "Inter", sans-serif;
}

.sidebar-mini .main-sidebar {
  width: 80px !important;
}

.brand-link {
  width: 80px !important;
} 

.nav-item {
  width: 100% !important;
}

.nav-sidebar .nav-link {
  color: #6c757d;
  border-radius: 10px;
  width: 100% !important;
}

.nav-sidebar .nav-link.active,
.nav-sidebar .nav-link:hover {
  background-color: #f1f1f1;
  color: #0d6efd;
}

.card {
  border-radius: 1rem !important;
}

.product-card img {
  height: 160px;
  object-fit: cover;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

.product-card:hover {
  transform: translateY(-3px);
  transition: all 0.2s;
}

.btn-outline-primary.active {
  background-color: #0d6efd;
  color: #fff;
}

.sticky-lg-top {
  position: sticky;
}

.content-wrapper {
  margin-left: 80px !important;
}

/* .bg-coffee-blue {
  background-color: #2c294b;
} */

/* Header bar */
.header-bar {
  background-color: #232244;
}

/* Search box */
.search-box {
  background-color: #2f2e5e;
  border-radius: 12px;
  height: 42px;
  min-width: 230px;
  color: #c3c3d1;
  display: flex;
  align-items: center;
  padding: 0 14px;
  /* margin-right: 16px;  */
  /* spacing after search box */
}
.search-box i {
  font-size: 1rem;
  color: #c3c3d1;
  margin-right: 8px;
}
.search-box input {
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  color: #fff;
  font-size: 0.95rem;
  flex: 1;
}
.search-box input::placeholder {
  color: #aaa9c4;
}

/* Icon buttons */
.icon-btn {
  background-color: #2f2e5e;
  color: #c3c3d1;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: 0.2s ease;
  margin-right: 12px; /* spacing between icons */
}
.icon-btn:last-of-type {
  margin-right: 20px; /* extra gap before the blue button */
}
.icon-btn:hover {
  background-color: #3a3972;
  color: #fff;
}
.icon-btn .dot {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 8px;
  height: 8px;
  background-color: #38d878;
  border-radius: 50%;
}

/* "New Goal" button */
.header-bar .btn-primary {
  background-color: #2176ff;
  border: none;
  font-size: 0.95rem;
  height: 42px;
  border-radius: 12px;
  transition: 0.2s ease;
  padding: 0 20px;
}
.header-bar .btn-primary:hover {
  background-color: #1b60d4;
}

.darkblue-bg {
  background-color: #232244;
  height: 150px;
}

.container-fluid {
  margin-top: -140px;
}

.category-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1.5rem; /* Adjust spacing between cards */
  margin-bottom: 1.5rem;
}

.category-card {
  flex: 0 1 160px;
  text-align: center;
  border: 2px solid transparent;
  border-radius: 1rem;
  padding: 1.5rem 1rem;
  background: #fff;
  transition: all 0.25s ease;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-card.active {
  border-color: #0d6efd;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
}

.category-icon {
  font-size: 48px;
  margin-bottom: 0.5rem;
  color: #0d6efd;
}

.category-name {
  font-weight: 600;
  color: #212529;
}

.category-info {
  color: #6c757d;
  font-size: 0.9rem;
}

.add-to-order {
  width: 100% !important;
}

/* --- Responsive Layout Fixes --- */

/* General body and wrapper adjustments */
@media (max-width: 992px) {
  .content-wrapper {
    margin-left: 0 !important;
  }

  .main-sidebar {
    position: fixed;
    z-index: 1050;
    height: 100%;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .main-sidebar.active {
    transform: translateX(0);
  }

  .mobile-nav { display:flex !important; justify-content:space-between; align-items:center; background:#fff; padding:10px 15px; border-bottom:1px solid #e6e6e6; position:sticky; top:0; z-index:1050; }
}

/* Header responsiveness */
@media (max-width: 768px) {
  .header-bar {
    flex-direction: column;
    align-items: flex-start !important;
    padding: 1rem;
    gap: 0.75rem;
  }

  .header-bar h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }

  .search-box {
    width: 100%;
    /* margin-right: 16px; */
  }

  .header-bar .d-flex.align-items-center {
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
  }

  .icon-btn {
    margin-right: 8px;
  }

  .header-bar .btn-primary {
    width: 100%;
    margin-top: 0.5rem;
  }
}

/* Product grid and order layout */
@media (max-width: 992px) {
  .row > .col-lg-8,
  .row > .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .sticky-lg-top {
    position: relative;
    top: 0;
  }

  .card.p-3 {
    margin-top: 1rem;
  }
}

/* Category cards */
@media (max-width: 768px) {
  .category-container {
    justify-content: center;
    gap: 1rem;
  }

  .category-card {
    flex: 0 1 45%;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .category-card {
    flex: 0 1 100%;
  }

  .category-icon {
    font-size: 36px;
  }

  .category-name {
    font-size: 1rem;
  }

  .category-info {
    font-size: 0.85rem;
  }
}

/* Product cards */
@media (max-width: 768px) {
  .product-card img {
    height: 140px;
  }
}

/* Adjust footer on mobile */
@media (max-width: 576px) {
  footer {
    font-size: 0.8rem;
    padding: 1rem;
  }
}

@media (min-width: 992px) { .mobile-nav { display:none !important; } }

