@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.mb-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  font-family: 'Inter', sans-serif;
  background-color: #f8fafc;
  padding-top: 100px; /* Space for Navbar */
}

/* ====================
   SIDEBAR 
   ==================== */
.mb-sidebar {
  width: 260px;
  background-color: #0f172a; /* Fallback */
  background-image: url('../../images/my-business/business_sidebar_bg_v2.avif');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  z-index: 20;
  box-shadow: 4px 4px 15px rgba(0,0,0,0.1);
  position: sticky;
  top: 120px;
  height: calc(100vh - 140px);
  margin-left: 20px;
  margin-bottom: 20px;
  border-radius: 16px;
  overflow: hidden;
}

.mb-sidebar-top {
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
}



.mb-menu-item-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #cbd5e1;
}

.mb-menu-item-main:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: white;
}

.mb-menu-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 14px;
}

.mb-menu-item-main svg {
  color: #60a5fa;
  transition: color 0.2s ease;
}

.mb-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mb-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.mb-nav-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: white;
}

/* ACTIVE STATE */
.mb-menu-item-main.active, 
.mb-nav-item.active {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.mb-nav-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa; /* Light blue icons for inactive */
  transition: color 0.2s ease;
}

/* Active Icons become white */
.mb-menu-item-main.active svg,
.mb-nav-item.active .mb-nav-icon-wrapper svg {
  color: white;
}



/* ====================
   MAIN CONTENT 
   ==================== */
.mb-main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 32px 40px;
}

/* Header */
.mb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.mb-greeting h1 {
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px 0;
}

.mb-greeting p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

/* Removed header actions styles */


/* ====================
   SERVICES GRID 
   ==================== */
.mb-services-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 1400px;
}

.mb-cards-row-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.mb-cards-row-3 {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.mb-cards-row-3 .mb-service-card {
  width: calc(20% - 16px);
  min-width: 200px;
}

/* Base Card Style */
.mb-service-card {
  background-color: white;
  border-radius: 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f5f9;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  height: 100%;
  overflow: hidden;
}

.wide-card {
  /* No special height or padding anymore */
}

.mb-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.mb-card-img-wrap {
  width: 100%;
  height: 160px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  overflow: hidden;
}

.mb-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.mb-service-card:hover .mb-card-img-wrap img {
  transform: scale(1.05);
}

.mb-card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  width: 100%;
}

.mb-service-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px 0;
}

.wide-card h3 {
  font-size: 17px;
}

.mb-service-card p {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 16px 0;
  line-height: 1.4;
  flex: 1; /* Pushes arrow to bottom */
}

.wide-card p {
  font-size: 13px;
}

.mb-card-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: white;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mb-service-card:hover .mb-card-arrow {
  background-color: #f8fafc;
  transform: translateX(4px);
}


/* ====================
   RESPONSIVE DESIGN
   ==================== */
@media (max-width: 1280px) {
  .mb-cards-row-5 {
    grid-template-columns: repeat(3, 1fr);
  }
  .mb-cards-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .mb-cards-row-3 .mb-service-card {
    width: auto;
  }
}

@media (max-width: 1024px) {
  .mb-main-content {
    padding: 24px;
  }
  .mb-cards-row-5, .mb-cards-row-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mb-layout {
    flex-direction: column;
  }
  .mb-sidebar {
    width: 100%;
    height: auto;
    flex-direction: row;
    padding: 12px 20px;
    align-items: center;
  }
  .mb-sidebar-top {
    padding: 0;
    flex-direction: row;
    align-items: center;
    width: 100%;
  }
  .mb-logo-container {
    margin: 0;
  }
  .mb-sidebar-menu, .mb-sidebar-bottom, .mb-collapse-btn {
    display: none;
  }
  .mb-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .mb-cards-row-5, .mb-cards-row-3 {
    display: grid;
    grid-template-columns: 1fr;
  }
  .mb-service-card, .wide-card {
    height: auto;
    min-height: 200px;
  }
}

/* Animations for cards */
@keyframes mbFlyInLeft {
  from { opacity: 0; transform: translateX(-80px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes mbFlyInRight {
  from { opacity: 0; transform: translateX(80px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes mbFlyInTop {
  from { opacity: 0; transform: translateY(-80px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes mbFlyInBottom {
  from { opacity: 0; transform: translateY(80px); }
  to { opacity: 1; transform: translateY(0); }
}

.mb-card-animated {
  opacity: 0; /* Starts hidden, animation will fill forwards */
}
