
:root {
    --primary-purple: #6a49a8;
    --accent-orange: #ff8c00;
    --bg-gray: #f4f4f4;
    --sidebar-width: 300px;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    position: fixed;
    font-family: 'Garet', sans-serif !important;
}

/* Main Container */
#main-container {
    display: flex;
    height: calc(100vh - 12vh);
    width: 100vw;
}

header{
    height:12vh;
    background-color: #7457C1;
    z-index: 1200!important;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    flex-wrap: wrap; /* importante */
    position: sticky;
    top: 0;
}

.logo-redJaliso{
    width: 14rem;
}

.tooltip-card {
    background: white;
    border-radius: 12px;
    padding: 16px 16px;
    min-width: 200px;
    border: 1px solid #e0e0e0;
}

/* Left Sidebar */
#sidebar {
    /*width: var(--sidebar-width);*/
    height: calc(100vh - 12vh);
    background: #FAFAFA;
    z-index: 1100;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    padding: 0.875rem;
    overflow-y: auto;
    max-width: 18.2rem;
    position: fixed;
}

@media (max-height: 861px) {
    #sidebar {
        padding-top: 0rem;
        padding-bottom: 4rem;
    }

    .symbology-panel{
        bottom: 3.8rem!important;
    }
}

@media (min-width: 800px) and (max-width: 3000px) {
    .leaflet-left .leaflet-control {
        margin-left: 20rem;
    }
}

.logo {
    color: var(--primary-purple);
    font-weight: bold;
    font-size: 24px;
    margin-bottom: 20px;
}
.section-title {
    color: var(--accent-orange);
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.date-chip {
    background: #eee;
    border-radius: 1.25rem;
    height: 1.5625 rem;
    text-align: center;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

.progress-card {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}
.progress-bar {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin-top: 8px;
}
.progress-fill {
    height: 100%;
    background: var(--primary-purple);
    width: 65%;
}

#map {
    flex-grow: 1;
    position: relative;
    height: 100%;
    z-index: 1;
}
/* Overlay UI Elements */
.map-overlay {
    position: absolute;
    z-index: 999;
    background: white;
    border-radius: 8px;
    /*    box-shadow: 0 2px 10px rgba(0,0,0,0.15);*/
    padding: 16px;
    opacity: 1;
}

.search-bar {
    top: 13px;
    left: 60px;
    width: 300px;
    display: flex;
}
.search-bar input {
    border: none;
    padding: 3px;
    width: 100%;
    outline: none;
}
.search-btn {
    background: var(--accent-orange);
    border: none;
    color: white;
    padding: 10px 15px;
    cursor: pointer;
}

.symbology-panel {
    bottom: 2.1rem;
    right: 1rem;
    width: 16.875rem;
    font-size: 0.938rem!important;
}
.panel-header {
    display: flex;
    /*justify-content: space-between;*/
    color: var(--primary-purple);
    font-weight: bold;
    margin-bottom: 10px;
    align-items: end;
}

.basemap-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.map-type {
    border: 1px solid #ddd;
    padding: 5px;
    border-radius: 4px;
    font-size: 10px;
    text-align: center;
    flex: 1;
}

.symbology-list {
    list-style: none;
    padding: 0;
    font-size: 12px;
    max-height: 200px;
    overflow-y: auto;
}
.symbology-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}
.icon-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 10px;
}

.thematic {
    transition: all 0.3s ease; /* Smooth transitions work! */
    cursor: pointer;
}

.thematic:hover {
    fill: #00ff00 !important; /* Changes fill on hover */
    stroke: white !important;
    stroke-width: 3px !important;
}


.list-group-item {
    cursor: pointer !important;
    border-radius: 0 ;
    font-size: 0.8rem;
}

.list-group-submenu .list-group-item {
    /*background-color: #f8f9fa;*/
    font-size: 0.8rem;
    border-left: 1px solid #ff8200; /* Highlight the sub-menu */
    padding-left: 3px;
}

.list-group-submenu .list-group-item:hover {
    background-color: #e9ecef;
}

.active-selection {
    background-color: #e7f1ff !important;
    color: #007bff !important;
    font-weight: bold;
    border-left: 4px solid #007bff !important;
}

.list-group-submenu .list-group-item {
    transition: all 0.2s ease;
    border-radius: 0;
}

.leaflet-container {
    font-family: 'Garet', sans-serif !important;
}

.leaflet-container :focus {
    outline: 0px solid rgba(0, 0, 0, 0.0)!important;
}

.leaflet-touch .leaflet-bar a {
    width: 35px!important;
    height: 34px;
    line-height: 30px;
}

.leaflet-top{
    margin-top:  3.1rem;
}

.numeralia{
    display: flex;
    justify-content: space-between!important;
}

.numeralia-card {
    margin-bottom: 0.625rem;
    display: flex;
    justify-content: space-between;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.08);
}

.numeralia-title{
    padding-top: 0.3rem;
    color: #191919!important;
    font-size: 16px;
    padding-left: 10px;
    font-weight:800;
    font-family: 'Garet', sans-serif !important;
}

.numeralia-section{
    padding-top: 0.5rem;
    padding-left: 0.10rem;
    padding-bottom: 0.3rem;
    color: #191919!important;
    font-size: 0.875rem;
    font-weight:800;
    font-family: 'Garet', sans-serif !important;
}

.numeralia-info{
    font-size: 24px;
    font-weight:800;
    font-family: 'Garet', sans-serif !important;
}

.txt-color-purple{
    color:var(--primary-color);
}
.txt-color-blue{
    color:var(--blue-color);
}

.txt-color-orange{
    color:var(--orange-color);
}

.txt-color-aqua{
    color:var(--aqua-color);
}

.txt-color-grey{
    color:var(--grey-color);
}

.border-purple{
    border-left: 5px solid var(--primary-color);
}

.border-blue{
    border-left: 5px solid var(--blue-color);
}

.border-orange{
    border-left: 5px solid var(--orange-color);
}

.border-aqua{
    border-left: 5px solid var(--aqua-color);
}

.border-grey{
    border-left: 5px solid var(--grey-color);
}

.card-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
}

.card-stats {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding-left: 0.3rem;
}

.wifi-icon {
    width: 32px;
    height: 32px;
}

.view-icon {
    background-color: var(--light-purple);
    color: var(--primary-purple);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /*    //cursor: pointer;*/
}

.view-icon svg {
    width: 20px;
    height: 20px;
}

.thematic-container{
    margin-top: 0.3rem;
    margin-bottom: 2rem;
    padding-bottom: 0.3rem;
    /*box-shadow: 0 4px 15px rgba(0,0,0,0.15);*/
    border-radius: 12px;
    background-color: #F1F1F1;
}

.dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
}

.line {
    width: 20px;
    height: 3px;
    display: inline-block;
}
.dot-small {
    width: 8px;
    height: 8px;
    background: #555;
    border-radius: 50%;
}

.line {
    width: 20px;
    height: 3px;
    display: inline-block;
}

.green {
    background: green;
}

.blue.dashed {
    border-bottom: 2px dashed blue;
}

.dot-small {
    width: 8px;
    height: 8px;
    background: #555;
    border-radius: 50%;
}

.active{
    opacity: 0.5;
}

/* Container Styling */
.legend-container {
    background-color: #fff;
    padding: 10px;
    width: 250px;
}

h3 {
    margin-top: 0;
    font-size: 22px;
    font-weight: 800;
}

/* Row Layout */
.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.label {
    font-size: 0.875rem;
    color: #333;
}

/* Specific Icon Styles */
.square-outline {
    border: 2px solid #D1C8E2;
    width: 16px;
    height: 16px;
}

.circle-filled {
    background-color: #5d6770;
    border-radius: 50%;
    width: 14px;
    height: 14px;
}

/* Fibra Óptica (Stacked Lines) */
.fiber-optic .line {
    width: 100%;
    height: 2px;
    margin-bottom: 1px;
}
.orange {
    background-color: #ff8c00;
}
.blue {
    background-color: #0099ff;
}
.green {
    background-color: #33cc33;
}

/* Microonda (Dotted Line) */
.microwave {
    border-bottom: 3px dotted #0099ff;
    height: 0;
    width: 20px;
    margin-top: -5px; /* Alignment tweak */
}

.thematic-icon{
    width: 1.3rem;
    margin-top: -0.250arem;
}

.thematic-list{
    width: 0.75rem;
    font-size:0.65rem;
    font-weight: 200;
}

.clasification-list{
    width: 0.75rem;
    font-size:0.55rem;
    font-weight: 200;
}

/*.marker-icon {
  color: #7b5cc4;  The signature purple from your image 
  display: flex;
  align-items: center;
}*/


.leaflet-popup-content-wrapper {
    background: #fff; /* Change background color */
    /*color: #fff;        /* Change text color */
    font-size: 16px;   /* Change font size */
    line-height: 24px;
    border-radius: 15px; /* Change border radius */
    padding: 10px;      /* Adjust padding */
    border: 0.125rem solid var(--purple-color);
}

/* You can also style links inside the wrapper */
.leaflet-popup-content-wrapper a {
    color: rgba(255, 255, 255, 0.1);
}

.leaflet-popup {
    width: 22.0rem;
}

.leaflet-popup-tip {
    border: 0.125rem solid var(--purple-color);
    background: white;
}

.municiplitiy-tooltip{
    display: inline-block;
    background-color: #ddd;
    border-radius: 0.25rem;
    padding:0.15rem;
}

.code-tooltip{
    /*display: inline-block;*/
    border-radius: 0.25rem;
    border: 0.125rem solid;
    padding: 0.08rem;
}

.font-tooltip{
    font-size: 0.80rem;
}

.thematic-tooltip{
    justify-content: end;
    margin-bottom: 0.50rem;
}

.text-bold{
    font-weight: 800!important;
}


/* Sidebar initial state */
/*#sidebar {
    width: 320px;
    transition: all 0.3s ease;
    overflow: auto;
    padding-top: 2rem;
    height: 95vh;
}*/

/* Class to apply when hidden */
.sidebar-hidden {
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0;
}

.adjust-description{
    padding-top: 0.625rem;
}

/* Style for the button */
.toggle-btn {
    background:var(--purple-color);
    position: absolute;
    /*    top: 5.3rem;*/
    left: 0.10rem;
    z-index: 9999;
    padding: 10px 15px;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.custom-select{
    background-color: #f3f3f3!important;
    border-radius: 1rem!important;
    margin-bottom: 0.8rem!important;
    height: 3rem!important;
    color:#AEAEAE!important;
    font-size: 0.75rem!important;
    padding-left: 1.25rem!important;
}

#sites-check, #fiber-check {
    background-color: #F3F3F3 !important;
    border-color: #E1E1E1 !important;
    width: 2.0rem;
    box-shadow: none !important;
    margin-right: 0.188rem;
}

/* All switches: ON state */
#sites-check:checked, #fiber-check:checked {
    background-color: #82BF44 !important;
    border-color: #82BF44 !important;
    opacity: 1 !important;

}


.thematic-list strong {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.thematic-list img {
    margin-right: 8px;
    display: block; /* Helps flex alignment */
}

input{
    background-color: #F3F3F3!important;
    border: none;
    font-size: 0.750rem!important;
}

input:focus {
    outline: none;
    background-color: transparent; /* Ensures it stays the same color */
}

input[type="text"] {
    align-content: start;
}
/*
input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: #FF8301!important;  
    margin: 0;
    width: 0.875rem;
    height: 0.875rem;
    border: 1px solid #FF8301; 
    border-radius: 4px;
    display: grid;
    place-content: center;
    cursor: pointer;
}*/

.filter-label{
    font-size:0.875rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.color-option{
    color: #AEAEAE;
}

.color-selected-option{
    color: #000000!important;
}

.btnBarOrX{
    color: #fff;
    font-size: 2.0rem;
    margin-left:0.75rem;
    font-weight: bold;
}

.bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 2rem;
    height: 4rem;
    padding: 0;
}

.foundList {
    height: 100px;
    overflow-y: scroll;
    border: 1px solid #ccc;
    padding: 10px;
    list-style: none;
    margin: 0;
    background-color: #F3F3F3!important;
    border: 1px solid #e0e0e0;
    border-radius: 16px!important;
    margin-bottom: 0.6rem!important;
    color:#AEAEAE!important;
    font-size: 0.75rem !important;
}
.swal-container{
    z-index: 20000 !important;
}

