/* ========================================================
   TEMA GLASSMORPHISM + NEÓN DARK CYBER
   ======================================================== */
:root {
  --bg-dark: #0a0a14;
  --neon-purple: #a855f7;
  --neon-purple-glow: rgba(168, 85, 247, 0.5);
  --neon-cyan: #06b6d4;
  --neon-cyan-glow: rgba(6, 182, 212, 0.5);
  --neon-red: #f43f5e;
  --neon-red-glow: rgba(244, 63, 94, 0.5);
  --glass-bg: rgba(20, 16, 34, 0.65);
  --glass-border: rgba(168, 85, 247, 0.25);
  --glass-border-hover: rgba(192, 132, 252, 0.6);
}

body {
  background-color: var(--bg-dark);
  background-image: radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.18) 0%, transparent 40%), radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.16) 0%, transparent 45%), radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.05) 0%, transparent 60%);
  background-attachment: fixed;
  color: #e2e8f0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
}

.main-content-wrapper {
  padding-top: 95px;
  min-height: calc(100vh - 170px);
}

/* NAVBAR */
.glass-nav {
  background: rgba(10, 10, 18, 0.8) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.7);
}

.text-neon {
  color: var(--neon-purple);
  text-shadow: 0 0 12px rgba(192, 132, 252, 0.6);
}

.neon-badge {
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: #fff;
  padding: 6px 11px;
  border-radius: 10px;
  font-size: 1.1rem;
  box-shadow: 0 0 15px var(--neon-purple-glow);
}

.nav-neon-link {
  color: #cbd5e1 !important;
  font-weight: 500;
  padding: 8px 16px !important;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

  .nav-neon-link:hover {
    color: #fff !important;
    background: rgba(168, 85, 247, 0.2);
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.35);
    transform: translateY(-2px);
  }

/* TARJETAS GLASS INTERACTIVAS */
.glass-card-interactive {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

  .glass-card-interactive:hover {
    transform: translateY(-7px) scale(1.01);
    border-color: var(--glass-border-hover);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px var(--neon-purple-glow);
  }

/* ========================================================
   ANIMACIONES DE BOTONES DE OTRO MUNDO
   ======================================================== */

/* BOTÓN CREAR CON PULSO NEÓN CONTINUO */
.btn-neon-add {
  background: linear-gradient(135deg, #9333ea, #6366f1);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 10px 22px;
  box-shadow: 0 0 15px var(--neon-purple-glow);
  transition: all 0.3s ease;
  animation: neon-pulse 3s infinite;
}

  .btn-neon-add:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.9);
    color: #fff !important;
  }

@keyframes neon-pulse {
  0% {
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
  }

  50% {
    box-shadow: 0 0 24px rgba(168, 85, 247, 0.8), 0 0 35px rgba(99, 102, 241, 0.5);
  }

  100% {
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
  }
}

/* BOTÓN BASE DE ACCIONES CON DESTELLO DE LUZ */
.btn-action-card {
  position: relative;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
  transition: all 0.25s ease-in-out;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-decoration: none;
  border: 1px solid transparent;
}

  /* Rayo de luz que cruza el botón en hover */
  .btn-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transition: left 0.5s ease;
  }

  .btn-action-card:hover::before {
    left: 140%;
  }

/* 1. Botón Editar (Púrpura Neón) */
.btn-action-edit {
  background: rgba(168, 85, 247, 0.12);
  color: #d8b4fe !important;
  border-color: rgba(168, 85, 247, 0.45);
}

  .btn-action-edit:hover {
    background: var(--neon-purple);
    color: #ffffff !important;
    box-shadow: 0 0 18px var(--neon-purple-glow);
    transform: translateY(-2px);
  }

/* 2. Botón Detalle (Cyan Neón) */
.btn-action-details {
  background: rgba(6, 182, 212, 0.12);
  color: #67e8f9 !important;
  border-color: rgba(6, 182, 212, 0.45);
}

  .btn-action-details:hover {
    background: var(--neon-cyan);
    color: #ffffff !important;
    box-shadow: 0 0 18px var(--neon-cyan-glow);
    transform: translateY(-2px);
  }

/* 3. Botón Eliminar (Rojo Neón) */
.btn-action-delete {
  background: rgba(244, 63, 94, 0.12);
  color: #fda4af !important;
  border-color: rgba(244, 63, 94, 0.45);
}

  .btn-action-delete:hover {
    background: var(--neon-red);
    color: #ffffff !important;
    box-shadow: 0 0 18px var(--neon-red-glow);
    transform: translateY(-2px);
  }

/* FORMULARIOS Y CONTROLES */
.form-control, .form-select {
  background-color: rgba(15, 12, 28, 0.75) !important;
  border: 1px solid var(--glass-border) !important;
  color: #fff !important;
  border-radius: 10px;
}

  .form-control:focus, .form-select:focus {
    background-color: rgba(20, 16, 36, 0.95) !important;
    border-color: var(--neon-purple) !important;
    box-shadow: 0 0 16px var(--neon-purple-glow) !important;
    color: #fff !important;
  }

/* TOASTS FLOTANTES */
.toast-floating-container {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.glass-toast {
  min-width: 320px;
  max-width: 400px;
  background: rgba(18, 14, 30, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  animation: slideInToast 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.35s ease;
}

  .glass-toast.fade-out {
    opacity: 0;
    transform: translateX(110%);
  }

  .glass-toast.toast-success {
    border-left: 5px solid #22c55e;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
  }

  .glass-toast.toast-danger {
    border-left: 5px solid #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
  }

.toast-icon {
  font-size: 1.8rem;
}

.toast-success .toast-icon {
  color: #4ade80;
}

.toast-danger .toast-icon {
  color: #f87171;
}

.toast-content h6 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.toast-content p {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.toast-btn-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.3rem;
  cursor: pointer;
  margin-left: auto;
}

@keyframes slideInToast {
  from {
    opacity: 0;
    transform: translateX(100%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.glass-footer {
  background: rgba(10, 10, 18, 0.85);
  border-top: 1px solid var(--glass-border);
}
