
/* Custom scrollbars for sidebars and tables */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Sidebar active item styling */
.nav-item-active {
  background-color: #fff0f0 !important;
  color: #e00000 !important;
}

.nav-item-active svg {
  color: #e00000 !important;
}

.nav-item:hover:not(.nav-item-active) {
  background-color: #f1f5f9;
}

/* View transitions (Slide & Fade) */
.view-section {
  animation: fadeSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal layout & animations */
.modal-enter {
  animation: modalFadeIn 0.2s ease-out forwards;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-panel-enter {
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Pulse badge styling */
.badge-pulse {
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.3);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0);
  }
}

/* Stat card hover transitions */
.stat-card {
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.stat-card:hover {
  box-shadow: 0 20px 40px -15px rgba(0, 72, 132, 0.08);
  transform: translateY(-2px);
}

/* Table row hover transitions */
.table-row-hover:hover {
  background-color: #f8fafc;
}

/* Login Page specific elements */
.login-card {
  background-color: #ffffff;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 214, 214, 0.4);
  box-shadow: 0 10px 30px -10px rgba(224, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.login-card:hover {
  box-shadow: 0 20px 45px -15px rgba(224, 0, 0, 0.09);
}

.login-input {
  background: #ffffff;
  border: 1px solid #ffd6d6;
  color: #1e293b;
  transition: all 0.2s;
}

.login-input:focus {
  outline: none;
  border-color: #e00000;
  box-shadow: 0 0 0 3px rgba(224, 0, 0, 0.15);
}

/* Custom classes for fonts and alignments */
.font-data {
  font-family: 'Inter', sans-serif;
}

/* Helper spacing and sizing */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
