/* Custom Dashboard Styling & Animations */

/* Global safety against horizontal page scroll */
html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* Active Tab Indicator */
.tab-btn.active-tab {
  background-color: #1e293b;
  color: #38bdf8;
  border-bottom: 2px solid #38bdf8;
}

/* Hide scrollbar utility */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: #090d16;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Smooth transitions */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

/* Progress bar glowing effect */
.progress-glow {
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

/* Toast animation */
@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.toast-item {
  animation: slideInUp 0.25s ease-out forwards;
}

/* Mobile Touch Optimization */
@media (max-width: 640px) {
  button, input, select, textarea {
    font-size: 13px;
  }
  .account-card {
    padding: 1rem !important;
  }
}
