@tailwind base;
@tailwind components;
@tailwind utilities;


/* Dropdown fix */
.dropdown-menu.show {
  position: fixed !important;
}

/* Global Dark Mode Inputs */
@layer base {

  /* Inputs, Selects, Textareas en Dark Mode */
  html.dark input[type='text'],
  html.dark input[type='password'],
  html.dark input[type='email'],
  html.dark input[type='number'],
  html.dark input[type='date'],
  html.dark input[type='search'],
  html.dark select,
  html.dark textarea {
    background-color: #0f172a;
    /* slate-900 */
    border-color: #334155;
    /* slate-700 */
    color: #f3f4f6;
    /* gray-100 */
  }

  /* Placeholder más suave */
  html.dark input::placeholder,
  html.dark textarea::placeholder {
    color: #64748b;
    /* slate-500 */
  }

  /* Focus state */
  html.dark input:focus,
  html.dark select:focus,
  html.dark textarea:focus {
    border-color: #3b82f6;
    /* blue-500 */
    ring-color: #3b82f6;
    background-color: #1e293b;
    /* slate-800 focus highlight */
  }

  /* Checkbox & Radio adjustments if needed */
  html.dark input[type='checkbox'],
  html.dark input[type='radio'] {
    background-color: #1e293b;
    border-color: #475569;
  }
}

/* --- ANIMACIONES Y ESTILOS PREMIUM --- */

@keyframes blob {
  0% {
    transform: translate(0px, 0px) scale(1);
  }
  33% {
    transform: translate(30px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
  100% {
    transform: translate(0px, 0px) scale(1);
  }
}

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

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

.animate-blob {
  animation: blob 7s infinite alternate ease-in-out;
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fadeIn {
  animation: fadeIn 0.5s ease-out forwards;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

/* Scrollbar moderno */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

.dark ::-webkit-scrollbar-track {
  background: #0f172a;
}

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

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

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

.dark ::-webkit-scrollbar-thumb:hover {
  background: #475569;
}