@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/Montserrat/static/Montserrat-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/Montserrat/static/Montserrat-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/Montserrat/static/Montserrat-Italic.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/Montserrat/static/Montserrat-BoldItalic.ttf') format('truetype');
  font-weight: bold;
  font-style: italic;
}

/* Agrega más variantes si es necesario */

/* ========== Typography System ========== */
:root {
  /* Font Family */
  --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Font Sizes - Based on 1rem = 16px */
  --font-size-xs: 0.75rem;
  /* 12px - Captions, labels */
  --font-size-sm: 0.875rem;
  /* 14px - Small text, secondary info */
  --font-size-base: 1rem;
  /* 16px - Body text, default */
  --font-size-lg: 1.125rem;
  /* 18px - Slightly larger text */
  --font-size-xl: 1.25rem;
  /* 20px - Subheadings */
  --font-size-2xl: 1.5rem;
  /* 24px - Section headers */
  --font-size-3xl: 2rem;
  /* 32px - Page titles */
  --font-size-4xl: 2.5rem;
  /* 40px - Hero text */

  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
}

/* Apply Montserrat globally */
html,
body,
* {
  font-family: var(--font-primary);
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: #f3f3f3;
  color: black;
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
}

h2,
h3,
h4,
h5,
h6 {
  color: black;
}

/* This creates a skinny sidebar fixed to the left of the page */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 5rem;
  padding: 2rem 1rem;
  background-color: #ffffff;
  z-index: 1050;
  transition: width 0.1s ease-in-out;

}

.bg-light {
  --bs-bg-opacity: 1;
  background-color: rgb(255 255 255) !important;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.nav-pills .nav-link,
.nav-tabs .nav-link {
  color: #979798;

}

.nav-pills .nav-link:hover,
.nav-tabs .nav-link:hover {
  background-color: #ededed;
}


.sidebar:hover {
  width: 16rem;
}


.nav-link.active {
  color: #94ba1d !important;
  background-color: transparent !important;
}

.sidebar .nav-link {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

/* fix the width of the icons */
.sidebar .nav-link i {
  width: 1rem;
}

/* hide the navlink labels by default */
.sidebar .nav-link span {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.1s ease-in-out;
}

/* when the sidebar is hovered, reveal the labels */
.sidebar:hover .nav-link span {
  visibility: visible;
  opacity: 1;
}

/* container for the sidebar header. make sure the contents don't wrap when
* the sidebar is collapsed.
*/
.sidebar-header {
  display: flex;
  justify-content: left;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}

/* position the header relative to the logo and hide by default */
.sidebar-header h2 {
  opacity: 0;
  margin-left: 1rem;
  margin-bottom: 0;
  transition: opacity 0.1s ease-in-out;
}

/* reveal the header when the sidebar is toggled */
.sidebar:hover .sidebar-header h2 {
  opacity: 1;
}




.card {
  background-color: white;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* Highlight the card on hover to create a 3D effect */
.card:hover {
  transform: scale(1.012);
  /* Slightly increase the size of the card */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 6px 6px rgba(0, 0, 0, 0.2);
  /* Add shadow on hover */
}



input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 15px;
  height: 15px;
  border: 2px solid #94ba1d;
  /* Borde verde */
  border-radius: 50%;
  background-color: white;
  /* Fondo blanco */
  position: relative;
  cursor: pointer;
  margin-right: 10px;
}

/* Estilos para el estado checked (seleccionado) */
input[type="radio"]:checked {
  background-color: #94ba1d !important;
  /* Fondo verde */
  border-color: #94ba1d;
  /* Borde verde */
}

/* Círculo interior para el estado checked */
input[type="radio"]:checked::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  /* Tamaño del círculo blanco interior */
  height: 7px;
  /* Tamaño del círculo blanco interior */
  background-color: white;
  /* Color blanco */
  border-radius: 50%;
  /* Círculo */
  transform: translate(-50%, -50%);
  /* Centrar */
}

/* Estilos para hover */
input[type="radio"]:hover {
  border-color: #a0ac88;
  /* Cambia el color del borde al pasar el mouse */
}


/* Estilos para labels asociados */
label {
  display: inline-flex;
  align-items: center;
  margin-right: 20px;
  cursor: pointer;
  color: #979798;
}

/* Ajuste específico para checkbox: cuadrado en vez de círculo */
input[type="checkbox"] {
  border-radius: 4px;
}

input[type="checkbox"]:checked::before {
  border-radius: 4px;
  width: 10px;
  height: 10px;
}

h1 {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 20px;
  margin-top: 30px;
  text-align: center;
  color: #333;
}

.graph-container {
  background-color: white;
  margin-bottom: 20px;
  padding: 30px !important;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(88, 77, 77, 0.1);
}

h2 {
  font-weight: bold;
}

/* Estilos para botones en su estado por defecto y activo */
.button-default {
  background-color: white !important;
  color: #94ba1d !important;
  border: 2px solid #94ba1d !important;
  margin-bottom: 30px;
  margin-right: 20px;
}

.button-active {
  background-color: #94ba1d !important;
  color: white !important;
  border: 2px solid #94ba1d !important;
  margin-bottom: 30px;
  margin-right: 20px;
}


.dash-header {
  background-color: #94ba1d !important;
  color: white !important;
  padding: 10px !important;
  border-width: 1px !important;
  border-style: solid !important;
  border-color: rgb(211, 211, 211) !important;
  text-align: center !important;
}

.dash-cell {
  background-color: white !important;
  color: black !important;
  padding: 10px !important;
  text-align: center !important;
  border-width: 1px !important;
  border-style: solid !important;
  border-color: rgb(211, 211, 211) !important;
}

.dash-cell:hover {
  background-color: #f2f2f2 !important;
}

.dash-cell:hover~.dash-cell {
  background-color: #f2f2f2 !important;
}


h4 {
  font-size: 1.5em;
  font-weight: 700;
  margin-top: 30px;
  color: #333;
}

.revenue-stacking-container {
  margin-bottom: 20px;
  background-color: white;
}

.energia-movida-container {
  margin-bottom: 20px;
  background-color: white;
}


.card-no-hover {
  transition: none !important;
}

.card-no-hover1 {
  transition: none !important;
  width: 88vw !important;
}

.card-no-hover1:hover {
  box-shadow: none !important;
  transform: scale(1);
}

.card-no-hover:hover {
  box-shadow: none !important;
  transform: scale(1);
}

.graph-ana {
  background-color: white;
  padding: 40px !important;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(88, 77, 77, 0.1);
  width: 88vw !important;
  margin: 0 auto !important;
}


.tab_com {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(88, 77, 77, 0.1);
  width: 88vw !important;
  margin: 0 auto !important;
  padding: 40px !important;
}



#date_range {
  margin-top: 10px;
  height: 20px;
}

#date_range_cur .DateRangePicker .DateRangePickerInput__withBorder {
  margin-top: 0px !important;
  margin-left: 0px !important;
}


#date_range_cur .DateRangePicker {
  margin-top: 0px !important;
  margin-left: 0px !important;
}

#date_range_cur .DateRangePicker .DateRangePickerInput__withBorder .DateInput {
  padding: 8px !important;
}

button {
  margin-top: 40px;
  height: 40px;
  background-color: #94ba1d !important;
  border: 2px solid #94ba1d !important;
  color: white;
}

button:hover {

  background-color: #a0ac88 !important;
  border-color: #a0ac88 !important;
  color: #ffffff !important;

}

.card-img,
.card-img-bottom,
.card-img-top {
  width: 100%;
  height: 100%;
}

.graph-container1 {
  transition: transform 0.2s ease-in-out !important;
  box-shadow: 0.2s ease-in-out !important;
  border: 1px solid #ddd;
  /* Ajusta el grosor del borde aquí */
  padding: 10px;
  /* Ajusta el padding si es necesario */
  border-radius: 5px;
  /* Ajusta el radio de los bordes si es necesario */
}


.dash-debug-menu {
  transition: 0.3s;
  position: fixed;
  bottom: 35px;
  right: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10001;
  background-color: #94ba1d !important;
  border-radius: 100%;
  width: 64px;
  height: 64px;
  cursor: pointer;
  display: none !important;
}


.dash-debug-menu__outer--closed {
  height: 60px;
  width: 60px;
  bottom: 37px;
  right: 25px;
  padding: 0;
  display: none !important;
}


.dash-debug-menu:hover {

  background-color: #a0ac88 !important;

}


.dash-debug-menu__button--enabled:hover,
.dash-debug-menu__button--available:hover {
  background-color: #a0ac88 !important;
  cursor: default;
}

.dash-debug-menu__button--enabled,
.dash-debug-menu__button--available {
  background-color: #94ba1d !important;
}

.dash-debug-menu--open {
  transform: rotate(-180deg);
  background-color: #a0ac88 !important;
}

.dash-debug-menu__button-label {

  color: #ffffff;
  display: inline-flex;
  align-items: center;
  margin-right: 0px;
  cursor: pointer;
}

.close-button {

  background-color: #c4c4c4 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 10px 20px !important;
  font-size: 16px !important;
  cursor: pointer !important;
}

.close-button:hover {

  background-color: #979798 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 10px 20px !important;
  font-size: 16px !important;
  cursor: pointer !important;
}

#alert-auto,
#confirm {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f2f2f2;
}


/* Cambia el color de fondo de las fechas seleccionadas en el calendario */
.CalendarDay__selected,
.CalendarDay__selected_span {
  background-color: #94ba1d;
  /* Color verde */
  color: #ffffff;
  /* Texto en blanco */
  border: 1px solid #94ba1d;
  /* Borde del mismo color que el fondo */
}

/* Cuando el mouse pasa sobre una fecha seleccionada */
.CalendarDay__selected:hover,
.CalendarDay__selected_span:hover {
  background-color: #a0ac88 !important;
  /* Mantener el color verde al hacer hover */
  color: #ffffff;
}

/* Cambia el color de las fechas en rango de selección al pasar el mouse */
.CalendarDay__hovered_span,
.CalendarDay__hovered_span:hover {
  background-color: #a0ac88 !important;
  /* Verde también cuando haces hover sobre fechas en el rango */
  color: #ffffff;
  /* Mantener el texto blanco */
}

/* Cambia el color del borde en las fechas en hover */
.CalendarDay__hovered_start_first_possible_end:hover,
.CalendarDay__hovered_end_first_possible_end:hover {
  background-color: #a0ac88 !important;
  /* Cambia el color de hover para fechas de inicio/fin del rango */
  border: 1px solid #a0ac88 !important;
}

/* Opcional: Cambia también el color de las fechas cuando son simplemente hovered pero no seleccionadas */
.CalendarDay__default:hover {
  background-color: #a0ac88 !important;
  /* Cambia el color al pasar el mouse sobre cualquier fecha */
  color: #ffffff;
  border: 1px solid #94ba1d;
}

.select {

  background-color: white !important;
  /* Cambia el color al pasar el mouse sobre cualquier fecha */
  color: #a0ac88 !important;
  border: 1px solid #a0ac88 !important;
  margin-right: 15px !important;
  border-radius: 150px !important;
}

/* Estilo general para el botón */
.custom-button {
  background-color: #94ba1d !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 6px 12px !important;
  font-size: 10px !important;
  cursor: pointer !important;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1) !important;
  transition: transform 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
}

/* Estilo para el botón activado */
.custom-button.activado {
  background-color: #94ba1d !important;
  color: #fff !important;
}

/* Estilo para el botón desactivado */
.custom-button.desactivado {
  background-color: #ccc !important;
  color: #333 !important;
}

/* Efectos adicionales */
.custom-button:hover {
  transform: scale(1.03) !important;
}

.custom-button:focus {
  outline: none !important;
}


#cancel_download {

  background-color: #c4c4c4 !important;
  border: none !important;

}

.modal-header .btn-close {

  background-Color: #ededed !important;
  border: none !important;
  display: none !important;
  width: 10px !important;
  height: 10px !important;
  margin-right: 3px !important;
  margin-top: 3px !important;
}

#ok_buttom,
#ok_buttomCur {

  width: auto !important;
  height: auto !important;
  font-size: 15px !important;
  margin: 0 !important;
  padding: 5px !important;
  background-color: #c4c4c4 !important;
  border: none !important;

}

.hom {
  width: calc(100vw);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0a1428 0%, #0d1f3c 40%, #122a50 100%);
  z-index: 1;
}

.globe-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.9;
}

.globe-container .js-plotly-plot,
.globe-container .plot-container,
.globe-container .svg-container {
  width: 100% !important;
  height: 100% !important;
}

.content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  pointer-events: none;
}

.title {
  font-size: 4.5em;
  color: #ffffff;
  text-align: center;
  font-weight: bold;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6), 0 4px 40px rgba(0, 0, 0, 0.4);
  margin-bottom: 0.2em;
}

.title-line {
  display: block;
}

.subtitle {
  font-size: 1.4em;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
  margin-top: 8rem;
}

.subtitle-line {
  display: block;
}

/* Quick Start Links */
.quick-start-container {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  pointer-events: auto;
}

.quick-start-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
}

.quick-start-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.quick-start-links a {
  text-decoration: none !important;
}

.quick-start-link {
  display: flex;
  align-items: center;
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.quick-start-link:hover {
  background: rgba(148, 186, 29, 0.2);
  border-color: rgba(148, 186, 29, 0.5);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(148, 186, 29, 0.15);
  transform: translateY(-2px);
}





/* Comparison page fetch button alignment */
#comparison-fetch-button {
  height: 38px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
  margin: 0 !important;
  margin-top: 0 !important;
}

/* Comparison toast styling */
#comparison-toast {
  z-index: 1050 !important;
}

#lista_activos {
  width: 88vw !important;
  margin-right: 0px !important;
}

#loginButton {
  background-color: #93a2b7 !important;
  border-color: #93a2b7 !important;
  color: white;
}

#loginButton:hover {
  background-color: #b2c6e2 !important;
  border-color: #93a2b7 !important;
}


.typing-text {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUpShadow 1.5s ease-out forwards;
}

@keyframes fadeInUpShadow {
  0% {
    opacity: 0;
    transform: translateY(20px);
    text-shadow: none;
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  }
}


.eye-icon,
.eye-icon:hover {
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  position: absolute !important;
  right: 10px !important;
  /* Alineamos el icono a la derecha */
  top: 50% !important;
  /* Alineamos verticalmente al centro del input */
  transform: translateY(-50%) !important;
  /* Ajuste fino para centrar verticalmente */
  font-size: 18px !important;
  /* Tamaño del icono */
  color: #80858e !important;
  margin-top: 0 !important;
}


#error-message {
  color: red;
}

#close-blocked-modal {
  background-color: #dadada !important;
  color: black !important;
  cursor: pointer !important;
  border: none !important;
  font-weight: bold !important;
  width: 130px !important;
  border-radius: 8% !important;
  margin: 0 0 20px 0 !important;
}


.custom-modal .modal-content {
  border-radius: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  text-align: center;
}

/* Spinning animation for loading icon */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Modern Toast Notification */
.modern-toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
}

.modern-toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-left: 4px solid #f59e0b;
  min-width: 320px;
  max-width: 450px;
  animation: slideDown 0.3s ease-out;
}

.modern-toast.toast-hiding {
  animation: slideUp 0.3s ease-in forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.toast-icon {
  color: #f59e0b;
  flex-shrink: 0;
}

.modern-toast .toast-content span {
  color: #333;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.toast-close-btn {
  background: transparent !important;
  border: none !important;
  padding: 4px !important;
  margin: 0 !important;
  cursor: pointer !important;
  color: #999 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s;
  height: auto !important;
  width: auto !important;
  min-width: auto !important;
}

.toast-close-btn:hover {
  background-color: #f3f3f3 !important;
  color: #666 !important;
}