@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700&display=swap');

:root {
  --bg-main: #fcfcfd;
  --sidebar-bg: #ffffff;
  --accent: #f2994a;
  /* Blitz Money Orange */
  --text-primary: #101828;
  --text-secondary: #667085;
  --border: #f2f4f7;
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.04);
}


html {
  overflow-y: scroll;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow-x: hidden;
  max-width: 100%;
}

.content-body {
  min-width: 0;
}

.dashboard-wrapper {
  display: flex;
  height: 100vh;
  padding: 12px;
}



.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.logo-box {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), #ff7e05);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
}

.nav-links {
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text-secondary);
  border-radius: 10px;
  margin-bottom: 4px;
  font-weight: 600;
  transition: 0.2s;
}



.nav-divider {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  margin: 20px 0 10px 16px;
}

/* Content Area */
.content-body {
  flex: 1;
  overflow-y: auto;
  padding-right: 5px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 10px 0;
}

h1 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.welcome p {
  color: var(--text-secondary);
  margin-top: 4px;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 20px;
}

.balance-widget {
  background: white;
  padding: 12px 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.balance-widget .amount {
  font-size: 1.2rem;
  font-weight: 700;
  color: #027a48;
}

.refresh-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #98a2b3;
}

.live-tag {
  background: #ecfdf3;
  color: #027a48;
  padding: 6px 14px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 12px;
}

.icon-circle {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: white;
  cursor: pointer;
  position: relative;
}

.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  background: #f04438;
  border-radius: 50%;
  border: 2px solid white;
}

/* Premium Cards */
.stats-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.premium-card {
  background: white;
  border-radius: 24px;
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.segmented-control {
  background: #f9fafb;
  padding: 4px;
  border-radius: 10px;
  display: flex;
}

.seg {
  padding: 6px 16px;
  border: none;
  background: none;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 8px;
}

.seg.active {
  background: white;
  color: var(--text-primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.marker {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
  margin-right: 8px;
}

.paid {
  background: #12b76a;
}

.unpaid {
  background: #f04438;
}

.init {
  background: #2e90fa;
}

.legend-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #cfd2d7;
}

/* STATS CONTAINER STYLE */
.stats-container {
  margin-top: 30px;
  padding-bottom: 50px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 25px 0 15px 0;
  border-left: 4px solid var(--accent);
  padding-left: 15px;
}

.section-title h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #101828;
}

.view-all {
  font-size: 0.8rem;
  color: #667085;
}

/* Settlement Grid */
.settlement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
      margin-top: 20px;
}

.p-card {
  background: white;
  border-radius: 20px;
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid #dededf;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}

.p-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

/* Dynamic Colors */
.settled .card-icon {
  background: #ecfdf3;
  color: #12b76a;
}

.unsettled .card-icon {
  background: #fef6ee;
  color: #f2994a;
}

.total-settle .card-icon {
  background: #f0f9ff;
  color: #0086ff;
}

.p-label {
  font-size: 0.8rem;
  color: #667085;
  font-weight: 600;
}

.p-val {
  font-size: 1.4rem;
  font-weight: 800;
  margin-top: 4px;
}

/* Payin Grid */
.payin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.info-card {
  background: white;
  border-radius: 20px;
  padding: 20px;
  border: 1px solid #dededf;
  transition: 0.3s;
}

.info-card.highlight {
  background: linear-gradient(135deg, #ffffff 0%, #fff9f5 100%);
  border: 1px solid #ffeada;
}

.time-tag {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  background: #f2f4f7;
  padding: 4px 10px;
  border-radius: 6px;
  color: #475467;
}

.info-card h2 {
  margin: 15px 0 8px 0;
  font-size: 1.3rem;
  color: #101828;
}

.info-card p {
  font-size: 0.75rem;
  color: #667085;
  display: flex;
  align-items: center;
  gap: 5px;
}

.info-card p i {
  font-size: 1rem;
  color: #12b76a;
}

.info-card:hover {
  border-color: var(--accent);
}



.chart-box {
  height: 540px;
  padding-top: 10px;
}



/* Dropdown wrapper */


.dropdown-toggle .arrow {
  font-size: 18px;
  transition: transform 0.3s ease;
}

/* Dropdown menu */


.dropdown-menu a {
  font-size: 16px;
  padding: 8px 0;
  color: #ffffff;
  text-decoration: none;
  transition: 0.2s;
}

.dropdown-menu a:hover {
  color: var(--accent);
}



.sidebar {
  width: 280px;
  background: var(--sidebar-bg);
  border-radius: 20px;
  margin-right: 20px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 30px 20px;

  /* 🔥 ADD THESE */
  height: calc(100vh - 24px);

}

.nav-links {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar {
  overflow: visible !important;
}


/* Chrome / Edge / Brave */
.nav-links::-webkit-scrollbar {
  width: 6px;
}

.nav-links::-webkit-scrollbar-thumb {
  background: #e4e7ec;
  border-radius: 10px;
}

.nav-links::-webkit-scrollbar-thumb:hover {
  background: #d0d5dd;
}

/* Firefox */
.nav-links {
  scrollbar-width: thin;
  scrollbar-color: #e4e7ec transparent;
}






.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 12px 14px;
  margin-bottom: 6px;

  font-size: 14px;
  font-weight: 600;
  color: #475467;

  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
}


.nav-item.active {
  background: linear-gradient(135deg,
      rgba(242, 153, 74, 0.15),
      rgba(242, 153, 74, 0.05));
  color: var(--accent);
  box-shadow: inset 4px 0 0 var(--accent);
}

.nav-item,
.dropdown-toggle {
  min-height: 44px;
  /* 🔒 height fixed */
  line-height: 20px;
  padding: 12px 16px;
  /* 🔒 same padding everywhere */
  font-size: 14px;
}

.menu-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(242, 153, 74, 0.15);
  color: var(--accent);
}

.icon-circle {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  /* 🔑 important */
}

.action-icons {
  display: flex;
  gap: 10px;
}

.dropdown-toggle {
  display: flex;
  align-items: center;

  white-space: nowrap;
  /* 🔥 prevent line break */
}

.dropdown-toggle span,
.dropdown-toggle {
  white-space: nowrap;
}

.sidebar {
  min-width: 260px;
}

.dropdown-toggle .arrow {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dropdown-toggle .arrow {
  margin-left: 0px;
  /* 🔥 push arrow to right */
  font-size: 18px;
  transition: 0.3s ease;
  color: inherit;
  /* 🔥 same color as text */
}



.dropdown-toggle:hover .arrow {
  color: #fb923c;
  /* Orange */
}


.premium-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.live-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #12b76a;
  border-radius: 50%;
  margin-right: 6px;
  animation: pulse 1.5s infinite;
}

.content-body {
  animation: fadeInUp 0.4s ease;
}

/* =====================================================
   💻 TABLET / SMALL LAPTOP – 768px to 1024px
===================================================== */
@media (max-width: 1024px) {

  body {
    overflow: auto;
  }

  .dashboard-wrapper {
    flex-direction: row;
    padding: 8px;
  }

  /* ===== SIDEBAR ===== */
  .sidebar {
    width: 230px;
    min-width: 230px;
    padding: 25px 15px;
  }

  .logo-area h2 {
    font-size: 18px;
  }

  .nav-item {
    font-size: 13px;
    padding: 10px 12px;
  }

  .dropdown-menu {
    padding-left: 35px;
  }

  /* ===== CONTENT ===== */
  .content-body {
    padding-left: 5px;
  }

  /* ===== HEADER ===== */
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .header-tools {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
  }

  .balance-widget {
    padding: 10px 16px;
  }

  .icon-circle {
    width: 40px;
    height: 40px;
  }

  /* ===== CHART GRID ===== */
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .chart-box {
    height: 400px;
    /* reduce height for tablet */
  }

  /* ===== DONUT CARD ===== */
  .donut-small {
    margin-top: 10px;
  }

  /* ===== SETTLEMENT GRID ===== */
  .settlement-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ===== PAYIN GRID ===== */
  .payin-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .menu-toggle {
    display: none;
  }
}

/* =====================================================
   📱 TABLET – 768px and below
===================================================== */
@media (max-width: 768px) {

  body {
    overflow: auto;
  }

  .dashboard-wrapper {
    flex-direction: column;
    padding: 6px;
  }

  /* =======================
     SIDEBAR (COLLAPSIBLE STYLE)
  ======================= */

  .sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    height: 100vh;
    width: 240px;
    z-index: 1000;
    transition: 0.3s ease;
    border-radius: 0 20px 20px 0;
  }

  .sidebar.active {
    left: 0;

  }

  /* =======================
     CONTENT FULL WIDTH
  ======================= */

  .content-body {
    width: 100%;
    padding: 10px;
  }

  /* =======================
     HEADER STACK
  ======================= */

  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .header-tools {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
  }

  .balance-widget {
    width: 100%;
  }

  .live-tag {
    font-size: 11px;
  }

  /* =======================
     STATS GRID
  ======================= */

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .chart-box {
    height: 320px;
  }

  /* =======================
     SETTLEMENT GRID
  ======================= */

  .settlement-grid {
    grid-template-columns: 1fr;
  }

  /* =======================
     PAYIN GRID
  ======================= */

  .payin-grid {
    grid-template-columns: 1fr;
  }

  /* =======================
     CARDS SPACING
  ======================= */

  .premium-card,
  .p-card,
  .info-card {
    padding: 18px;
    border-radius: 18px;
  }

  .menu-toggle {
    display: block;
  }

  .dashboard-wrapper {
    flex-direction: column;
  }

  /* Sidebar Hidden By Default */
  .sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    height: 100vh;
    width: 250px;
    z-index: 1001;
    transition: left 0.35s ease;
    border-radius: 0 20px 20px 0;
  }

  .sidebar.active {
    left: 0;
  }

  /* Overlay */
  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 1000;
  }

  .sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Hamburger Top Right */
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: white;
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 10px;
  }

  .menu-toggle i {
    font-size: 22px;
    color: #101828;
  }

  .header {
    position: relative;
  }

}


/* =====================================================
   📱 MOBILE – 425px and below
===================================================== */
@media (max-width: 425px) {

  body {
    overflow: auto;
  }

  .dashboard-wrapper {
    padding: 4px;
  }

  /* ===== HEADER ===== */
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  h1 {
    font-size: 1.3rem;
  }

  .welcome p {
    font-size: 13px;
  }

  .header-tools {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .balance-widget {
    width: 100%;
    padding: 10px 14px;
  }

  .balance-widget .amount {
    font-size: 1rem;
  }

  .live-tag {
    font-size: 10px;
    padding: 5px 10px;
    align-self: flex-start;
  }

  .action-icons {
    justify-content: flex-start;
  }

  /* ===== MENU BUTTON ===== */
  .menu-toggle {
    width: 38px;
    height: 38px;
    top: 8px;
    right: 8px;
  }

  /* ===== CHARTS ===== */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .chart-box {
    height: 260px;
    /* smaller mobile chart */
  }

  .premium-card {
    padding: 16px;
    border-radius: 18px;
  }

  /* ===== DONUT LEGEND ===== */
  .legend-row {
    font-size: 13px;
  }

  /* ===== SETTLEMENT GRID ===== */
  .settlement-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .p-card {
    padding: 18px;
  }

  .p-val {
    font-size: 1.2rem;
  }

  /* ===== PAYIN GRID ===== */
  .payin-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .info-card {
    padding: 16px;
  }

  .info-card h2 {
    font-size: 1.1rem;
  }

  /* ===== SIDEBAR WIDTH ===== */
  .sidebar {
    width: 230px;
  }

}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: white;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
}

@media (min-width: 1440px) {
  .menu-toggle {
    display: none;
  }
}

@media (min-width: 1024px) and (max-width: 1440px) {
  .menu-toggle {
    display: none;
  }
}






.sidebar {
  background: linear-gradient(180deg, #ffffff, #fbfbfd);
}

.premium-card,
.p-card,
.info-card {
  transition: all 0.35s ease;
}

.premium-card:hover,
.p-card:hover,
.info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(16, 24, 40, 0.08);
}

.stats-grid,
.stats-container {
  animation: fadeUp 0.5s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.live-tag::before {
  box-shadow: 0 0 0 0 rgba(18, 183, 106, 0.7);
  animation: pulse 1.8s infinite;
}

.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.live-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #12b76a;
  border-radius: 50%;
  position: relative;
}

/* Pulse ring */
.live-tag::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(18, 183, 106, 0.6);
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  70% {
    transform: scale(2.5);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 0;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(18, 183, 106, 0.7);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(18, 183, 106, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(18, 183, 106, 0);
  }
}

.badge {
  animation: badgePulse 1.5s infinite;
}

@keyframes badgePulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.3);
  }

  100% {
    transform: scale(1);
  }
}

.icon-circle i {
  transition: transform 0.3s ease;
}

/* Hover par shake */
.icon-circle:hover i {
  animation: bellShake 0.6s ease;
}

@keyframes bellShake {
  0% {
    transform: rotate(0);
  }

  20% {
    transform: rotate(-15deg);
  }

  40% {
    transform: rotate(10deg);
  }

  60% {
    transform: rotate(-10deg);
  }

  80% {
    transform: rotate(5deg);
  }

  100% {
    transform: rotate(0);
  }
}

.refresh-btn i {
  transition: transform 0.5s ease;
}

/* Loading animation */
.refresh-btn.loading i {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Refresh Spin Strong */
.refresh-btn.loading i {
  animation: spinFast 0.6s linear infinite;
}

@keyframes spinFast {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Balance Deduct Effect */
.balance-widget.deducting {
  animation: flashEffect 0.6s ease;
}

@keyframes flashEffect {
  0% {
    background: #ffffff;
  }

  50% {
    background: #fff1f1;
  }

  100% {
    background: #ffffff;
  }
}

/* Smooth number transition feel */




/* ==============================
   📊 GRAPH ENTRY ANIMATION
============================== */

.chart-large,
.donut-small,
.settlement-grid .p-card,
.payin-grid .info-card {
  opacity: 0;
  transform: translateY(30px);
  will-change: transform;
}


.chart-large.show,
.donut-small.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==============================
   🔥 SECTION ENTRY ANIMATION
============================== */

.settlement-grid .p-card,
.payin-grid .info-card {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.9s cubic-bezier(.16, 1, .3, 1);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  text-decoration: none;
}

.logo-area h2 {
  color: white;
}

.settlement-grid .p-card.show,
.payin-grid .info-card.show {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================
   🔵 MODERN BLUE GRADIENT SIDEBAR
===================================== */

.sidebar {
  width: 324px;
  height: calc(100vh - 24px);
  padding: 32px 10px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  position: relative;

  background: linear-gradient(180deg, #1e3a8a 0%, #2563eb 50%, #1d4ed8 100%);
  box-shadow: 0 30px 70px rgba(37, 99, 235, 0.35);
  border: none;
}

/* Subtle light overlay */


/* LOGO */
.logo-area h2 {
  color: white;
  font-weight: 700;
}

.logo-box {
  background: linear-gradient(135deg, #fb923c, #f97316);
}

/* NAV */
.nav-links {

  display: flex;
  flex-direction: column;
  gap: 0px;
}

/* NAV ITEM BASE */
.nav-item,
.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 36px 18px;
  border-radius: 40px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: all 0.35s ease;
  position: relative;
}

/* ICON STYLE */
.nav-item i,
.dropdown-toggle i:not(.arrow) {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
  transition: 0.3s ease;
}

/* HOVER */
.nav-item:hover,
.dropdown-toggle:hover {
  transform: translateX(6px);
  color: white;
}


/* ================= ACTIVE DESIGN ================= */

.nav-item.active {
  background: rgba(255, 255, 255, 0.92);
  color: #1e3a8a;
  font-weight: 600;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Orange curved strip */
.nav-item.active::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 0;
  height: 100%;
  width: 8px;
  border-radius: 0 20px 20px 0;
  background: linear-gradient(180deg, #fb923c, #f97316);
}

/* Active icon */
.nav-item.active i {
  background: linear-gradient(135deg, #fb923c, #f97316);
  color: white;
}

/* Dropdown arrow */
.arrow {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.7);
}

.nav-item,
.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 14px;

  min-height: 60px;
  /* 🔥 same height */
  padding: 0 18px;
  /* vertical padding hata diya */

  border-radius: 22px;
}

.dropdown-toggle .arrow {
  margin-left: auto;
  font-size: 18px;
  display: flex;
  align-items: center;
}

.dropdown-menu {
  padding-left: 18px;
  /* pehle 60px tha */
}

.nav-item,
.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 16px;

  height: 60px;
  /* fixed height */
  padding: 0 20px;
  /* only horizontal */

  border-radius: 32px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

.nav-item,
.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 60px;
  padding: 0 20px;
  border-radius: 32px;
  font-size: 15px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.3s ease;
}

.nav-item:hover,
.dropdown-toggle:hover {
  color: var(--accent);
  font-weight: 900;
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
  font-weight: 900;
}


/* =====================================================
   📱 TABLET – 768px and below (Clean Version)
===================================================== */
@media (max-width: 768px) {

  body {
    overflow-x: hidden;
  }

  .dashboard-wrapper {
    flex-direction: column;
    padding: 8px;
  }

  /* =======================
     SIDEBAR
  ======================= */

  .sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    height: 100vh;
    border-radius: 0 25px 25px 0;
    z-index: 1002;
    transition: left 0.35s ease;
  }

  .sidebar.active {
    left: 0;
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 1001;
  }

  .sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* =======================
     HEADER
  ======================= */

  .header {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .menu-toggle {
    display: flex;
    position: absolute;
    right: 0;
    top: 0;
  }

  .header-tools {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
  }

  .balance-widget {
    width: 100%;
  }

  /* =======================
     GRIDS
  ======================= */

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .settlement-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .payin-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* =======================
     CARDS
  ======================= */

  .premium-card,
  .p-card,
  .info-card {
    padding: 18px;
    border-radius: 20px;
  }

  .chart-box {
    height: 360px;
  }

}

/* =====================================================
   📱 MOBILE – 425px and below (Clean Professional)
===================================================== */
@media (max-width: 425px) {

  body {
    overflow-x: hidden;
  }

  .dashboard-wrapper {
    padding: 6px;
  }

  /* =========================
     SIDEBAR
  ========================= */

  .sidebar {
    width: 240px;
    left: -240px;
  }

  .sidebar.active {
    left: 0;
  }

  /* =========================
     HEADER
  ========================= */

  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  h1 {
    font-size: 1.25rem;
  }

  .welcome p {
    font-size: 12px;
  }

  .menu-toggle {
    width: 36px;
    height: 36px;
    right: 0;
    top: 0;
  }

  .header-tools {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .balance-widget {
    width: 100%;
    padding: 10px 14px;
  }

  .balance-widget .amount {
    font-size: 1rem;
  }

  .live-tag {
    font-size: 10px;
    padding: 4px 10px;
    align-self: flex-start;
  }

  .action-icons {
    justify-content: flex-start;
  }

  /* =========================
     SETTLEMENT GRID
  ========================= */

  .settlement-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .p-card {
    padding: 18px;
  }

  .p-val {
    font-size: 1.2rem;
  }

  /* =========================
     PAYIN GRID
  ========================= */

  .payin-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .info-card {
    padding: 16px;
  }

  .info-card h2 {
    font-size: 1.1rem;
  }

  /* =========================
     CHARTS
  ========================= */

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .chart-box {
    height: 250px;
  }

  .premium-card {
    padding: 16px;
    border-radius: 18px;
  }

  /* =========================
     DONUT LEGEND
  ========================= */

  .legend-row {
    font-size: 13px;
  }

}


.nav-item,
.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 14px;

  height: 48px;
  /* 🔥 64 se 48 */
  padding: 0 16px;
  /* thoda kam */
  border-radius: 14px;
  /* 32 se 14 */

  font-weight: 600;
}



/* ==============================
   SIDEBAR CLOSE BUTTON
============================== */

.sidebar-close {
  display: none;
  /* desktop pe hidden */
  position: absolute;
  top: 34px;
  right: 8px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: 0.3s ease;
}

.sidebar-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Only Mobile me show hoga */


/* 🔥 GLOBAL HORIZONTAL SCROLL FIX */
html,
body {
  overflow-x: hidden !important;
  max-width: 100%;
}

/* Prevent layout overflow */
/* .dashboard-wrapper,
.content-body,
.stats-container,
.stats-grid {
  max-width: 100%;
  overflow-x: hidden;
} */

/* Fix sidebar shadow overflow */
.sidebar {
  max-width: 100%;
}

/* Fix chart canvas overflow */
canvas {
  max-width: 100% !important;
}

.nav-item,
.dropdown-toggle {
  transition: all 0.3s ease;
}

.nav-item:hover,
.dropdown-toggle:hover {
  transform: translateX(6px);
}

.nav-item:hover,
.dropdown-toggle:hover {


  transform: none;
}

/* 🔥 COMPACT SIDEBAR NAV */
.sidebar .nav-item {
  height: 30px !important;
  /* aur chhota */
  padding: 0 14px !important;
  /* top-bottom remove */
  border-radius: 12px !important;
  /* thoda subtle */
  font-size: 14px;
}


.sidebar img {
  width: 124px;
  height: 124px;
  margin-left: 80px;
  margin-bottom: 30px;
}

.dropdown-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.nav-dropdown.open .dropdown-menu {
  max-height: 300px;
}


/* ACTIVE ONLY */
.nav-item.active {
  background: #fff9f4;
  color: var(--accent);
}


/* ===== ACTIVE ALWAYS SAME ===== */
.nav-item.active,
.nav-item.active:hover {
  background: #fff9f4;
  /* ya tera gradient */
  color: var(--accent);
}

/* ===== HOVER ONLY FOR NON-ACTIVE ===== */
.nav-item:not(.active):hover {
  background: none;
  color: inherit;
  transform: none;
  font-weight: normal;
}

/* ICON bhi fix */
.nav-item.active i {
  background: linear-gradient(135deg, #fb923c, #f97316);
  color: white;
}

.nav-item:not(.active):hover i {
  background: inherit;
  box-shadow: none;
}

/* ===== ACTIVE ICON LOCK ===== */
.nav-item.active i,
.nav-item.active:hover i {
  background: linear-gradient(135deg, #fb923c, #f97316) !important;
  color: white !important;
}

/* ===== NON-ACTIVE HOVER ===== */
.nav-item:not(.active):hover i {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  box-shadow: none;
  transform: none;
}

.nav-item:not(.active):hover {
  color: #f2994a;
  /* orange */
  font-weight: 500;
}

a.nav-item.active {
  margin-bottom: 2px;
}

a.nav-item {
  margin-bottom: 0px;
}




@media (max-width: 768px) {
  .sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .sidebar img {
    width: 124px;
    height: 124px;
    margin-left: 50px;
    margin-bottom: 30px;
}
}



