
@font-face {
    font-family: 'Nexa Bold';
    font-style: normal;
    font-weight: normal;
    src: local('Nexa Bold'), url("/assets/fonts/NexaBold.woff") format('woff');
}

body {
    /*font-family: 'Nexa Bold', sans-serif !important;*/
}

/* Custom styles for select2 */
.select2-container .select2-selection--single {
    height: calc(1.5em + 0.75rem + 0px); /* Adjust height to match Bootstrap's form-select */
    padding: 0.375rem 0.75rem;
    font-size: 1.25rem; /* fs-5 */
    font-weight: 700; /* font-weight-bold */
    border: 1px solid #ced4da;
    border-radius: 0.2rem;
    background-color: #f8f9fa; /* btn-light */
    color: black !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #212529; /* Default text color */
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: 10px;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    display: none; /* Hide the clear button */
}

.select2-container--open .select2-selection--single .select2-selection__clear {
    display: block; /* Show the clear button when open */
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.select2-container .select2-selection--single .select2-selection__clear::after {
    content: '×'; /* Cross symbol */
    font-size: 1.5em;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #e9ecef;
    color: #212529;
}

.select2-container--default .select2-results > .select2-results__options {
    max-height: 300px; /* Increase max-height for better option view */
    font-size: 1.25rem; /* Increase font size */
    color: black; /* Set text color to black */
}

.select2-container .select2-search--dropdown .select2-search__field {
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1.25rem; /* fs-5 */
    font-weight: 700; /* font-weight-bold */
    border: 1px solid #000000;
    border-radius: 0.2rem;
    background-color: #f8f9fa;
    /*bg-gradient-water*/
    color: black;
}

.bg-dark-blue {
    background: #0e3e6b;
}

.labels {
    color: black;
    font-size: 10px;
    font-weight: bold;
    background-color: white; /* Set the background color to white */
    padding: 2px; /* Add some padding for better appearance */
    border: 1px solid black; /* Optional: Add a border around the label */
    border-radius: 3px; /* Optional: Add rounded corners */
    white-space: nowrap; /* Prevent label from breaking into multiple lines */
}

.sticky-header {
    position: sticky !important;
    z-index: 12;
    top: -8px;
    background: white;
}

 .legend-card {
     width: auto; /* Adjusted to allow horizontal expansion */
     height: 60px;
     position: relative;
     display: flex;
     align-items: center;
     justify-content: flex-start; /* Align items to start for horizontal expansion */
     /*margin: 0 5px;*/
     transition: all 0.3s ease;
     cursor: pointer;
     overflow: hidden;
 }

.legend-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.legend-circle, .legend-line{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.legend-icon {
    padding: 5px;
    background-color: #ffffff;
    object-fit: scale-down;
    box-shadow: inset 0px 0px 5px 4px rgb(0 0 0 / 33%) !important;
}

.legend-circle {
    background-color: #FFD700; /* Example color */
}

.legend-circle-yellow {
    background-color: yellow;
}

.legend-circle-red {
    background-color: red;
}

.legend-line {
    background: transparent;
}

.legend-line-red {
    /*background-color: red;*/
    border: 5px solid red;
}

.legend-line-blue {
    /*background-color: blue;*/
    border: 5px solid blue;
}

.legend-text {
    max-width: 0; /* Initially hidden */
    opacity: 0;   /* Initially hidden */
    white-space: nowrap;
    overflow: hidden;
    margin-left: 10px; /* Space between icon and text */
    transition: max-width 0.3s ease, opacity 0.3s ease;
}


.legend-card:hover .legend-icon,
.legend-card:hover .legend-circle,
.legend-card:hover .legend-line {
    transform: scale(1.2);
}

.legend-card:hover .legend-text {
    max-width: 300px; /* Adjust this value based on the expected text length */
    opacity: 1;
    border-radius: 5px;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}
.legend-card.active .legend-text {
    display: block;
}
