@import url(https://fonts.googleapis.com/css?family=Nunito);
@import url(//maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css);
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,800|Poppins&display=swap');

html {
  overflow-y: scroll;
}

body {
  color: #ffffff !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.5em !important;
  background: url(../img/bg-1.jpg) no-repeat center center fixed !important;
  background-size: cover !important;
  -webkit-background-size: cover !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.contenedor {
  position: relative;
  width: 100%;
  height: 100%;
}

.form-wrapper {
  position: absolute;
  left: 50%;
  top: 30%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 360px;
  /* Un poco más de ancho para mejor distribución */
  height: max-content;
  background: #1c1c1e;
  padding: 25px 30px;
  border-radius: 20px;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.7);
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .form-wrapper {
    top: 32% !important;
    /* Elevado para evitar colisión con minicard */
    transform: translate(-50%, -50%) !important;
    /* Simetría total */
    max-width: 340px;
    padding: 20px;
  }
}

.form-wrapper-table {
  position: absolute !important;
  left: 50%;
  top: 4%;
  transform: translate(-50%, 0%);
  width: 70%;
  height: max-content;
  padding: 15px 25px;
  border-radius: 5px;
  color: #212529;
}

.panel {
  margin-bottom: 20px;
  background-color: #fff;
  border: 1px solid transparent;
  border-radius: 4px;
  -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
  margin-top: 12px;
}

table.dataTable tbody th,
table.dataTable tbody td {
  padding: 4px 10px !important;
}

.modal-backdrop {
  position: relative !important;
}

.w3-card-4w,
.w3-hover-shadow:hover {
  box-shadow: 0 4px 10px 0 rgba(75, 214, 242, 0.5),
    0 4px 20px 0 rgba(256, 256, 256, 0.19);
  -webkit-border-radius: 8px;
  border-radius: 8px;
  border-radius: 8px;
  border-radius: 8px;
  border-radius: 8px;
  border-radius: 8px;
  -moz-border-radius: 8px;
}

.form-item {
  width: 100%;
}

h3 {
  font-size: 25px;
  font-weight: 640;
  margin-bottom: 10px;
  color: #ffffff;
  padding: 6px;
  font-family: 'sans-serif', 'helvetica';
}

.form-item input {
  border: none;
  background: transparent;
  color: #fff;
  margin-top: 11px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1.2em;
  height: 49px;
  padding: 0 16px;
  width: 100%;
  padding-left: 55px;
}

#search_textBox {
  -webkit-appearance: none;
  width: 100%;
  height: 50px;
  padding: 10px 15px;
  box-sizing: border-box;
  border: 1px solid #48484a;
  /* Gris metÃ¡lico HIG */
  background: #2c2c2e;
  /* Fondo oscuro tÃ¡ctico */
  color: #ffffff;
  border-radius: 12px;
  text-align: center;
  font-size: 20px;
  font-weight: 500;
  /* Reducido para elegancia */
  text-transform: uppercase;
  outline: none;
  transition: all 0.3s ease;
  margin-top: 10px;
}

#search_textBox:focus {
  border: 1px solid #00b6df;
  background: #3a3a3c;
  box-shadow: 0 0 10px rgba(0, 182, 223, 0.2);
}

/* Eliminados iconos de fondo antiguos para evitar duplicados con FontAwesome */
.form-item input {
  border: none;
  background: transparent;
  color: #fff;
  margin-top: 11px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1.2em;
  height: 49px;
  padding: 0 16px;
  width: 100%;
}

.form-item input:focus {
  outline: none;
  border: 1.4px solid #cfecf0;
}

.button-panel {
  margin-bottom: 20px;
  padding-top: 10px;
  width: 100%;
}

.button-panel .button {
  background: #00b6df;
  border: none;
  color: #fff;
  cursor: pointer;
  height: 50px;
  font-family: 'helvetica', 'Open Sans', sans-serif;
  font-size: 1.2em;
  text-align: center;
  text-transform: uppercase;
  transition: background 0.6s linear;
  width: 100%;
  margin-top: 10px;
}

.button:hover {
  background: #6eb7cb;
}

.form-item input,
.button-panel .button {
  border-radius: 2px
}

.reminder {
  text-align: right;
  margin: 15px;
  text-align: center;
  color: firebrick;
}

.reminder a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.reminder a:hover {
  color: #cab6bf;
}

/*//////////////////////// Plate Search - Result ////////////////////////*/
.container_search {
  background-color: #377771;
  padding: 20px;
  width: 50%;
  border-radius: 15px;
  margin: 50px;
  height: 160px;
}

#suggestion_list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  max-height: calc(100vh - 280px);
  /* Altura dinámica para aprovechar máximo espacio */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 30px;
  /* Margen extra para no chocar con el menú */
  scroll-padding-bottom: 65px;
  /* Zona de seguridad para evitar la barra de colores */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Ocultar barra de scroll en Chrome, Safari y Opera */
#suggestion_list::-webkit-scrollbar {
  display: none;
}

/* CSS boton */
.boton {
  margin: 2px;
  align-items: center;
  background-image: linear-gradient(144deg, #000000, #000000 50%, #000000);
  border: 0;
  border-radius: 8px;
  box-shadow: rgba(151, 65, 252, 0.2) 0 15px 30px -5px;
  box-sizing: border-box;
  color: #000000;
  display: flex;
  font-family: Phantomsans, sans-serif;
  font-size: 16px;
  justify-content: center;
  line-height: 1em;
  padding: 2px;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  white-space: nowrap;
  cursor: pointer;
}

.boton:active,
.boton:hover {
  outline: 0;
  background-image: linear-gradient(144deg, #ffffff, #e5e0ea 50%, #d8e9eb);
  color: #000000;
}

/* Ãšltimo dÃ­a */
.boton_day {
  background-color: #FC2947;
}

/* Ãšltimo dÃ­a */
.boton_day span {
  background-color: #FC2947;
}

/* Ãšltima Semana */
.boton_week {
  background-color: #70E000;
}

/* Ãšltima Semana */
.boton_week span {
  background-color: #70E000;
}

/* Ãšltimo mes */
.boton_month {
  background-color: #FF96C5;
}

/* Ãšltimo mes */
.boton_month span {
  background-color: #FF96C5;
}

/* Ãšltimos 3 meses */
.boton_under_three_month {
  /* background-color: #a07164; */
  background-color: #50C4ED;
}

/* Ãšltimos 3 meses */
.boton_under_three_month span {
  /* background-color: #a07164; */
  background-color: #50C4ED;
}

/* Ãšltimos 6 meses */
.boton_under_six_month {
  /* background-color: #a07164; */
  background-color: #F4E931;
}

/* Ãšltimos 6 meses */
.boton_under_six_month span {
  /* background-color: #a07164; */
  background-color: #F4E931;
}

/* MÃ¡s de 6 meses */
.boton_over_six_month {
  background-color: #1d1e2c;
  border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
  /* Borde visible en fondo oscuro */
  color: #ffffff !important;
}

/* MÃ¡s de 6 meses */
.boton_over_six_month:active,
.boton_over_six_month:hover {
  /* background-color: #1d1e2c; */
  /* text-shadow: 1px 1px 1px #000000 !important; */
  color: #000000 !important;
}

/* MÃ¡s de 6 meses */
.boton_over_six_month span {
  background-color: #1d1e2c;
  text-shadow: 1px 1px 1px #000000 !important;
}

.boton_over_six_month:active span,
.boton_over_six_month:hover span {
  text-shadow: 1px 1px 1px #ffffff !important;
}

.set-colors {
  flex-direction: row !important;
  bottom: 1% !important;
  top: unset !important;
  /* left: 20px !important; */
}

.boton span {
  padding: 8px 1px 8px 1px;
  border-radius: 6px;
  transition: 300ms;
  min-width: 80px;
  font-size: large;
  font-weight: 900;
  /* text-shadow: 1px 1px 1px #ffffff; */
}

.boton:hover span {
  background: none;
  /* text-shadow: 1px 1px 1px #000000; */
}

.blink_text {
  font-size: 1.3em;
  margin-top: 20px;
  font-weight: 700;
  /* Suavizado de 800 a 700 */
  color: #ffffff;
  letter-spacing: 0.5px;
  text-align: center;
}

@-moz-keyframes blinker {
  0% {
    opacity: 1.0;
  }

  50% {
    opacity: 0.0;
  }

  100% {
    opacity: 1.0;
  }
}

@-webkit-keyframes blinker {
  0% {
    opacity: 1.0;
  }

  50% {
    opacity: 0.0;
  }

  100% {
    opacity: 1.0;
  }
}

@keyframes blinker {
  0% {
    opacity: 1.0;
  }

  50% {
    opacity: 0.0;
  }

  100% {
    opacity: 1.0;
  }
}

.w3-card,
.w3-card-2 {
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16),
    0 2px 10px 0 rgba(0, 0, 0, 0.12);
}

.w3-card-4,
.w3-hover-shadow:hover {
  box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2),
    0 4px 20px 0 rgba(0, 0, 0, 0.19);
}

.w3-card-4b,
.w3-hover-shadow:hover {
  box-shadow: 0 4px 10px 0 rgba(163, 127, 127, 0.5),
    0 4px 20px 0 rgba(0, 0, 0, 0.19);
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  width: 100%;
  background-color: rgba(256, 256, 256, 0.98);
}

/*//////////////////////// Bottom Navigation Bar ////////////////////////*/

.mobile-bottom-nav {
  position: fixed;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 20000 !important;
  /* Prioridad máxima absoluta */
  display: flex;
  /* Valor por defecto */
  height: calc(65px + env(safe-area-inset-bottom));
  background-color: rgba(28, 28, 30, 0.9) !important;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
  justify-content: space-around;
  align-items: flex-start;
  padding: 0;
}

.mobile-bottom-nav__item {
  flex: 1;
  height: 65px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none !important;
  color: rgba(255, 255, 255, 0.85);
  /* Gris muy claro para máxima legibilidad */
  transition: all 0.2s ease;
  cursor: pointer;
}

.mobile-bottom-nav__item-content {
  display: flex;
  flex-direction: column;
  /* Icono sobre texto */
  align-items: center;
  justify-content: center;
  width: 100%;
}

.mobile-bottom-nav__item i {
  font-size: 24px;
  margin-bottom: 2px;
  display: block;
}

.mobile-bottom-nav__item {
  font-size: 11px;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.mobile-bottom-nav__item--active {
  color: #00b6df !important;
}

.mobile-bottom-nav__item--active i {
  filter: drop-shadow(0 0 5px rgba(0, 182, 223, 0.4));
}

.mobile-bottom-nav__item a {
  color: #fff;
}

.hidden-nav {
  display: none;
}

/* BLINDAJE SELECTIVO: Forzar visibilidad en todas las vistas excepto Inicio */
body:not(.is-home) .mobile-bottom-nav {
  display: flex !important;
}

/* FUNCIONALIDAD SELECTIVA: Permitir ocultar el menú solo en Inicio */
.is-home .hidden-nav {
  display: none !important;
}

/*//////////////////////// Avatar Circle ////////////////////////*/

.avatar {
  width: 120px;
  height: 120px;
  box-sizing: border-box;
  border: 5px rgb(255, 255, 255) solid;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 5px 15px 0px rgba(0, 0, 0, 0.6);
  transform: translatey(0px);
  -webkit-animation: float 6s ease-in-out infinite;
  animation: float 6s ease-in-out infinite;
}

.avatar img {
  width: 100%;
  height: auto;
}

/*color picker*/
.color-selector {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  background-color: rgba(28, 28, 30, 0.75);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 0 16px 16px 0;
  max-width: fit-content;
  padding: 6px 8px 6px 4px;
  /* Comprimido */
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 900;
}

.color-selector-header {
  font-size: 8px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.6px;
  margin-bottom: 2px;
  margin-left: 4px;
  text-transform: uppercase;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}


@media (max-width: 768px) {
  .color-selector {
    top: auto;
    bottom: calc(75px + env(safe-area-inset-bottom));
    left: 0;
    transform: none;
    padding: 6px 8px 6px 4px;
    border-radius: 0 12px 12px 0;
    font-size: 0.75em;
  }
}

/* Comportamiento "Mini Bottombar" para Teclado/Paisaje */
@media (max-width: 768px) and (max-height: 600px) {
  .color-selector {
    flex-direction: row !important;
    align-items: center !important;
    top: auto !important;
    bottom: env(safe-area-inset-bottom) !important;
    /* Pegado al fondo/teclado sin hueco */
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    height: 48px !important;
    justify-content: space-around !important;
    border-radius: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0 10px !important;
    background-color: rgba(28, 28, 30, 0.75) !important;
    /* Igual al modo vertical */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 1050;
  }

  /* Ajuste de lista para cuando el teclado está abierto */
  #suggestion_list {
    max-height: calc(100vh - 130px) !important;
    /* Altura optimizada con aire simétrico mínimo */
  }

  .color-selector-header {
    margin-bottom: 0 !important;
    margin-right: 5px;
    font-size: 7px;
    color: rgba(255, 255, 255, 0.5);
    /* Más visible que el anterior */
  }

  .color-info-item {
    flex: 1;
    opacity: 1 !important;
    /* Asegurar visibilidad total de los colores */
  }
}

/* Los items ahora son puramente informativos */
.color-info-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 2px;
  cursor: default !important;
  pointer-events: none;
  font-size: 9px;
  /* Fuente más comprimida */
  font-weight: 500;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  letter-spacing: -0.1px;
}

.color-info-item:before {
  display: inline-block;
  content: "";
  background: var(--c-bg);
  width: 11px;
  /* Círculos más pequeños */
  height: 11px;
  border-radius: 50%;
  margin-bottom: 2px;
  /* Espacio mínimo */
  margin-right: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 1px 2px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 0, 0, 0.2);
  pointer-events: none;
}



.color-info-item[data-color=blue] {
  --c-bg: var(--blue);
}

.color-info-item[data-color=red] {
  --c-bg: var(--red);
}

.color-info-item[data-color=yellow] {
  --c-bg: var(--yellow);
}

.color-info-item[data-color=green] {
  --c-bg: var(--green);
}

.color-info-item[data-color=pink] {
  --c-bg: var(--pink);
}

.color-info-item[data-color=black] {
  --c-bg: var(--black);
}



/*/// Import Excel to SQL///*/

.uploadWrapper {
  font-family: 'Nunito', sans-serif;
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 500px;
  height: max-content;
  /* top: 36%; */
  /* left: 44%; */
  /* margin: -184px 0px 0px -155px; */
  background: #2a4f72a8;
  border-radius: 10px;
  padding-top: 12px;
}

.uploadWrapperXlsx {
  background: #39282ea8;
}

.imageUploadForm {
  /* background: #2a4f72a8; */
  height: 400px;
  /* width: 500px; */
  position: relative;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: flex-end;
  align-items: flex-end;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  /* border-radius: 10px; */
}

.imageUploadForm .helpText {
  color: white;
  display: block;
  position: absolute;
  top: 4%;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  font-size: 20px;
}

.imageUploadForm .helpText:after {
  content: '\f067';
  font-family: 'FontAwesome';
  font-size: 150%;
  color: rgba(255, 255, 255, 0.5);
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  margin: 0% auto auto auto;
  width: 50%;
  height: 50%;
  border: 6px dashed rgba(255, 255, 255, 0.5);
}

.imageUploadForm .pickFile {
  position: absolute;
  bottom: 0;
  left: 0;
  display: block;
  background: white;
  height: 25%;
  width: 100%;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  border-radius: 0px 0px 10px 10px;
}

.imageUploadForm .pickFileButton {
  display: inline-block;
  padding: 0.7em 2em;
  color: white;
  /* background: #FB92AE; */
  text-decoration: none;
  background: #1b6581;
}

.pickFileButtonXlsx {
  background: #39282e !important;
}

.imageUploadForm .pickFileButton:hover {
  text-decoration: none;
}

.imageUploadForm .uploadButton {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
}

.imageUploadForm.loading .helpText {
  font-size: 0;
  top: 7%;
}

.imageUploadForm.loading .helpText:before {
  font-size: 30px;
  content: 'Subiendo...';
}

.imageUploadForm.loading .helpText:after {
  display: none;
}

.imageUploadForm.loading .uploadedImg {
  position: absolute;
  bottom: 12.5%;
  left: 12.5%;
  width: 75%;
  height: 65%;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  border: 4px solid white;
  -moz-transition: opacity ease-out;
  -o-transition: opacity ease-out;
  -webkit-transition: opacity ease-out;
  transition: opacity ease-out;
}

.imageUploadForm.loading .unveil {
  position: absolute;
  background: #6E95F7;
  display: block;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  -moz-animation: toTop 4s forwards;
  -webkit-animation: toTop 4s forwards;
  animation: toTop 4s forwards;
}

.imageUploadForm.loading .unveil:after {
  content: '';
  position: absolute;
  left: -3%;
  bottom: 0;
  height: 10px;
  width: 106%;
  background: #FFD16E;
  border-radius: 5px;
}

.imageUploadForm.loading .pickFile,
.imageUploadForm.loading .uploadButton {
  display: none;
}

.imageUploadForm.loading.loaded {
  height: 200px;
}

.imageUploadForm.loading.loaded .uploadedImg {
  opacity: 0;
}

.imageUploadForm.loading.loaded .helpText:before {
  content: '!Archivo Subido Correctamente!';
}

.imageUploadForm.loading.loaded .helpText:after {
  display: block;
  opacity: 0;
  font-size: 0;
  line-height: 100px;
  -moz-animation: fadeIn 0.4s forwards;
  -webkit-animation: fadeIn 0.4s forwards;
  animation: fadeIn 0.4s forwards;
  content: '\f058';
  color: white;
  margin-top: 2%;
  border-width: 0;
}

@-moz-keyframes toTop {
  to {
    height: 0;
  }
}

@-webkit-keyframes toTop {
  to {
    height: 0;
  }
}

@keyframes toTop {
  to {
    height: 0;
  }
}

@-moz-keyframes fadeIn {
  to {
    opacity: 1;
    font-size: 90px;
  }
}

@-webkit-keyframes fadeIn {
  to {
    opacity: 1;
    font-size: 90px;
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
    font-size: 90px;
  }
}


/* @media (min-width: 768px) {
  .boton {
    font-size: 20px;
  }
} */
/* Agrega reglas de media queries segÃºn sea necesario */

@media (max-width: 768px) {
  .form-wrapper {
    width: 90%;
    max-width: 300px;
  }

  .form-item input {
    font-size: 1em;
    height: 40px;
  }

  .button-panel .button {
    font-size: 1em;
    height: 40px;
  }



  label {
    margin: 1px 1px 1px 0px;
    padding: 0 0 0 4px;
    /* font-size: 0.7em !important; */
    font-size: 87.5%;
    line-height: 1.5em;
  }

  /* AÃ±ade mÃ¡s ajustes aquÃ­ */
}

/* Reglas de media queries para pantallas aÃºn mÃ¡s pequeÃ±as */
@media (max-width: 480px) {
  .form-wrapper {
    max-width: 250px;
    top: 32%;
  }

  .form-item input {
    font-size: 0.9em;
    height: 35px;
  }

  .button-panel .button {
    /* font-size: 0.9em; */
    height: 35px;
    font-size: 87.5%;
    line-height: 1.5em;
  }



  .padding {
    top: 44%;
  }

  #search_textBox {
    font-size: 17px;
    height: 45px;
  }

  /* AÃ±ade mÃ¡s ajustes aquÃ­ */
}

.navigation {
  width: 100%;
  background-color: black;
  /* height: 50px; */
}

/* body {
  background-color: #1E272D;
} */

.close-container {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.close-container:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff !important;
  /* Forzar blanco para evitar azul heredado */
}

.close-container i {
  font-size: 18px;
  color: #fff;
  margin: 0 !important;
}

.close-container label {
  display: none !important;
}

/* Tooltip sutil estilo iOS para Salir */
.close-container::after {
  content: 'Cerrar Sesión';
  position: absolute;
  right: 55px;
  white-space: nowrap;
  background: rgba(44, 44, 46, 0.8);
  backdrop-filter: blur(15px);
  padding: 5px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.close-container:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* Online button */
.online-container {
  position: relative;
  margin: auto;
  width: 50px;
  height: 50px;
  margin-top: 10px;
  cursor: pointer;
  float: left;
  z-index: 2;
}

.icon {
  position: relative;
  text-align: center;
  display: inline-block;
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 30px;
  color: #61b5ff;
}

.online-user {
  width: 75px;
  height: 50px;
}

.online-user:before {
  content: '\f21d';
  display: block;
  animation: iconAnimation 0.8s infinite;
  /* padding-top: 100px; */
}

@keyframes iconAnimation {
  0% {
    /* content: '\f041'; */
    color: #5abcf1;
    padding-top: 2px;
  }

  20% {
    /* content: '\f3c5'; */
    color: #4cca93;
    padding-top: -2px;
  }

  40% {
    /* content: '\f041'; */
    color: #e87272;
    padding-top: -4px;
  }

  60% {
    /* content: '\f3c5'; */
    color: #e87272;
    padding-top: -2px;
  }

  80% {
    /* content: '\f041'; */
    color: #4cca93;
    padding-top: 0px;
  }

  100% {
    /* content: '\f3c5'; */
    color: #5abcf1;
    padding-top: 2px;
  }
}

/* FAB button */

.floatingButtonWrap {
  display: block;
  position: fixed;
  bottom: 45px;
  right: 20px;
  z-index: 999999999;
}

.floatingButtonInner {
  position: relative;
}

.floatingButton {
  display: block;
  width: 60px;
  height: 60px;
  text-align: center;
  background: -webkit-linear-gradient(45deg, #8769a9, #507cb3);
  background: -o-linear-gradient(45deg, #8769a9, #507cb3);
  background: linear-gradient(45deg, #8769a9, #507cb3);
  color: #fff;
  line-height: 50px;
  position: absolute;
  border-radius: 50% 50%;
  bottom: 0px;
  right: 0px;
  border: 5px solid #b2bedc;
  /* opacity: 0.3; */
  opacity: 1;
  transition: all 0.4s;
}

.floatingButton .material-icons {
  font-size: 26px !important;
}

.floatingButton.open,
.floatingButton:hover,
.floatingButton:focus,
.floatingButton:active {
  opacity: 1;
  color: #fff;
}


.floatingButton .material-icons {
  transform: rotate(0deg);
  transition: all 0.4s;
  margin-top: 10px;
}

.floatingButton.open .material-icons {
  transform: rotate(360deg);
}

/* Hide/Show password */
.password-icon {
  float: right;
  position: relative;
  margin: -25px 10px 0 0;
  cursor: pointer;
}

/* .form-group input {
  padding-left: 50px !important;
} */

/* List cards users online */
.leaderboard {
  max-width: 490px;
  width: 100%;
  border-radius: 12px;
}

.leaderboard header {
  --start: 15%;
  height: 130px;
  background-image: repeating-radial-gradient(circle at var(--start), transparent 0%, transparent 10%, rgba(54, 89, 219, 0.33) 10%, rgba(54, 89, 219, 0.33) 17%), linear-gradient(to right, #5b7cfa, #3659db);
  color: #fff;
  position: relative;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}

.leaderboard__profiles {
  /* background-color: #fff; */
  border-radius: 0 0 12px 12px;
  padding: 15px 26px 20px 0px;
  display: inline-grid;
  row-gap: 8px;
}

.leaderboard__profile {
  /* display: grid;
  grid-template-columns: 1fr 3fr 1fr;
  align-items: center; */
  padding: 10px 30px 10px 10px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 7px -1px rgba(51, 51, 51, 0.23);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.7, 0.98, 0.86, 0.98), box-shadow 0.25s cubic-bezier(0.7, 0.98, 0.86, 0.98);
  background-color: #fff;

  display: flex;
  justify-content: space-between;
  padding: 10px;
  /* align-content: space-around; */
  align-items: center;
  /* vertical-align: middle; */
  width: 110%;
}

.leaderboard__profile:hover {
  transform: scale(1.2);
  box-shadow: 0 9px 47px 11px rgba(51, 51, 51, 0.18);
}

.leaderboard__picture {
  max-width: 50%;
  width: 40px;
  border-radius: 50%;
  box-shadow: 0 0 0 10px #ebeef3, 0 0 0 22px #f3f4f6;
}

.leaderboard__name {
  color: #979cb0;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.64px;
  margin-left: 12px;
}

.leaderboard__value {
  color: #35d8ac;
  font-weight: 700;
  font-size: 34px;
  text-align: right;
}

.leaderboard__value>span {
  opacity: 0.8;
  font-weight: 600;
  font-size: 13px;
  margin-left: 3px;
}

.leaderboard {
  box-shadow: 0 0 40px -10px rgba(0, 0, 0, 0.4);
}

.scroll-div {
  height: 33.5em;
  line-height: 1em;
  overflow-x: visible;
  overflow-y: scroll;
  width: 100%;
  /* background-color: rgb(34, 168, 48); */
  text-align: center;
}

/* Hide and Show options to delete plates */
ul {
  padding: 0;
  list-style: none;
}

button {
  font-size: 18px;
}

.hidden {
  margin-top: -50;
  display: none;
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 50px;
}

/* Style to card with aditional info plate */
.me {
  background-image: url(../img/odometer.svg);
  background-size: cover;
}

/* .container {
	align-items: center;
	display: flex;
	justify-content: center;
} */
.email {
  /* background: #DEDBDF;
	border-radius: 16px; */
  height: 38px;
  /* Tocado mÃ¡s tÃ¡ctil */
  overflow: hidden;
  position: relative;
  width: 86px;
  -webkit-tap-highlight-color: transparent;
  transition: width 300ms cubic-bezier(0.4, 0.0, 0.2, 1),
    height 300ms cubic-bezier(0.4, 0.0, 0.2, 1),
    box-shadow 300ms cubic-bezier(0.4, 0.0, 0.2, 1),
    border-radius 300ms cubic-bezier(0.4, 0.0, 0.2, 1);
  margin: 3px;
  font-weight: 900;
  border-radius: 10px;
  /* Bordes menos cuadrados para las pastillas base */
  color: #000000;
}

.email:not(.expand) {
  cursor: pointer;
  border: solid 2px #000000;
}

.email:not(.expand):hover {
  background: #C2C0C2;
}

.from {
  position: absolute;
  width: 100%;
  transition: opacity 200ms 100ms cubic-bezier(0.0, 0.0, 0.2, 1);
}

.from-contents {
  display: flex;
  flex-direction: row;
  width: 100%;
  justify-content: center;
  transform-origin: 0 0;
  transition: transform 300ms cubic-bezier(0.4, 0.0, 0.2, 1);
}

.to {
  opacity: 0;
  position: absolute;
  transition: opacity 100ms cubic-bezier(0.4, 0.0, 1, 1);
}

.to-contents {
  transform: scale(.55);
  transform-origin: 0 0;
  transition: transform 300ms cubic-bezier(0.4, 0.0, 0.2, 1);
}

.avatar-small {
  border-radius: 12px;
  height: 24px;
  left: 6px;
  position: relative;
  top: 4px;
  width: 24px;
}

.name {
  font-size: 18px;
  line-height: 32px;
  font-family: Phantomsans, sans-serif;
  text-align: center;
  width: 100%;
  display: block;
}

.prevent-select {
  -webkit-user-select: none;
  /* Safari */
  -ms-user-select: none;
  /* IE 10 and IE 11 */
  user-select: none;
  /* Standard syntax */
}

.top {
  background: #2b2b28;
  color: #FFF;
  height: 50px;
  transition: height 300ms cubic-bezier(0.4, 0.0, 0.2, 1);
  width: 180px;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 2;
  position: relative;
  display: flex;
  /* Nuevo para control de X */
  justify-content: space-between;
  align-items: center;
}

.avatar-large {
  border-radius: 21px;
  height: 42px;
  margin-left: 12px;
  position: relative;
  top: 14px;
  width: 42px;
}

.name-large {
  color: #efd8ef;
  font-size: 17px;
  font-weight: 700;
  /* Suavizado de 800 */
  line-height: 50px;
  margin-left: 15px;
  /* MÃ¡s espacio al borde izquierdo */
}

.x-touch {
  align-items: center;
  align-self: center;
  cursor: pointer;
  display: flex;
  height: 100%;
  /* Ocupar todo el alto de la cabecera */
  justify-content: center;
  width: 45px;
  margin-right: 5px;
  /* SeparaciÃ³n del borde derecho */
}

.x {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  height: 20px;
  position: relative;
  width: 20px;
}

.x-touch:hover .x {
  background: rgba(255, 255, 255, 0.5);
}

.line1 {
  background: #6422EB;
  height: 12px;
  position: absolute;
  transform: translateX(9px) translateY(4px) rotate(45deg);
  width: 2px;
}

.line2 {
  background: #6422EB;
  height: 12px;
  position: absolute;
  transform: translateX(9px) translateY(4px) rotate(-45deg);
  width: 2px;
}

.bottom {
  background: #2c2c2e;
  /* Mismo fondo tÃ¡ctico oscuro que los inputs */
  color: #ffffff;
  /* Texto claro para contraste estricto */
  font-size: 13px;
  height: auto;
  min-height: 120px;
  padding-top: 5px;
  padding-bottom: 15px;
  width: 180px;
  font-weight: 500;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

.row-card {
  align-items: center;
  display: flex;
  flex-direction: row;
  height: 45px;
  margin-top: 5px;
}

.twitter {
  margin-left: 12px;
  height: 24px;
  position: relative;
  top: 0px;
  width: 24px;
}

.medium {
  margin-left: 12px;
  height: 24px;
  position: relative;
  width: 24px;
}

.link {
  margin-left: 10px;
  text-align: left;
  line-height: 1.2;
}

.link a {
  color: #444247;
  text-decoration: none;
}

.link a:hover {
  color: #777579;
}

.email.expand {
  border-radius: 16px;
  /* Native iOS alert radius */
  box-shadow: 0 24px 45px rgba(0, 0, 0, 0.9);
  /* Profundidad masiva suave */
  border: 1px solid rgba(255, 255, 255, 0.15);
  /* Borde estricto iOS */
  background-color: #242426;
  /* Fondo base unificador */
  overflow: hidden;
  /* Mantiene la estÃ©tica de pÃ­ldora intacta */
  height: auto;
  min-height: 170px;
  width: 180px;
  z-index: 100;
}

.expand .from {
  opacity: 0;
  transition: opacity 100ms cubic-bezier(0.4, 0.0, 1, 1);
}

.expand .from-contents {
  transform: scale(1.91);
}

.expand .to {
  opacity: 1;
  position: relative;
  /* CRÃTICO: Permite empujar la altura del padre auto */
  transition: opacity 200ms 100ms cubic-bezier(0.0, 0.0, 0.2, 1);
}

.expand .to-contents {
  transform: scale(1);
}

/* *, ::after, ::before {
  box-sizing: content-box !important;
} */

/* ==================================================
   Mobile / Tablet override: force page containers to
   match viewport width and prevent horizontal overflow
   ================================================== */
@media (max-width: 992px) {
  .form-wrapper-table {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  /* Ensure DataTables container scrolls horizontally rather than expanding viewport */
  .dataTable_wrapper,
  .dataTables_scrollBody {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  table.dataTable {
    width: 100% !important;
    table-layout: auto !important;
  }

  /* Avoid large left/right margins that can cause horizontal scroll */
  body,
  html {
    overflow-x: hidden;
  }
}

/* Small screens: dynamic height management for table containers */
@media (max-width: 768px) {

  /* Main table container adapts dynamically via JavaScript */
  .form-wrapper-table {
    position: relative !important;
    min-height: 600px !important;
    /* Height and overflow-y set by JavaScript adjustTableContainerHeight() */
  }

  /* Ensure DataTables scrolls internally when constrained */
  .form-wrapper-table .panel-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* DataTables wrapper scrolls horizontally */
  .dataTable_wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Reduce font size for table text in mobile */
  table.dataTable tbody td {
    font-size: 0.85rem !important;
    padding: 3px 6px !important;
    height: auto !important;
  }

  table.dataTable tbody tr {
    height: auto !important;
  }

  table.dataTable thead th {
    font-size: 0.9rem !important;
    padding: 4px 6px !important;
  }

  table.dataTable {
    width: 100% !important;
    table-layout: auto !important;
  }

  /* Compact table BODY with vertical scroll */
  table.dataTable tbody {
    display: block;
    max-height: 360px;
    overflow-y: auto;
  }

  table.dataTable thead {
    display: block;
  }

  /* Ensure tbody columns align with thead */
  table.dataTable tr {
    display: flex;
  }

  table.dataTable td,
  table.dataTable th {
    flex: 1;
    min-width: 0;
  }

  /* Simplify and style pagination buttons with icons */
  .dataTables_wrapper .dataTables_paginate {
    text-align: center;
    /* margin-top: 8px !important; */
    /* margin-bottom: 8px !important; */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
  }

  .paginate_button {
    padding: 6px 6px !important;
    margin: 0 1px !important;
    font-size: 0.75rem !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    background-color: #f5f5f5 !important;
    color: #333 !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
    min-width: 32px !important;
    height: 32px !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .paginate_button i {
    font-size: 0.75rem !important;
  }

  .paginate_button:hover:not(.disabled) {
    background-color: #ddd !important;
  }

  .paginate_button.active {
    background-color: #33B5E5 !important;
    color: white !important;
    border-color: #33B5E5 !important;
  }

  .paginate_button.disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
  }

  /* Style pagination info text */
  .dataTables_wrapper .dataTables_info {
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 0.85rem !important;
    margin-bottom: 8px !important;
    padding: 4px 0;
    width: 100%;
    text-align: center;
  }

  /* Hide length menu entirely */
  .dataTables_wrapper .dataTables_length {
    display: none !important;
  }

  /* Style search/filter input */
  .dataTables_wrapper .dataTables_filter {
    margin-bottom: 8px !important;
    text-align: center;
  }

  .dataTables_wrapper .dataTables_filter label {
    font-size: 0.9rem !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .dataTables_wrapper .dataTables_filter input {
    width: 100% !important;
    max-width: 250px !important;
    font-size: 0.85rem !important;
    padding: 6px 8px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
  }
}

/* Compact icon-only buttons used in tables (edit/delete) */
.btn-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  padding: 4px !important;
  border-radius: 6px !important;
  font-size: 0.9rem !important;
}

.btn-icon .fa {
  font-size: 14px !important;
}

/* Small adjustments to ensure visual contrast for btn-light when used as icon */
.btn-light.btn-icon {
  background-color: #ffffff !important;
  border: 1px solid #e6e6e6 !important;
  color: #333 !important;
}

.btn-secondary.btn-icon {
  background-color: #6c757d !important;
  color: #fff !important;
  border: 1px solid #6c757d !important;
}

/* Modern Glassmorphism Modal Redesign - Compact */

.modern-modal-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 420px;
  /* Slightly narrower */
  background: rgba(255, 255, 255, 0.85);
  /* Slightly more opaque for better contrast */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  padding: 20px 25px;
  /* Reduced padding */
  max-height: 85vh;
  overflow-y: auto;
  z-index: 999;
  color: #333;
  margin-top: 40px;
}

.modern-modal-header h3 {
  margin: 0 0 15px 0;
  /* Reduced margin */
  text-align: center;
  color: #2c3e50;
  font-weight: 700;
  font-size: 1.3rem;
  /* Slightly smaller */
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: 'Poppins', sans-serif;
  text-shadow: none;
}

.modern-modal-body {
  width: 100%;
}

.modern-form-group {
  margin-bottom: 12px;
  /* Significantly reduced from 20px */
  position: relative;
}

.modern-form-group label {
  display: block;
  margin-bottom: 4px;
  /* Reduced from 8px */
  font-weight: 600;
  color: #444;
  font-size: 0.85rem;
}

.modern-input,
.modern-select {
  width: 100%;
  padding: 8px 40px 8px 12px;
  /* Reduced padding */
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e0e0e0;
  /* Subtle border for definition */
  border-radius: 8px;
  /* Slightly smaller radius */
  font-size: 0.9rem;
  /* Compact font size */
  color: #333;
  box-shadow: none;
  transition: all 0.2s ease;
  height: 38px;
  /* Fixed compact height */
}

.modern-input:focus,
.modern-select:focus {
  outline: none;
  background: #fff;
  border-color: #00b6df;
  box-shadow: 0 0 0 3px rgba(0, 182, 223, 0.1);
}

.password-wrapper {
  position: relative;
  width: 100%;
  display: block;
}

.password-wrapper input,
.password-wrapper .modern-input {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  height: 38px !important;
}

.password-icon {
  right: 12px;
  top: 50%;
  cursor: pointer;
  color: #888;
  font-size: 1rem;
  z-index: 100;
}

.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: '\f078';
  font-family: 'FontAwesome';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #888;
  font-size: 0.75rem;
}

.modern-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.modern-form-actions {
  margin-top: 20px;
  /* Reduced */
}

.modern-btn {
  width: 100%;
  padding: 10px;
  /* Reduced */
  background: linear-gradient(135deg, #00b6df 0%, #0089a7 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 182, 223, 0.2);
}

.modern-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(0, 182, 223, 0.3);
  background: linear-gradient(135deg, #00c9f6 0%, #009cc2 100%);
}

.modern-btn-secondary {
  display: inline-block;
  width: 100%;
  padding: 10px;
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  text-decoration: none;
  margin-top: 10px;
}

.modern-btn-secondary:hover {
  background: #5a6268;
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}

.form-text.text-muted {
  font-size: 0.75rem;
  color: #888;
  margin-top: 2px;
  display: block;
}

/* Mobile Customization */
@media (max-width: 768px) {
  .modern-modal-wrapper {
    width: 92% !important;
    /* Slightly wider on mobile */
    max-width: 92% !important;
    top: 8% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-top: 0;

    /* Max height control for mobile */
    max-height: 80vh !important;
    /* Slightly reduced */

    /* Scrollable */
    overflow-y: auto !important;

    /* Ensure bottom nav clearance */
    margin-bottom: 60px;

    padding: 15px 20px;
    /* Even tighter padding on mobile */
  }

  .modern-modal-header h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }
}

/* ==========================================================================
   AUTHENTICATION (LOGIN & REGISTER) - SEGREGATED STYLES
   ========================================================================== */
.auth-wrapper {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 360px;
  height: max-content;
  background: rgba(28, 28, 30, 0.75);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  padding: 35px 30px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
  z-index: 1001;
}

.auth-item {
  width: 100%;
}

.auth-input {
  -webkit-appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  margin-top: 15px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.05em;
  height: 54px;
  width: 100%;
  padding-left: 20px;
  border-radius: 14px;
  box-sizing: border-box;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.auth-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Fix para Autocompletado (Chromium/Safari) */
.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus,
.auth-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px rgba(44, 44, 46, 1) inset !important;
  -webkit-text-fill-color: #ffffff !important;
  transition: background-color 5000s ease-in-out 0s;
  caret-color: white;
}

.auth-input:focus {
  outline: none;
  border: 1px solid rgba(80, 196, 237, 0.6);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 12px rgba(80, 196, 237, 0.2);
}

/* Password Toggle Style */
.password-container {
  position: relative;
  width: 100%;
}

.password-container .auth-input {
  padding-right: 48px !important;
  /* Espacio para el icono nativo */
}

.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 8px;
  z-index: 10;
  transition: all 0.2s ease;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 7px;
  /* Compensación para alineación perfecta con el input */
}

.password-toggle:hover {
  color: rgba(255, 255, 255, 0.7);
}

.password-toggle:active {
  transform: translateY(-50%) scale(0.9);
  opacity: 0.7;
}

/* Iconos de Input Alineados */
.icon-input {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.35);
  font-size: 16px;
  pointer-events: none;
  z-index: 5;
  margin-top: 7px;
  /* Compensación para el margin-top del input */
}

.icon-input .auth-input {
  padding-left: 50px !important;
}

.auth-button-panel {
  margin-bottom: 20px;
  padding-top: 15px;
  width: 100%;
}

.auth-button {
  -webkit-appearance: none;
  display: block !important;
  width: 100% !important;
  background: linear-gradient(135deg, #007AFF, #0051AF);
  /* Azul iOS Premium */
  border: none;
  color: #ffffff !important;
  cursor: pointer;
  height: 52px;
  max-width: 100% !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.1em;
  font-weight: 600;
  border-radius: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 15px;
  box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
  text-align: center;
  position: relative;
  z-index: 1;
}

.auth-button:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(0, 122, 255, 0.5);
}

.auth-button:active {
  transform: scale(0.98);
}

/* Enlaces Auxiliares Estilo iOS 17 */
.auth-aux-link {
  color: #007AFF !important;
  /* Azul nativo iOS */
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 0;
}

.auth-aux-link:hover {
  color: #5AC8FA !important;
  /* Resaltado al hacer hover */
  border-bottom-color: #5AC8FA;
}

.auth-aux-link i {
  font-size: 16px;
}

.auth-avatar {
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  display: inline-block;
  padding: 2px;
  margin-bottom: 10px;
}

.auth-avatar img {
  border-radius: 50%;
  width: 100px;
  height: 100px;
  object-fit: cover;
}

/*//////////////////////// Vista Importación (iOS 17 Native) ////////////////////////*/
.import-card {
  background-color: rgba(28, 28, 30, 0.75);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7);
  padding: 30px 20px 25px 20px;
  width: 90%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  margin: 10px auto;
  /* Centrado base */
}

@media (max-width: 768px) {
  .import-card {
    padding: 20px 15px 20px 15px;
    max-width: 340px;
    margin-top: 20px;
  }

  .import-zone {
    height: 180px !important;
  }

  .import-help-text {
    margin-top: 60px !important;
    font-size: 14px !important;
  }

  .import-help-text:after {
    font-size: 32px !important;
    top: 25% !important;
  }
}

.import-card-delete {
  background-color: rgba(45, 25, 30, 0.75);
  /* Tinte rojizo sutil para borrado */
}

.import-form {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

.import-zone {
  width: 100%;
  height: 220px;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-bottom: 25px;
}

.import-zone:hover {
  border-color: #00b6df;
  background: rgba(255, 255, 255, 0.03);
}

.import-help-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  font-weight: 500;
  margin-top: 80px;
  pointer-events: none;
}

.import-help-text:after {
  content: '\f067';
  /* Icono Plus */
  font-family: 'FontAwesome';
  font-size: 40px;
  color: #00b6df;
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
}

.import-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 5;
}

.import-actions {
  width: 100%;
}

.import-btn {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #00b6df 0%, #008eb0 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 182, 223, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.import-btn:active {
  transform: scale(0.98);
  opacity: 0.9;
}

.import-btn-delete {
  background: linear-gradient(135deg, #ff453a 0%, #c12b23 100%);
  box-shadow: 0 4px 15px rgba(255, 69, 58, 0.3);
}

/* RESTAURACIÓN: Conservar el cabezal principal y ocultar solo la línea fantasma interna */
#dataTables-placas_wrapper .dataTables_scrollBody thead,
#dataTables-users_wrapper .dataTables_scrollBody thead {
  visibility: hidden !important;
  height: 0 !important;
  padding: 0 !important;
  border: none !important;
}

#dataTables-placas_wrapper .dataTables_scrollBody thead th,
#dataTables-users_wrapper .dataTables_scrollBody thead th {
  height: 0 !important;
  padding: 0 !important;
  border: none !important;
  line-height: 0 !important;
}

/* Remoción de línea horizontal residual */
#dataTables-placas_wrapper .dataTables_scrollBody table,
#dataTables-users_wrapper .dataTables_scrollBody table {
  border-top: none !important;
  margin-top: 0 !important;
}

/* --- iOS Activity Indicator (Spinner) --- */
.search-input-wrapper {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.ios-loader {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%) scale(0.4);
  /* Escala pequeña para el input */
  width: 50px;
  height: 50px;
  z-index: 10;
  pointer-events: none;
}

.ios-loader span {
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 14px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  transform-origin: 2px 25px;
  animation: ios-fade 1.2s linear infinite;
}

@keyframes ios-fade {
  from {
    opacity: 1;
  }

  to {
    opacity: 0.15;
  }
}

/* Posicionamiento de los 12 pétalos */
.ios-loader span:nth-child(1) {
  transform: rotate(0deg);
  animation-delay: -1.1s;
}

.ios-loader span:nth-child(2) {
  transform: rotate(30deg);
  animation-delay: -1.0s;
}

.ios-loader span:nth-child(3) {
  transform: rotate(60deg);
  animation-delay: -0.9s;
}

.ios-loader span:nth-child(4) {
  transform: rotate(90deg);
  animation-delay: -0.8s;
}

.ios-loader span:nth-child(5) {
  transform: rotate(120deg);
  animation-delay: -0.7s;
}

.ios-loader span:nth-child(6) {
  transform: rotate(150deg);
  animation-delay: -0.6s;
}

.ios-loader span:nth-child(7) {
  transform: rotate(180deg);
  animation-delay: -0.5s;
}

.ios-loader span:nth-child(8) {
  transform: rotate(210deg);
  animation-delay: -0.4s;
}

.ios-loader span:nth-child(9) {
  transform: rotate(240deg);
  animation-delay: -0.3s;
}

.ios-loader span:nth-child(10) {
  transform: rotate(270deg);
  animation-delay: -0.2s;
}

.ios-loader span:nth-child(11) {
  transform: rotate(300deg);
  animation-delay: -0.1s;
}

.ios-loader span:nth-child(12) {
  transform: rotate(330deg);
  animation-delay: 0s;
}

/* --- Luxury Payment Alert Bar --- */
.luxury-alert-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding-top: 35px; /* Respaldo para Android y dispositivos sin Notch */
  padding-top: max(35px, env(safe-area-inset-top));
  padding-bottom: 8px;
  min-height: 60px; /* Asegura que no se corte el texto */
  background: linear-gradient(90deg, rgba(255, 159, 10, 0.55), rgba(255, 59, 48, 0.90));
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  border-bottom: 1.5px solid rgba(255, 159, 10, 0.35);
  transform: translateZ(0);
  /* Evita distorsión de líneas en el fondo */
}

.luxury-alert-content {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}

.luxury-alert-content i {
  font-size: 12px;
  opacity: 0.8;
}

/* Ajuste del body para no tapar contenido */
/* Espaciador */
.luxury-alert-spacer {
  height: 65px;
  width: 100%;
}

/* --- Fin de Estilos --- */