/* Safe area for bottom nav */
.pb-nav {
  padding-bottom: calc(80px + var(--safe-bottom, 0px));
}

/* Number formatting */
.num-fa {
  direction: ltr;
  unicode-bidi: embed;
}

/* Smooth page transitions */
.page-content {
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Stat box gradient backgrounds */
.stat-box {
  position: relative;
  overflow: hidden;
  background: #ffffff;
}
.stat-box::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}
.stat-box > * {
  position: relative;
  z-index: 1;
}
.stat-box-sky::before {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18) 0%, rgba(14, 165, 233, 0.06) 30%, rgba(255, 255, 255, 0) 70%);
}
.stat-box-indigo::before {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18) 0%, rgba(99, 102, 241, 0.06) 30%, rgba(255, 255, 255, 0) 70%);
}
.stat-box-green::before {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.18) 0%, rgba(22, 163, 74, 0.06) 30%, rgba(255, 255, 255, 0) 70%);
}
.stat-box-amber::before {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.18) 0%, rgba(217, 119, 6, 0.06) 30%, rgba(255, 255, 255, 0) 70%);
}

/* Chart container */
.chart-bar {
  transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
