/* Custom styling and animation enhancements for NutriPlan Admin SPA */

.tab-nav-btn {
  transition: all 0.15s ease-in-out;
}

.active-tab {
  color: #006c4c !important;
  border-color: #006c4c !important;
}

.dark .active-tab {
  color: #10b981 !important;
  border-color: #10b981 !important;
}

/* Custom subtle scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.dark ::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 3px;
}
.dark ::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Toast animation */
.toast-item {
  animation: slideInRight 0.25s ease-out forwards;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Modal and Sub-tab styling */
.subtab-btn {
  transition: all 0.15s ease-in-out;
}
.subtab-btn.active-subtab {
  background-color: #006c4c !important;
  color: #ffffff !important;
}
.dark .subtab-btn.active-subtab {
  background-color: #10b981 !important;
  color: #0f172a !important;
}

/* Status code pill colors */
.status-pill-2xx {
  background-color: rgba(16, 185, 129, 0.12);
  color: #059669;
}
.dark .status-pill-2xx {
  background-color: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.status-pill-4xx {
  background-color: rgba(245, 158, 11, 0.12);
  color: #d97706;
}
.dark .status-pill-4xx {
  background-color: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.status-pill-5xx {
  background-color: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}
.dark .status-pill-5xx {
  background-color: rgba(239, 68, 68, 0.2);
  color: #f87171;
}
