/* Main page content container */
#_pages_content {
    height: 100%;
}
/* Child divs of main container */
.main-div > div {
    height: 100%;
}

/* Collapse overlay for mobile navigation */
@media (max-width: 991.98px) {
    .collapse-overlay {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 500;
    }
}

/* Navbar toggler icon sizing */
.navbar-toggler .navbar-toggler-icon {
  height: 2vh !important;
  min-height: 20px !important;
}

/* Navbar controls grid layout */
.navbar-controls > div {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

/* Active navlink styling */
.nav-pills .nav-link.active.custom-navlink {
    background-color: #2a2a2a !important;
}

/* Responsive adjustments for navbar */
@media (max-width: 991.98px) {
    .navbar-logo, .navbar-title {
        display: none !important;
    }
    .navbar-controls {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .navbar-controls > div {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.3rem !important;
    }
}

/* Date display styling */
.text_date {
    padding: 6px 8px;
    font: 14px/16px Arial, Helvetica, sans-serif;
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    border-radius: 5px;
}
.text_date h4 {
    margin: 0 0 5px;
    color: black;
}

/* General hover effect */
.hovertext { fill-opacity: 0.8; }

/* Marker animation keyframes */
@keyframes anim-pulse {
    0% { 
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

/* Map marker core styling */
.marker-core {
    width: 15px;
    height: 15px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 6px 2px rgba(0, 0, 0, 0.5);
}

/* Map marker pulse animation */
.marker-ring {
    width: 30px;
    height: 30px;
    border: 2px solid white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: anim-pulse 1.5s ease-out infinite;
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.7));
}

/* Select option hover effect */
.mantine-Select-option:hover{
    background: rgba(255, 255, 255, 0.3);
}

/* Form input styling */
.form-check-input {
    cursor: pointer;
}

/* Tooltip styling with gradient background */
.tooltip-inner {
  background: linear-gradient(to right, rgba(19, 66, 81, 1), rgba(19, 66, 81, 0.1)) !important;
  color: white !important;
  font-weight: bold;
}

/* Tooltip arrow positioning and coloring */
.bs-tooltip-top .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before {
    border-top-color: rgba(19, 66, 81, 0.5);
}
.bs-tooltip-end .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow::before {
    border-right-color: rgba(19, 66, 81, 0.5);
}
.bs-tooltip-bottom .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow::before {
    border-bottom-color: rgba(19, 66, 81, 0.5);
}
.bs-tooltip-start .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow::before {
    border-left-color: rgba(19, 66, 81, 0.5);
}

/* Vignette effect for indices page */
.vignette-indices {
  background:
    linear-gradient(
        to right,
        rgba(19,66,81,1) 0%,
        transparent 45vw
    ),
    linear-gradient(
        to left,
        rgba(19,66,81,1) 0%,
        transparent 45vw
    ),
    linear-gradient(
        to top,
        rgba(19,66,81,1) 0%,
        transparent 45vh
    );
  background-repeat: no-repeat;
  background-size: 45vw 100%, 45vw 100%, 100% 45vh;
  background-position: left top, right top, center bottom;
}

/* Mobile landscape mode adjustments */
@media (max-height: 600px) {
  .vignette-indices {
    background: linear-gradient(
      to top,
      rgba(19,66,81,1) 0%,
      rgba(19,66,81,0.8) 10%,
      rgba(19,66,81,0.6) 40%,
      rgba(19,66,81,0) 55%
    );
  }
  .graphs-mobile-indices {
    display: flex !important;
    flex-direction: column !important;
    height: 50% !important;
  }
  .indices-desktop {
    display: none;
  }
  .drop-year-indices {
    left: 55px !important;
  }
  .colobar-map-indices {
    top: 1% !important;
    right: 20% !important;
  }
}

/* Portrait mode and tablet adjustments */
@media (orientation: portrait) and (min-height: 601px), (min-height: 601px) and (max-width: 991px) {
  .vignette-indices {
    background: linear-gradient(
      to top,
      rgba(19,66,81,1) 0%,
      rgba(19,66,81,0.6) 25%,
      rgba(19,66,81,0) 35%
    );
  }
  .graphs-mobile-indices {
    display: flex !important;
    flex-direction: column !important;
    height: 30% !important;
  }
  .indices-desktop {
    display: none;
  }
  .colobar-map-indices {
    top: 5% !important;
    height: 30vh !important;
    right: 10% !important;
  }
}