/* assets/custom.css (this file is auto-loaded by Dash) */

.custom_cards {
    padding-block:10px;
    border:none;
    border-radius:10px;
    background-color: var(--bs-body-bg); /* uses Bootstrap's theme-aware background */
    color: var(--bs-body-color);         /* uses Bootstrap's theme-aware text */
}

.card-grid {
    padding: 1rem;
}

.card-row {
    margin-bottom: 1rem;
}

.card-row .col {
    padding: 0.5rem;
}

.card {
    height: 100%; /* ensure all cards are same height */
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
       

.cards-wrapper {
    padding-top: 2rem;
    padding-bottom: 2rem;
    max-width: 1000px;
    margin: 0 auto; /* center horizontally */
}

.small-card-grid .card {
    min-height: 100px;
    font-size: 0.85rem;
    padding: 0.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    border-radius: 0.5rem;
}
.big {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
}



@media (max-width: 768px) {
    .small-card-grid .card {
        font-size: 0.75rem;
        min-height: 90px;
    }
}

.btn-badge-style {
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
    border-radius: 999px;
    box-shadow: none;
    line-height: 1;
    height: auto;
    min-width: auto;
    text-transform: none; /* or lowercase / capitalize */
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* When the column is full-width (e.g., jumps below Sankey) */
@media (max-width: 992px) {
  .control-group {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center; /* center horizontally */
    align-items: flex-start; 
  }
}

:root {
  --font-color: #000000;  /* default for light mode */
}

[data-theme="dark"] {
  --font-color: #ffffff;  /* override for dark mode */
}

@media (max-width: 600px) {
  [class^="g-x"][class$="title"] > text {
    display: none !important;
  }
}

.carousel-caption-below {
    position: static !important; /* Override Bootstrap overlay */
    background: none;
    padding-top: 0.5rem;
    margin: 50px;
}
.carousel-caption-below h5,
.carousel-caption-below p {
    color: #A9A9A9 !important;  /* Light gray text */
}
/* Make carousel header and caption text gray */
.caption_class_name {
    color:#A9A9A9 !important;
}

.carousel-control-prev,
.carousel-control-next {
top: 85%; /* Cambia la posición vertical del botón */
transform: translateY(-50%);

/*width: 5%; / Opcional: ajustar tamaño de zona clicable */
}

.carousel-control-prev {
left: -5%; /* Mueve el botón hacia la izquierda */
}

.carousel-control-next {
right: -5%; /* Mueve el botón hacia la derecha */
}
.carousel-control-next-icon,
.carousel-control-prev-icon{
  filter:invert(50%);
}
.carousel-indicators{
  filter:invert(50%);
}

.title-spaced {
  margin-top: 1rem;
  margin-bottom: 0;
  padding: 1rem;
  padding-top: 2rem;
}

.red-line {
  border: 0px solid red;
}
/* Default: Outline style */
.btn-outline-custom_color {
    color: #6c6f77; /* Indigo text */
    border: 2px solid #6c6f77;
    background-color: transparent;
}
.btn-outline-custom_color:hover {
    background-color: #6c6f77;
    color: #ffffff;
}

.btn-custom_color {
    background-color: #a3a4a9;
    color: #ffffff;
    
}
.btn-custom_color:hover {
    background-color: #6c6f77;
    color: #ffffff;
}

.modal-header .btn-close {
    width: 0.5rem;
    height: 0.5rem;
    font-size: 0.5rem;
}

.modal-header {
  position: relative; /* make it a positioning context */
}

.modal-header .btn-close {
  position: absolute;
  top: 0.25rem;  /* adjust as needed */
  right: 0.25rem;   /* adjust as needed */
  width: 0.5rem;
  height: 0.5rem;
  font-size: 0.5rem;
}

.text-justified {
    text-align: justify;
    font-size: 1.5em;
    line-height: 1.6;
}

/* Force white outline & icon in dark mode */
html[data-bs-theme="dark"] .btn-custom-outline {
  border-color: white !important;
  color: white !important;
}

html[data-bs-theme="dark"] .btn-custom-outline i {
  color: white !important;
}

html[data-bs-theme="dark"] .btn-custom-outline:hover {
  background-color: #7e7c7c !important;
  color: white !important;
}

/* Apply to all x and y axis titles in all figures */
.dcc-graph svg text:has(tspan) {
    font-size: 14px !important;
}

/* Extra Large screens (≥1200px) */
@media (min-width: 1200px) {
    .dcc-graph svg text:has(tspan) {
        font-size: 16px !important;
    }
}

/* Large screens (992px–1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .dcc-graph svg text:has(tspan) {
        font-size: 14px !important;
    }
}

/* Medium screens (768px–991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .dcc-graph svg text:has(tspan) {
        font-size: 12px !important;
    }
}

/* Small screens (576px–767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .dcc-graph svg text:has(tspan) {
        font-size: 10px !important;
    }
}

/* Extra small screens (<576px) */
@media (max-width: 575px) {
    .dcc-graph svg text:has(tspan) {
        font-size: 8px !important;
    }
}
g.colorbar {
  transform: scale(1, 1) !important;  /* normal size */
  transform-origin: right center;     /* scale relative to its right edge */
}

/* Extra Large screens (≥1200px) */
@media (min-width: 1200px) {
  g.colorbar {
    transform: scale(1, 1) !important;
    transform-origin: right center;
  }
  g.colorbar text {
    font-size: 12px !important;
  }
}

/* Large screens (992px–1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  g.colorbar {
    transform: scale(1, 1) !important;
  }
  g.colorbar text {
    font-size: 11px !important;
  }
}

/* Medium screens (768px–991px) */
@media (min-width: 768px) and (max-width: 991px) {
  g.colorbar {
    transform: scale(0.9, 0.8) !important;
  }
  g.colorbar text {
    font-size: 10px !important;
  }
}

/* Small screens (576px–767px) */
@media (min-width: 576px) and (max-width: 767px) {
  g.colorbar {
    transform: scale(0.9, 0.8) !important;
  }
  g.colorbar text {
    font-size: 9px !important;
  }
}

/* Extra small screens (<576px) */
@media (max-width: 575px) {
  g.colorbar {
    transform: scale(0.7, 0.6) !important;
  }
  g.colorbar text {
    font-size: 8px !important;
  }
}