     body {
        overflow-x: hidden;
      }

      header {
        position: sticky;
        top: 0;
        z-index: 1050; /* above sidebar */
        background: #fff;
      }

      hr {
        border-top: 1px solid #00000045 !important;
      }

      .offcanvas-body .nav-link {
        padding: 12px 8px;
        border-radius: 8px;
      }

      .offcanvas-body .nav-link:hover {
        background-color: #fbfbfb;
      }

      .dropdown-menu {
        min-width: 220px;
        max-width: calc(100vw - 24px);
        right: 0;
        left: auto;
        transform: translateX(0);
      }

      @media (min-width: 992px) {
        .dropdown:hover > .dropdown-menu {
          display: block;
          margin-top: 8px;
        }
      }

      /* Desktop hover dropdown */
      @media (min-width: 992px) {
        .dropdown:hover > .dropdown-menu {
          display: block;
          margin-top: 0;
        }

        .dropdown-toggle::after {
          display: none;
        }
      }

      /* Sidebar */

      .dashboard-layout {
        min-height: calc(100vh - 64px);
      }

      .oms-sidebar {
        box-shadow: 4px 0 12px rgba(0, 0, 0, 0.04);
        align-self: flex-start;
        position: sticky;
        top: 64px; /* header height */
        height: calc(100vh - 64px);
        width: 90px;
        min-height: 100vh;
        background: #ffffff;
        border-right: 1px solid #eef0f3;
      }

      /* Toggle button */
      .sidebar-toggle {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: #0b5ed7;
        color: #fff;
        border: none;
        font-size: 18px;
        line-height: 1;
      }

      /* Nav items */
      .sidebar-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        text-decoration: none;
        color: #6b7280;
      }

      /* .sidebar-item img {
  width: 22px;
  height: 22px;
  display: block;
  margin: 0 auto 4px;
  filter: grayscale(1) opacity(0.6);
} */

      .icon-wrap {
        width: 56px;
        height: 56px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.25s ease;
      }

      .iconify {
        font-size: 24px;
        color: #6b7280;
        transition: color 0.25s ease;
      }
      .sidebar-item .db-label {
        font-size: 11px;
        font-weight: 500;
      }

      /* Hover state */
      .sidebar-item:hover .icon-wrap {
        background: #e7f4ff;
      }

      .sidebar-item:hover .iconify {
        color: #0070d3;
      }

      /* ACTIVE */
      .sidebar-item.active .icon-wrap {
        background: #e7f4ff;
      }

      .sidebar-item.active .iconify {
        color: #0070d3;
      }

      /* Profile Overview */

      .dashboard-main {
        width: 100%;
        background: #f8fafc;
        min-height: calc(100vh - 64px);
      }

      .dashboard-card {
        padding: 24px;
        border: 1px solid #eef0f3;
        border-radius: 12px;
      }
      /* STAT BOX */
      .stat-box {
        background: #fff;
        border: 1px solid #eef0f3;
        border-radius: 12px;
        padding: 14px;
        display: flex;
        gap: 12px;
        align-items: center;
      }

      .stat-box h5 {
        margin: 0;
        font-weight: 600;
      }

      /* PROFILE */
      .profile-progress {
        --ring-width: 6px;
        --progress-color: #0b5ed7;
        --track-color: #e5e7eb;

        width: 92px;
        height: 92px;
        min-width: 92px;
        min-height: 92px;
        max-width: 92px;
        max-height: 92px;
        border-radius: 100%;
        padding: var(--ring-width);

        background: conic-gradient(
          #0772e4,
          #001e3d calc(var(--progress) * 1%),
          var(--track-color) 0
        );

        display: flex;
        align-items: center;
        justify-content: center;
      }

      .profile-pic {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        background: #fff;
      }

      /* PREMIUM BADGE */
      .badge-premium {
        background: #e0f2fe;
        color: #0284c7;
        font-size: 11px;
        padding: 4px 8px;
        border-radius: 12px;
      }

      .btn-tool {
        border: 1px solid #d2d2d2;
        border-radius: 8px;
        color: #202020;
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 12px;
      }

      .btn-tool:hover {
        background: #f1f5f9;
        color: #000;
      }

      /* STREAK */
      .streak-days {
        max-width: 650px;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 8px;
      }

      .day {
        position: relative;
        width: 28px;
        height: 28px;
        border-radius: 6px;
        font-size: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 500;
      }

      .day::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: 125%;
        left: 50%;
        transform: translateX(-50%);
        background: #111827;
        color: #fff;
        font-size: 11px;
        padding: 4px 8px;
        border-radius: 6px;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
      }

      .day:hover::after {
        opacity: 1;
      }

      /* Passed but NOT attempted */
      .day.muted {
        background: #d1d5db;
        color: #374151;
      }

      /* Passed & attempted */
      .day.active {
        background-color: #22ab00;
        border: 1px solid #28c900;
        color: #fff;
        animation: pop 0.3s ease;
      }

      @keyframes pop {
        0% {
          transform: scale(0.85);
        }
        100% {
          transform: scale(1);
        }
      }

      /* Future day (not passed yet) */
      .day.future {
        background: transparent;
        border: 1px solid #28c900;
        color: #16a34a;
      }

      .streak-circle {
        width: 90px;
        height: 90px;
        border-radius: 50%;
        background: #003c71;
        color: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 18px;
      }

      /* QUESTION */
      .question-box {
        background: linear-gradient(90deg, #fff7e6, #ecfeff);
        border-radius: 12px;
        padding: 14px 16px;
      }

      .question-header {
        cursor: pointer;
        font-weight: 500;
      }

      .question-answer {
        display: none;
      }

      .question-box.open .question-answer {
        display: block;
      }

      .toggle-icon {
        transition: transform 0.25s ease;
      }

      .question-box.open .toggle-icon {
        transform: rotate(180deg);
      }

      /* OPTIONS */
      .answer-option {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 6px 0;
        font-size: 14px;
        cursor: pointer;
      }

      .answer-option input {
        accent-color: #0b5ed7;
      }

      /* ACTIVITY */
      .activity-bars {
        display: flex;
        gap: 12px;
        align-items: flex-end;
      }

      .activity-bars .bar {
        width: 18px;
        background: #003c71;
        border-radius: 6px;
      }

      /* COUPONS */
      .coupon-box {
        background: #fff8db;
        border-radius: 12px;
        padding: 14px;
      }

      .coupon-code {
        background: #fff;
        border-radius: 8px;
        padding: 6px 10px;
        font-weight: 600;
        margin: 6px 0;
      }

       .learning-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  max-width: 320px;
  min-width: 280px;
  flex-shrink: 0;
}

/* Thumbnail */
.learning-thumb {
  height: 160px;
  background: #e0e0e0;
}

/* Content */
.learning-content {
  padding: 16px;
}

.learning-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.learning-author {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 10px;
}

/* Meta row */
.learning-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #374151;
  margin-bottom: 12px;
}

.learning-meta .star {
  color: #facc15;
}

/* Progress */
.progress-wrap {
  height: 6px;
  background: #e5f0ff;
  border-radius: 6px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: #0b5ed7;
  border-radius: 6px;
}

.progress-text {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #6b7280;
}


/* Horizontal slider container */
.learning-slider {
  scroll-behavior: smooth;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-prev {
  left: -18px;
}

.slider-next {
  right: -18px;
}

.slider-btn:hover {
  background: #f1f5f9;
}


/* Hide scrollbar (optional but recommended) */
.learning-slider::-webkit-scrollbar {
  display: none;
}
.learning-slider {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Each card snaps */
.learning-card {
  scroll-snap-align: start;
}

.toast-slide {
  position: fixed;
  top: 20px;
  right: -400px;
  background: #111827;
  color: #fff;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  transition: right 0.4s ease;
  z-index: 9999;
}

.toast-slide.show {
  right: 20px;
}

.question-content {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.question-content.fade-out {
  opacity: 0;
  transform: translateY(-12px);
}

.question-success {
  animation: successPop 0.6s ease forwards;
}

@keyframes successPop {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}


#confettiCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}


.dashboard-main {
  opacity: 1;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.dashboard-main.is-loading {
  opacity: 0;
  transform: translateY(6px);
}

/* Courses Tab Css Starts here */
