/* Reset y configuración base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Background decorativo */
.background-decoration {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.circle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.1),
    rgba(191, 0, 255, 0.05)
  );
  animation: float 6s ease-in-out infinite;
}

.circle-1 {
  width: 300px;
  height: 300px;
  top: -150px;
  right: -150px;
  animation-delay: 0s;
}

.circle-2 {
  width: 200px;
  height: 200px;
  bottom: -100px;
  left: -100px;
  animation-delay: 2s;
}

.circle-3 {
  width: 150px;
  height: 150px;
  top: 30%;
  left: 10%;
  animation-delay: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* Container principal */
.recovery-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Header */
.recovery-header {
  margin-bottom: 30px;
  text-align: center;
}

.logo-container {
  background: white;
  padding: 20px;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: inline-block;
}

.logo {
  width: 60px;
  height: auto;
  display: block;
}

/* Contenido principal */
.recovery-content {
  width: 100%;
  max-width: 500px;
}

.recovery-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

/* Icono de la tarjeta */
.card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #00d4ff, #a70321);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  color: white;
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

/* Header de la tarjeta */
.card-header {
  text-align: center;
  margin-bottom: 40px;
}

.card-title {
  font-size: 2rem;
  color: #333;
  font-weight: 700;
  margin-bottom: 15px;
}

.card-subtitle {
  color: #aaa;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Formulario */
.recovery-form {
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  font-weight: 600;
  color: #374151;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 15px;
  color: #9ca3af;
  z-index: 1;
  pointer-events: none;
}

.form-input {
  width: 100%;
  padding: 16px 16px 16px 50px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f9fafb;
}

.form-input:focus {
  outline: none;
  border-color: #00d4ff;
  background: white;
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-input:focus + .input-icon {
  color: #00d4ff;
}

.form-input::placeholder {
  color: #9ca3af;
}

/* Acciones del formulario */
.form-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Botones */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #00d4ff 0%, #a70321 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #6b7280;
  border: 2px solid #e5e7eb;
}

.btn-secondary:hover {
  background: #f9fafb;
  border-color: #00d4ff;
  color: #00d4ff;
  transform: translateY(-2px);
}

.btn-text {
  flex: 1;
}

.btn-icon {
  transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
  transform: translateX(5px);
}

/* Footer de la tarjeta */
.card-footer {
  margin-bottom: 30px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.help-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.help-link {
  color: #6b7280;
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.help-link:hover {
  color: #00d4ff;
}

/* Sección de información */
.info-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.info-icon {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00d4ff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.info-content {
  flex: 1;
}

.info-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.info-text {
  font-size: 0.8rem;
  color: #aaa;
  line-height: 1.4;
}

/* Estados de carga para el botón */
.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn:disabled:hover {
  transform: none;
}

/* Efectos de enfoque mejorados */
.form-input:focus-visible {
  outline: 2px solid #00d4ff;
  outline-offset: 2px;
}

.btn:focus-visible {
  outline: 2px solid #00d4ff;
  outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .recovery-container {
    padding: 15px;
  }

  .recovery-card {
    padding: 30px 25px;
  }

  .card-title {
    font-size: 1.8rem;
  }

  .card-subtitle {
    font-size: 0.9rem;
  }

  .info-section {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .info-card {
    padding: 15px;
  }

  .help-links {
    gap: 15px;
  }

  .circle-1,
  .circle-2,
  .circle-3 {
    display: none;
  }
}

@media (max-width: 480px) {
  .recovery-card {
    padding: 25px 20px;
    margin: 0 10px;
  }

  .card-title {
    font-size: 1.6rem;
  }

  .form-input {
    padding: 14px 14px 14px 45px;
  }

  .btn {
    padding: 14px 20px;
  }

  .card-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 25px;
  }

  .logo-container {
    padding: 15px;
  }

  .logo {
    width: 50px;
  }
}

/* Animaciones adicionales */
@keyframes slideInFromBottom {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.recovery-card {
  animation: slideInFromBottom 0.6s ease-out;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}



body { background-color: #f4f7f6 !important; color: #ffffff; }
.content, .container, .section-container, .tab-content, .card { background-color: #ffffff !important; border: 1px solid #e0e6ed !important; }
.tab-content h1, .tab-content h2, .tab-content h3, .section-container h3, .card h3 { color: var(--primary-dark, #410070) !important; }
.tab-content strong, .tab-content label, .tab-content p, .tab-content td { color: #333333 !important; }

/* ESTILOS FORZADOS PARA TEMA CLARO CON DETALLES NEON */
body { background-color: #f4f7f6 !important; color: #1a1a1a; }
.content, .container, .section-container, .tab-content, .card, .usuarios-dias-especiales-container, .panel-dias-especiales-global { background-color: #ffffff !important; border: 1px solid #e0e6ed !important; color: #1a1a1a !important; }
.tab-content h1, .tab-content h2, .tab-content h3, .section-container h3, .card h3, .panel-header h4 { color: #410070 !important; }
.tab-content p, .tab-content span, .tab-content td, .tab-content strong, .tab-content label { color: #333333 !important; }

.btn-nuevo span, .btn-agregar span, .btn-editar span, 

.btn-nuevo, .btn-agregar, .btn-editar, .btn-confirmar, .btn-eliminar, .btn-rechazar, .btn-cancelar { color: #ffffff !important; }
.btn-nuevo span, .btn-agregar span, .btn-editar span, .btn-confirmar span, .btn-eliminar span, .btn-rechazar span, .btn-cancelar span { color: #ffffff !important; }

/* RESTAURACIÓN DE FONDOS DE BOTONES */
.btn-nuevo, .btn-agregar { 
    background: linear-gradient(135deg, #00d4ff, #0096b4) !important; 
    border: none !important;
}
.btn-editar, .btn-confirmar { 
    background: linear-gradient(135deg, #7b00cc, #410070) !important; 
    border: none !important;
}
.btn-eliminar, .btn-rechazar { 
    background: linear-gradient(135deg, #ff3366, #b1002e) !important; 
    border: none !important;
}
.btn-cancelar { 
    background: linear-gradient(135deg, #a0a0a0, #6c757d) !important; 
    border: none !important;
}

/* FIX PARA TEXTO BLANCO EN BADGES Y ROLES - MAS ESPECIFICO PARA VENCER REGLAS DE TEMA CLARO */
.tab-content .codigo-badge, .tab-content .badge, .tab-content [class*="badge"], .tab-content .user-rol span, .tab-content .rol-badge, 
.section-container .codigo-badge, .section-container .badge, .section-container [class*="badge"], .section-container .user-rol span, .section-container .rol-badge { 
    color: #ffffff !important; 
}
