@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  font-family: var(--font-sans);
  background-color: #090d16;
  color: #f1f5f9;
  overflow: hidden;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.3);
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.4);
}

/* Glassmorphism utility */
.glass-panel {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card {
  background: rgba(30, 41, 59, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Soft blink/glow for alerts */
@keyframes pulse-red-subtle {
  0%, 100% {
    background-color: rgba(244, 63, 94, 0.08);
  }
  50% {
    background-color: rgba(244, 63, 94, 0.16);
  }
}

.alert-row-roas {
  animation: pulse-red-subtle 3s infinite;
  border-left: 3px solid #f43f5e !important;
}

.selected-row {
  background: rgba(139, 92, 246, 0.14) !important;
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.45);
}

.selected-row td {
  color: #f8fafc !important;
}

/* Dynamic glow inputs */
.glow-input:focus {
  outline: none;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.5);
}

/* Tab animations */
.tab-active {
  position: relative;
  color: #8b5cf6;
}
.tab-active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #8b5cf6, #d946ef);
  border-radius: 2px;
}

/* Custom classes for table input focus states */
.table-input {
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  width: 100%;
  text-align: right;
}
.table-input:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}
.table-input:focus {
  background: #1e293b;
  border-color: #6366f1;
  outline: none;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3);
  border-radius: 4px;
  padding-right: 4px;
}

/* Carrusel de notificaciones fade-in/slide-in */
@keyframes carousel-slide-in {
  0% {
    opacity: 0;
    transform: translateY(2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-carousel-slide {
  animation: carousel-slide-in 0.3s ease-out forwards;
}

/* Ocultar barra de desplazamiento manteniendo funcionalidad */
.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;  /* IE y Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Acordeón colapsable de planillas (Gastos e Ingresos) */
.collapse-block > summary .collapse-chevron {
  transition: transform 0.2s ease;
  font-size: 0.75rem;
  line-height: 1;
}
.collapse-block[open] > summary .collapse-chevron {
  transform: rotate(90deg);
}

/* WhatsApp Notification Toast Animation */
@keyframes toast-slide-in {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.whatsapp-toast-enter {
  animation: toast-slide-in 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toast-slide-out {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(16px) scale(0.95);
  }
}
.whatsapp-toast-exit {
  animation: toast-slide-out 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

