a {
    color: var(--primary-color);
}

a:hover {
    color: var(--secondary-color);
}

.bg-secondary {
    background-color: var(--secondary-color);
}

.text-primary {
    color: var(--primary-color) !important;
}

.progress-bar {
    background-color: var(--primary-color);
}

:root {
    --bs-border-radius: 10px;
    --bs-bg-secondary: #your-custom-color;
    /* Replace #your-custom-color with your desired color */
}

.bg-secondary {
    background-color: var(--tertiary-color) !important;
    color: var(--primary-color) !important;
}

/* Ensure page takes at least 100vh (full height) */
html,
body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Navbar Styling */
.navbar {
    transition: background-color 0.3s ease-in-out;
    padding: 15px;
}

.navbar:not(.scrolled) {
    background-color: rgba(255, 255, 255, 1);

}

.navbar.scrolled {
    background-color: rgb(245, 245, 245);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Logo Styling */
.navbar-brand-image {
    transition: font-size 0.3s ease-in-out;
}

.navbar-brand-image {
    height: 80px;
}

.navbar.scrolled .navbar-brand-image {
    font-size: 18px;
    /* Smaller font size when scrolled */
    height: 40px;
}

/* Page Wrapper: Ensures main content expands to fill remaining space */
.page-wrapper {
    flex: 1;
    /* Pushes footer to the bottom */
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    padding-top: 6em;
    min-height: 180vh;
    /* background:lime; */
}

.content-wrapper {
    padding-top: 6em;
    /* padding-bottom:6em; */

}

/* Hero Section */
.hero {
    height: 50vh;
    background: url('/getImage/hero') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-overlay {
    text-align: center;
    padding: 20px;
    font-weight: bold;
    /* background: rgba(0, 0, 0, 0.4); */
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--bs-border-radius);
    color: var(--primary-color);
}

/* Footer: Stays at bottom without being sticky */
/* .footerx {
    background: #f8f9fa;
    border-top: 1px solid #ddd;
    position:fixed;
    bottom:0;
    width:100%;
        

} */

footer {
    background: #f8f9fa;
    border-top: 1px solid #ddd;
    bottom: 0;
}

.navbar-nav .nav-link.active {
    text-decoration: underline;
}

a {
    text-decoration: none;
}

.hidden {
    display: none;
}

.category-selector {
    cursor: pointer;
}

.card-body-icon {
    position: absolute;
    z-index: 0;
    top: -15px;
    right: -5px;
    font-size: 4rem;
    -webkit-transform: rotate(15deg);
    -ms-transform: rotate(15deg);
    transform: rotate(15deg);
}

/* PED */
.list-group-item-ped {
    /* border-left:none; */
    border-right: none;
    border-top: none;
}

.ods-logo {
    height: 2em;
}


/* Charts */
.altair-chart {
    min-width: 800px;
    overflow: auto;
}

/* Semaforo */
.traffic-light {
    display: inline-block;
    border-radius: 50%;
    width: var(--size, 1em);
    height: var(--size, 1em);
    cursor: context-menu;
}

.traffic-light-legend {
    display: inline-block;
    border-radius: 50%;
    width: var(--size, 1em);
    height: var(--size, 1em);
}

/* Define colors for the five states */
.state-1 {
    background-color: #d9534f;
}

/* Red */
.state-2 {
    background-color: #f0ad4e;
}

/* Orange */
.state-3 {
    background-color: #94fd94;
}

/* Light green */
.state-4 {
    background-color: #5cb85c;
}

/* Dark green */
.state-5 {
    background-color: #5bc0de;
}

/* Blue */
.state-0,
.state--- {
    background-color: white;
    border: 1px solid #9aa4ac;
}

/* White */


/* Sizes relative to font size */
.small {
    --size: 0.75em;
}

.medium {
    --size: 1em;
}

.large {
    --size: 1.5em;
}

.extra-large {
    --size: 2em;
}

#selector_geo_units {
    max-height: 50vh;
    overflow-y: scroll;
}

.popover {
    background-color: #efefef;
    box-shadow: 5px 10px 18px #888888;
}

.document-link {
    color: black;
}

.document-link:hover {
    background-color: #eeeeee;
}

.batch-unselect,
.batch-select {
    font-size: 0.8rem;
    cursor: pointer;
}

.batch-unselect:hover,
.batch-select:hover {
    color: var(--primary-color);
}

/* MAP RELATED */
#map {
    height: 600px;
    background-color: white;
}

.info {
    padding: 6px 8px;
    font: 14px/16px Arial, Helvetica, sans-serif;
    background: white;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    border-radius: var(--bs-border-radius);
}

.info h4 {
    margin: 0 0 5px;
    color: #777;
}

.leaflet-control .legend {
    background: white;
    padding: 10px;
    border-radius: var(--bs-border-radius);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    line-height: 1.4em;
}

.markdown-table {
    border-collapse: collapse;
}

.markdown-table th,
.markdown-table td {
    border: 1px solid black;
    padding: 0.5em;
}

.awesomplete>ul:before {
    background: blue;
}

.awesomplete {
    display: block;
}