* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
}

body {
  display: flex;
}

.content {
  flex: 1; /* Ocupa todo el espacio disponible */
}

@media (max-width: 700px) {

  /* smartphones, portrait iPhone, portrait 480x320 phones (Android) */
  img.logoLogin {
    max-width: 50%;
    position: fixed;
    top: 15%;
  }
}

@media (min-width: 1025px) {

  /* big landscape tablets, laptops, and desktops */
  img.logoLogin {
    max-width: 319px;
    position: fixed;
    top: 5%;
  }

  img.logoReset {
    max-width: 319px;
    top: 5%;
  }
}

#app {
  display: flex;
  flex-direction: row;
  flex: 1 0 auto;
  min-height: 0;
}

#main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

header, .layout-navbar {
  flex-shrink: 0;
}

#main-content {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.layout-navbar {
  flex-shrink: 0;
}

.section.content {
  flex: 1;
}

.footer-wrapper {
  margin-left: 0px; /* mismo ancho que el sidebar */
}

@media (max-width: 768px) {
  .footer-wrapper {
    margin-left: 0; /* en móvil el sidebar desaparece o se colapsa */
  }
}

footer {
  text-align: center !important;
  padding: 1rem;
}

/*** login ***/

.containerLogin {
  width: 100%;
  min-height: 100vh;
  display: flex;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
}

.colored-panel {
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, #1b385d, #E0FFFF);
  position: absolute;
  top: 0;
  left: 0%;
  transition: all 0.6s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: white;
  z-index: 2;
}

.colored-panel.rounded-right {
  transform: translateX(0);
  border-top-right-radius: 200px;
  border-bottom-right-radius: 200px;
}

.colored-panel.rounded-left {
  transform: translateX(100%);
  border-top-left-radius: 200px;
  border-bottom-left-radius: 200px;
}

.form-container {
  width: 100%;
  height: 100vh;
  display: flex;
  position: relative;
  top: 0;
  left: 0;
  z-index: 1;
  transition: transform 0.6s ease-in-out;
  overflow-y: auto;
  box-sizing: border-box;
}

.form-wrapper {
  width: 50%;
  min-height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-wrapper#signup-wrapper {
  order: 2;
}

.form-wrapper#login-wrapper {
  order: 1;
}

.form {
  width: 80%;
  max-height: 90%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 35px;
  padding-bottom: 10px;
  background: white;
  border-radius: 50px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form.hidden {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.form h2 {
  margin-bottom: 20px;
}

.form button {
  padding: 10px 20px;
  border: none;
  background: #1b385d;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
}

.form button:hover {
  background: #3b3f9a;
}

/*** Inputs login ***/

.input {
  padding: 1rem;
  border: 1px solid #9e9e9e;
  border-radius: 10px;
  transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.label {
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  color: #000000;
  font-size: 1.25rem;
  pointer-events: none;
  transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.input:focus {
  border: 1px solid #3b3f9a;
}

.input:is(:focus, :valid)~label {
  transform: translateY(-120%) translateX(-10%) scale(0.7);
  background-color: #ffffff;
  padding-inline: 0.5rem;
  margin-top: 0.5rem;
  color: #11673a;
}

i {
  position: relative;
  top: 3px;
}

i.eye {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.25rem;
  color: #3b3f9a;
  pointer-events: auto;
}

.profile {
  max-width: 90% !important;
}

.table-responsive {
  background-color: #ffffff;
  padding: 5px;
  overflow-y: auto;
}

.table thead tr {
  position: sticky;
  top: 0;
  background-color: white; /* Asegura que el encabezado no se mezcle con el contenido */
  z-index: 10;
}

/*** validador de contraseña ***/
#password-requirements li {
  color: red;
  list-style: none;
}
#password-requirements li.valid {
  color: green;
}
#password-requirements li.invalid {
  color: red;
}

#password-requirements {
  position: absolute;
  top: 100%; /* Justo debajo del input */
  left: 0; /* Alineado al inicio del input */
  background-color: #f9f9f9; /* Fondo claro */
  border: 1px solid #ccc; /* Borde sutil */
  border-radius: 5px; /* Bordes redondeados */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra para flotante */
  padding: 10px; /* Espaciado interno */
  z-index: 100; /* Asegura que esté encima de otros elementos */
  width: 300px; /* Tamaño fijo opcional */
  font-size: 14px; /* Tamaño de texto */
}


.beep {
  position: relative; 
}
.beep:after {
  content: '';
  position: absolute;
  top: 18px;
  right: 0px;
  width: 10px;
  height: 10px;
  background-color: #38d430;
  border-radius: 50%;
  animation: pulsate 1s ease-out;
  animation-iteration-count: infinite;
  opacity: 1;
}
.beep.beep-sidebar:after {
  position: static;
  margin-left: 10px;
}

@keyframes pulsate {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}  

.text-left {
  float: left;
  text-align: left;
}

.text-right {
  float: right;
  text-align: right;
}

.checkbox-container {
  display: flex;
  justify-content: space-between; /* Distribuye uniformemente */
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.radio-item {
  display: flex;
  align-items: center; /* Asegura alineación vertical */
  gap: 5px; /* Espaciado entre radio y texto */
  white-space: nowrap; /* Evita saltos de línea */
}

#normas-select option {
  display: block !important;
  visibility: visible !important;
  background-color: #fff !important;
  color: black !important;
  font-size: 16px !important;
}

/** Modal load **/

/** SPINNER CREATION **/

.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  border: 10px solid rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  border-top-color: #000;
  animation: spin 1s linear infinite;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

/* Animación con rotación que preserve la traslación */
@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@-webkit-keyframes spin {
  to {
    -webkit-transform: translate(-50%, -50%) rotate(360deg);
  }
}

.modal-content {
  border-radius: 0px;
  box-shadow: 0 0 20px 8px rgba(0, 0, 0, 0.7);
}

.modal-backdrop.show {
  opacity: 0.75;
}

.loader-txt {
  margin-top: 105px !important; /* Ajusta el valor para dejar suficiente espacio */
  font-size: 14px;
  color: #333; /* Color legible */
}


.logo-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px; /* ajusta según el tamaño deseado */
  height: 40px;
  transform: translate(-50%, -50%);
  z-index: 10000;
  pointer-events: none; /* para que no interfiera con clics */
}

#layoutEconomia th, #layoutEconomia td {
  white-space: nowrap;
}

.version-text {
  color: #9e9e9e !important;
  font-size: 8px !important;
}