/* FILE: assets/css/app.css */

html,
body {
	height: 100%;
	overflow-y: auto;
}

body {
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../../assets/img/background.jpg') no-repeat center center fixed;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-size: cover;
  overflow-x: hidden;
  padding-top: 56px;
  position: relative;
  color: #333;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}
@media (min-width: 992px) {
  .main-content {
    margin-left: 290px;
  }
}

.main-content {
  padding-bottom: 100px;
}

@media (max-width: 991.98px) {
  .main-content {
    margin-left: 0 !important;
    margin-top: 70px;
    padding: 0 1rem 100px;
  }
}

/* 1) Footer full-width que centra su contenido */
footer {
  position: fixed;
  bottom: 20px;
  left: 0;
  width: 100%;            /* ocupa todo el ancho */
  text-align: center;     /* centra el inline-block interno */
  pointer-events: none;   /* no interfiere con clicks fuera */
  z-index: 999;
}

/* 2) Bloque interno que se adapta al contenido */
.footer-inner {
  opacity: 0;
  transform: translateY(20px);

  /* Tu animación de entrada */
  animation: slideUpFadeIn 0.6s ease-out 0.2s forwards;

  /* — resto de estilos que ya tienes — */
  display: inline-block;
  max-width: 90vw;
  background-color: rgba(169, 189, 86, 0.9);
  color: rgb(46, 59, 31);
  font-family: Georgia, serif;
  font-size: 1.2rem;
  padding: 0.75rem 1.5rem;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  pointer-events: auto;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

@keyframes slideUpFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-inner {
  background: linear-gradient(
    135deg,
    rgba(169,189,86,0.9) 0%,
    rgba(153,171,75,0.9) 100%
  );
  border: 2px solid var(--leaf-dark);
  animation: slideUpFadeIn 0.6s ease-out 0.2s forwards;
}

/* Estado “hover”: ligero levantamiento y color más claro */
.footer-inner:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  background-color: rgba(181, 201, 96, 0.95);
}

/* Estado “active”: efecto de pulsación */
.footer-inner:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  background-color: rgba(161, 179, 82, 0.9);
}

/* 3) Ajustes específicos para móvil */
@media (max-width: 576px) {
  .footer-inner {
    max-width: 80vw;           /* un poco más estrecho en móviles */
    font-size: 13px;       /* ~14px */
    padding: 0.5rem 1rem;
    border-radius: 11px;
    white-space: normal;       /* permitir varias líneas si el texto es muy largo */
  }
}

.login-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh; /* Fuerza que ocupe toda la pantalla */
  padding: 20px;
  font-family: monospace;
  background-color: transparent;
}

.login-container {
  background-color: rgba(0, 0, 0, 0.75);
  padding: 40px;
  border-radius: 15px;
  max-width: 450px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.7s ease-in-out;
  transition: transform 0.3s, box-shadow 0.3s;
}
.login-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

.login-outer {
  display: inline-block;
  padding: 5px; /* Grosor del borde */
  border-radius: 20px;
  background: linear-gradient(90deg, #ffdd57, rgb(212, 14, 230), rgb(18, 236, 102), rgb(2, 39, 119));
  background-size: 300%;
  animation: border-rotate 3s linear infinite;
}

.welcome-message {
  font-size: 28px;
  margin-bottom: 20px;
  color: #ffdd57;
  font-weight: 600;
}

@keyframes border-rotate {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(-30px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Estilos adicionales para formularios y botones dentro del login */
.form-control:focus {
  box-shadow: none;
  border-color: #ffdd57;
}

.btn-custom {
  background-color: #05582A;
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  width: 100%;
  border-radius: 30px;
  font-size: 16px;
  transition: background-color 0.3s, transform 0.2s;
  font-weight: 600;
}

.btn-custom:hover {
  background-color: #e6c843;
  transform: scale(1.05);
}

.input-group-text {
  background-color: rgba(255, 221, 87, 0.1);
  border: none;
  color: #ffdd57;
}

/* Ajustes para dispositivos móviles */
@media (max-width: 576px) {
  .login-container {
      padding: 30px;
  }
  .btn-custom {
      padding: 10px 18px;
      font-size: 14px;
  }
  .welcome-message {
    font-size: 24px;
  }
}

/* Mejoras Adicionales */
.form-label {
  font-weight: bold;
  color: #343a40;
}
.form-control {
  border-radius: 10px;
}
.btn-primary {
  background-color: #28a745;
  border: none;
  border-radius: 10px;
  padding: 10px;
  font-size: 16px;
  transition: background-color 0.3s ease;
}
.btn-primary:hover {
  background-color: #218838;
}

/* Animación para el cambio de ícono */
@keyframes iconFade {
  0% {
    opacity: 0;
    transform: scale(0.8) rotate(-10deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.toggle-icon-animated {
  animation: iconFade 0.3s ease;
}
/* Modal estilizado */
.modal-content {
  border-radius: 1.25rem;
  overflow: hidden;
}

.modal-header {
  border-bottom: none;
  font-weight: 600;
}

.modal-footer {
  justify-content: center;
}

.modal-title i {
  color: #fff;
}
/* Animación de gradiente para SweetAlert2 */
@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.swal2-popup.animate-gradient {
  /* Gradiente con los mismos colores que usas en JS */
  background: linear-gradient(
    135deg,
    #ffdd57,
    #d40ee6,
    #0faa4b,
    #02277a,
    #ffdd57
  );
  background-size: 300% 300%;      /* Hace el “movimiento” más suave */
  animation: gradientMove 12s ease infinite;
  border-radius: 1rem;              /* rounded-4 equivale a 1rem */
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, 0.2);
  color: #fff;                      /* Asegura texto blanco */
}
.swal2-popup.animate-gradient {
  pointer-events: auto;
  /* resto de tu animación… */
}

/* Cambiar tipografía y color al título "Login" */
.login-container h2 {
  font-family: 'Montserrat', sans-serif;
  color: #ffffff; /* o cualquier otro color que prefieras */
  font-weight: 700;
  font-size: 2rem;
}

/* Cambiar tipografía y color del input DNI */
#dni {
  font-family: 'Montserrat', sans-serif;
  color: #ffffff; /* Texto dentro del input */
  background-color: rgba(255, 255, 255, 0.1);
}

/* Cambiar tipografía y color del input Contraseña */
#password {
  font-family: 'Montserrat', sans-serif;
  color: #999711;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Opcional: cambiar el placeholder también */
#dni::placeholder,
#password::placeholder {
  color: #cccccc;
  font-family: 'Montserrat', sans-serif;
}
.toggle-icon-animated {
  animation: pop 0.3s ease;
}

@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.form-reset {
  max-width: 480px;
  margin: 2rem auto;
}

/* 2) Contenedor absoluto para la imagen */
.login-image-wrapper {
  position: absolute;
  top: 20px;                   /* ajusta la distancia a tu gusto */
  left: 50%;
  transform: translateX(-50%);
  width: auto;                 /* ancho según tu imagen */
  height: auto;                /* alto según tu imagen */
  z-index: 999;
  pointer-events: none;        /* para que no interfiera con clicks */
}

/* 3) Imagen sin recorte circular */
.login-image-floating {
  display: block;
  max-width: 200px;            /* o el tamaño que necesites */
  width: 100%;
  height: auto;
  border-radius: 0;            /* quitar borde redondo */
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(-10px) scale(0.9);
  transition: opacity 0.6s ease-out,
              transform 0.6s ease-out;
}

/* 4) Animación al cargar */
body.loaded .login-image-floating {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: floatingBounce 3s ease-in-out infinite;
}

/* 5) Animación de sube y baja */
@keyframes floatingBounce {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-15px) scale(1);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

/* 5) Asegúrate de no haber puesto margin-top en login-section */
.login-section {
  margin-top: 0 !important;
}

/* Tipografía Poppins ya está cargada */
.remember-label {
  color: #fafbfc;               /* Azul, cámbialo por tu hexadecimal */
  font-size: 1.1rem;            /* Ej: 1.1 rem = 17.6px si base es 16px */
  font-family: 'Poppins', sans-serif;
  /* Opcional: más estilos */
  /* font-weight: 600; */
  /* letter-spacing: 0.5px; */
}

:root{
  --leaf-100:#e8f5e9;         /* verde muy claro          */
  --leaf-500:#43a047;         /* verde vivo (hoja)        */
  --leaf-600:#2e7d32;         /* verde profundo           */

  --sun-100:#fff3e0;          /* naranja claro            */
  --sun-400:#ffb74d;          /* naranja medio            */
  --sun-500:#ffa726;          /* “sol”                    */
  --sun-600:#ff0000;          /* naranja oscuro           */

  --glass-alpha:.84;          /* opacidad del gradiente   */
}

/* ——— NAVBAR “glass” 3-D ——————————————————— */
.glassy-navbar{
  position:fixed;
  top:0;
  left:50%;
  transform:translateX(-50%);
  width:95%;
  max-width:1050px;
  z-index:1055;
  /* ➜ gradiente hoja→sol con transparencia */
  background:linear-gradient(135deg,
              rgba(67,160,71,var(--glass-alpha))   0%,
              rgba(255,167,38,var(--glass-alpha)) 70%);
  backdrop-filter:blur(18px) saturate(160%);

  border:1px solid rgba(255,255,255,.35);
  border-radius:25px;
  box-shadow:0 14px 28px rgba(0,0,0,.25);
}

/* foto */
.avatar-employee{
  width:120px; height:120px; border-radius:50%; object-fit:cover;
  border:3px solid var(--sun-400);                /* aro naranja */
  box-shadow:0 0 8px rgba(0,0,0,.35);
}

/* nombre */
.employee-name{
  font-size:2rem;               /* ↑ tamaño */
  font-weight:700;
  color:#fff;
  text-shadow:0 3px 6px rgba(0,0,0,.35);
}

/* tarjeta fecha-hora */
.info-badge{
  background:rgba(255,255,255,.22);
  border:1px solid rgba(255,255,255,.28);
  backdrop-filter:blur(10px);
  border-radius:18px;
  padding:.65rem 2rem;          /* ↑ tamaño */
  color:#fff;
  font-weight:600;
  font-size:1.25rem;            /* ↑ tamaño */
}

/* botón salir */
.logout-btn{
  position:absolute; top:18px; right:22px;
  --bs-btn-color:#fff;
  --bs-btn-border-color:#fff;
  --bs-btn-hover-bg:var(--sun-600);
  --bs-btn-hover-border-color:var(--sun-500);
}

@media (max-width: 992px) {
  .glassy-navbar {
    width: calc(100% - 1rem);
    max-width: none;
    border-radius: 0 0 20px 20px;
  }

  .glassy-navbar .container-fluid {
    padding: 0.85rem 0.9rem 1rem;
    align-items: center;
  }

  .glassy-navbar > .container-fluid {
    gap: 0.85rem;
  }

  .glassy-navbar .d-flex {
    flex-wrap: wrap;
    justify-content: center;
  }

  .avatar-employee {
    width: 90px;
    height: 90px;
  }

  .glassy-navbar .employee-name {
    font-size: 1.5rem;
  }

  .employee-position {
    font-size: 0.95rem;
  }

  .info-badge {
    font-size: 0.95rem;
    padding: 0.45rem 1rem;
  }

  .logout-btn {
    top: 12px;
    right: 12px;
    padding: 0.35rem 0.9rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 576px) {
  .glassy-navbar {
    width: calc(100% - 0.6rem);
  }

  .glassy-navbar .container-fluid {
    padding: 0.7rem 0.75rem 0.9rem;
    align-items: center;
  }

  .glassy-navbar > .container-fluid {
    gap: 0.7rem;
  }

  .glassy-navbar .d-flex {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
  }

  .avatar-employee {
    width: 80px;
    height: 80px;
  }

  .glassy-navbar .employee-name {
    font-size: 1.25rem;
  }

  .employee-position {
    font-size: 0.9rem;
  }

  .info-badge {
    font-size: 0.9rem;
    padding: 0.4rem 0.9rem;
    order: 3;
    width: 100%;
  }

  .logout-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    order: 2;
    margin: 0;
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
  }

  .logout-btn:hover,
  .logout-btn:focus {
    background-color: #ff8c00;
    border-color: #ff8c00;
    color: #fff;
  }
}

/* puesto (línea debajo del nombre) */
.employee-position{
  font-size:1.25rem;
  font-weight:500;
  color:#fff;
  text-shadow:0 2px 4px rgba(0,0,0,.35);
}