@import url(font/Raleway/font.css);
@import url(../plugin/node_modules/animate.css/animate.css);
@import url(public/css/font/Material/font.css);

:root {
  --color-success: #14a44d;
  --color-danger: #dc4b64;
  --color-accent: #800080;
  --color-warning: #ffe400;
  --color-dark: #332d2d;

  --background-color: #eceffe; /* Light theme background */
  --bar-bg-color: #24426a;
  --form-control-bg: #fff;
  --nav-link-selected: #24426a;
  --nav-link-color: #ffffff;
  --text-color: #000000; /* Light theme text color */
  --link-color: #1a0dab; /* Light theme link color */
  --button-background: #007bff; /* Light theme button background */
  --button-text-color: #ffffff; /* Light theme button text color */

  --blur-bg: rgba(255, 255, 255, 0.4);
  --info-card-bg: linear-gradient(
    320deg,
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 0.9)
  );

  --background-list-color: #ffffff;
  --background-planos: #424242;
  --text-planos: #fff;

  --family-font: "Raleway", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background-color: #181818; /* Dark theme background */
    --bar-bg-color: #24426a;
    --form-control-bg: #181818;
    --nav-link-selected: #24426a;
    --nav-link-color: #ffffff;
    --text-color: #e0e0e0; /* Dark theme text color */
    --link-color: #8ab4f8; /* Dark theme link color */
    --button-background: #1e88e5; /* Dark theme button background */
    --button-text-color: #ffffff; /* Dark theme button text color */

    --blur-bg: rgba(0, 0, 0, 0.9);
    --info-card-bg: linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.4),
      rgba(0, 0, 0, 0.7)
    );

    --background-list-color: #24426a;
    --background-planos: #424242;
    --text-planos: #fff;
    /* 
    .card {
      background-color: #424242;
      color: #ffffff;
    } */
  }
}

body {
  font-family: var(--family-font) !important;
  background-color: var(--background-color);
  color: var(--text-color);
}

a {
  color: var(--link-color) !important;
}

.mono-font {
  font-family: monospace;
}

.link-body-emphasis {
  color: var(--link-color) !important;
}

.breadcrumb-item.active {
  color: var(--text-color);
}

.dropdown-menu {
  background-color: var(--blur-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.dropdown-item:hover {
  background-color: var(--background-list-color);
}

.bg-purple {
  background-color: purple !important;
}

.bg-yellow {
  background-color: #ffe400 !important;
  color: black !important;
}

.nabvar {
  background-color: var(--bar-bg-color);
  color: var(--nav-link-color) !important;
}

.nav-link-sidebar {
  color: var(--nav-link-color) !important;
  background-color: transparent !important;
  font-size: 0.9rem !important;
  padding: 15px 20px !important;
  transition: transform 0.3s ease, color 0.3s ease;
}

.nav-link-sidebar:hover {
  transform: translateX(8px);
}

.nav-pills .nav-link-sidebar.active {
  background-color: white !important;
  color: var(--nav-link-selected) !important;
}

.text {
  color: var(--text-color);
}

.navbar-text {
  color: var(--nav-link-color);
}

.fixed-bottom-right {
  position: fixed;
  bottom: 20px;
  right: 20px;
  margin: 16px;
}

.icon-round {
  background-color: var(--button-background);
  height: 50px;
  width: 50px;
  border-radius: 50%;
}

.list-group-item-ajustes {
  background-color: var(--background-list-color);
  transition: filter 0.3s ease;
}

.list-group-item-ajustes:hover {
  background-color: var(--background-list-color);
  filter: brightness(90%);
}

.form-control,
.form-select {
  background-color: var(--form-control-bg);
  color: var(--text-color);
}

.select2 {
  width: 100% !important;
}

.badge {
  font-size: 1rem;
}

.badge-sm {
  font-size: 0.8rem;
}

.animate__delay-05s {
  animation-delay: 0.5s;
}

.bg-text {
  background-color: var(--text-color);
}

.glass-square {
  background: var(--blur-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

#turnosModal {
  background-color: #24426a !important;
}

#sidebar {
  /* background-color: var(--bar-bg-color); */
  background-color: rgba(36, 66, 106, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 999;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

#main-content {
  transition: margin-left 0.5s ease, width 0.5s ease;
  overflow: scroll;
}

#no-conection-warning {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(
    135deg,
    rgba(245, 41, 46, 0.9),
    rgba(220, 15, 59, 0.9)
  );
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  padding: 10px 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  display: none;
}

@media only screen and (max-width: 800px) {
  .hide-sm {
    display: none;
  }
}

/* AJUSTES */

#profile_photo {
  height: 200px;
  width: 200px;
  border-radius: 50%;
  cursor: pointer;
  background-color: grey;
  background-image: url("../images/usuarios/usuario.jpg");
  background-size: cover;
  background-position: center;
}

/* VISTA GENERAL */

#vista_general {
  min-width: 1200px;
}

#maquina_del_tiempo {
  min-width: 1200px;
  border-radius: 25px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}

#maquina_del_tiempo_datetime {
  border-radius: 25px;
  width: auto;
}

.room-cell {
  text-align: center;
  color: white;
  font-weight: bold;
  border-radius: 10px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.col-8 {
  flex: 0 0 12.5%;
  max-width: 12.5%;
}

.bg-mantenimiento {
  background: linear-gradient(to bottom, var(--color-warning) 17%, purple 5%);
  background-size: cover;
}

.bg-manteminiento-alerta {
  background: linear-gradient(to bottom, var(--color-warning) 17%, purple 5%);
  background-size: cover;
  animation: alerta-bar-mantenimiento 0.5s infinite alternate;
}

.bg-manteminiento-alerta-ocupado {
  background: purple;
  background-size: cover;
  animation: alerta-bar-ocupado 0.5s infinite alternate;
}

.bg-limpio {
  background: #dc4b64;
  background-size: cover;
  animation: flash-limpio 1s infinite alternate;
}

@keyframes flash-limpio {
  0% {
    background: linear-gradient(to bottom, #11caf0 50%, #dc4b64 50%);
  }
  50% {
    background: linear-gradient(to bottom, #dc4b64 50%, #dc4b64 50%);
  }
  100% {
    background: linear-gradient(to bottom, #11caf0 50%, #dc4b64 50%);
  }
}

@keyframes alerta-bar-mantenimiento {
  0% {
    background: linear-gradient(to bottom, var(--color-warning) 17%, purple 5%);
  }
  100% {
    background: linear-gradient(to bottom, red 17%, purple 5%);
  }
}

@keyframes alerta-bar-ocupado {
  0% {
    background: purple;
  }
  100% {
    background: linear-gradient(to bottom, red 17%, purple 5%);
  }
}

.cinco-am-alerta span {
  background-color: white;
  color: purple;
  padding: 0px 3px;
}

.estado-titles {
  max-width: 1000px;
}

.info-card {
  background: var(--info-card-bg) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  min-width: 400px;
  position: fixed;
  top: 100px;
  left: 30px;
}

/* DASHBOARD */
#tabla-dashboard .inhouse_row {
  background-color: #daf7a6 !important;
}

#tabla-dashboard .inhouse_row td,
#tabla-dashboard .inhouse_row a {
  color: #202020 !important;
}

#tabla-dashboard .checkout_row {
  background-color: #5d5d5d !important;
}

#tabla-dashboard .checkout_row td,
#tabla-dashboard .checkout_row a {
  color: white !important;
}

/* REPORTE DE TURNOS */
.card-turnos {
  cursor: pointer;
  transition: 0.3s;
}

.card-turnos:hover {
  transform: scale(1.05);
}

/* PLANOS */
.piso {
  min-width: 18cm;
  height: 20cm;
  border: var(--text-planos) 2px solid;
  flex-direction: row;
  display: flex;
  background-color: var(--background-planos);
}

.piso .text {
  color: var(--text-planos);
}

.w-33 {
  width: 33.33%;
}

.border-light {
  border-color: white !important;
}

.nav-pills-planos .nav-link {
  color: white !important;
  background-color: #424242;
}

.nav-pills-planos .active {
  color: white !important;
  background-color: #3a71ca !important;
}

/* FIN PLANOS */

.hidden-scrollbar {
  overflow: auto;
  scrollbar-width: none; /* For Firefox */
}

.hidden-scrollbar::-webkit-scrollbar {
  display: none; /* For Chrome, Edge, and Safari */
}

#notification-container {
  position: fixed;
  top: 80px;
  right: 20px;
  width: 350px;
  z-index: 1055;
}

#notification-content {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  border-radius: 0.75rem;
  overflow: hidden;
}

#notifications-container {
  max-height: 400px;
  overflow-y: auto;
}

@media (max-width: 768px) {
  #notification-container {
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1055;
  }

  #notification-content {
    border-radius: 0;
    height: 100%;
  }

  #notifications-container {
    max-height: 100%;
  }
}

.bg-theme-primary {
  background-color: var(--background-color) !important;
}

.christmas-lights {
  display: none;
}

.etiqueta-preview {
  border: 2px dashed #666;
  background: #fafafa;
  margin: 10px auto;
  border-radius: 25px;
  position: relative;
  z-index: 1;
  padding: 3.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.qr-box {
  width: 80%;
  margin: auto;
}

.etiqueta-preview img {
  object-fit: contain;
  object-position: center;
}

.gari-size-xl {
  width: 700px;
}

/* Animated Border Box */
.animated-border-box {
  position: relative;
  overflow: hidden;
  border-radius: 0.375rem;
  padding: 0;
  z-index: 1;
}

.animated-border-box input.form-control {
  border: 1px solid transparent;
  background: #fff;
  border-radius: 0.375rem;
  position: relative;
  z-index: 1;
}

.animated-border-box span {
  position: absolute;
  display: block;
  z-index: 2;
  pointer-events: none;
}

/* Top Line */
.animated-border-box span:nth-child(1) {
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--link-color));
  animation: btn-anim1 2s linear infinite;
}

@keyframes btn-anim1 {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

/* Right Line */
.animated-border-box span:nth-child(2) {
  top: -100%;
  right: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--link-color));
  animation: btn-anim2 2s linear infinite;
  animation-delay: 0.5s;
}

@keyframes btn-anim2 {
  0% { top: -100%; }
  50%, 100% { top: 100%; }
}

/* Bottom Line */
.animated-border-box span:nth-child(3) {
  bottom: 0;
  right: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(270deg, transparent, var(--link-color));
  animation: btn-anim3 2s linear infinite;
  animation-delay: 1s;
}

@keyframes btn-anim3 {
  0% { right: -100%; }
  50%, 100% { right: 100%; }
}

/* Left Line */
.animated-border-box span:nth-child(4) {
  bottom: -100%;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(360deg, transparent, var(--link-color));
  animation: btn-anim4 2s linear infinite;
  animation-delay: 1.5s;
}

@keyframes btn-anim4 {
  0% { bottom: -100%; }
  50%, 100% { bottom: 100%; }
}