html,
body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

.esriScalebar {
    padding: 20px 20px;
}

#map {
    padding: 0;
    margin: 0;
}

/* set title font properties */
.infowindow .window .top .right .user .titlebar .title {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 14pt;
}

/* set content font properties */
.infowindow .window .top .right .user .content {
    font-style: italic;
    font-weight: bold;
    font-size: 10pt;
}

#legendDiv {
    position: relative !important;
    background-color: rgba(255, 255, 255, 0.75);
    padding: 10px;
    overflow: auto;
    z-index: 50;
    border-radius: 10px;
    /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    /* Optional shadow */
}

#controls {
    background-color: rgba(255, 255, 255, 0.75);
    overflow: auto;
    padding: 10px;
    z-index: 50;
    border-radius: 10px;
    /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    /* Optional shadow */
}

#archivos {
    background-color: rgba(255, 255, 255, 0.75);
    overflow: auto;
    padding: 10px;
    z-index: 50;
    border-radius: 10px;
    /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    /* Optional shadow */
}

#featureModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 50;
}

#featureModalContent {
    margin: 10% auto;
    padding: 20px;
    width: 500px;
    position: relative;

    background-color: rgba(255, 255, 255, 0.75);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#featureModalPagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    /* Space between buttons and counter */
    margin-top: 10px;
}

#featureModalPagination button {
    padding: 5px 20px;
    font-size: 14px;
    color: white;
    background-color: #1e5689;
    /* A nice blue color */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Subtle shadow */
}

#featureModalPagination button:hover {
    background-color: #17406b;
    /* Darker blue for hover effect */
}

#featureModalPagination button:active {
    background-color: #122e4e;
    /* Even darker for active state */
}

#featureCounter {
    font-size: 14px;
    color: #333;
    padding: 5px 10px;
    background-color: #f1f1f1;
    border-radius: 5px;
    min-width: 40px;
    text-align: center;
}

#loadingIndicator {
    display: none;
    text-align: center;
    font-size: 16px;
    margin-top: 10px;
    z-index: 100;
}

#notaNoValidado {
    color: black;
    font-size: small;
    background-color: rgba(255, 255, 255, 0.75);
    bottom: 0 !important;
    overflow: auto;
    padding: 5px;
    position: fixed !important;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    z-index: 50;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#detalleTablaAtributos {
    list-style: none;
    /* Remove default bullet points */
    padding: 0;
    margin: 0;
    max-width: 500px;
    /* Optional max-width for better readability */
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#detalleTablaAtributos li {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

#detalleTablaAtributos li:last-child {
    border-bottom: none;
    /* Remove border for the last item */
}

#detalleTablaAtributos li .atributo {
    font-weight: bold;
    color: #1e5689;
    /* Use the green color for attributes */
    margin-right: 10px;
}

#detalleTablaAtributos li .valor {
    color: #333;
    text-align: right;
    word-break: break-word;
    /* Handle long text nicely */
}

#contenedorTablaAtributos {
    width: 100%;
    height: 50%;
    overflow-y: auto;
}

.img-icn {
    width: 20px;
    height: 20px;
}


#panel {
    background-color: rgba(255, 255, 255, 0.75);
    top: 0px !important;
    bottom: 0px !important;
    position: absolute !important;
    left: 0px !important;
    width: 20%;
    z-index: 50;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tabs {
    width: 100%;
    font-family: Arial, sans-serif;
}

.tab-buttons {
    display: flex;
    border-bottom: 2px solid #ccc;
    flex-shrink: 0;
}

.tab-buttons button {
    flex: 1;
    padding: 10px;
    border: none;
    background-color: #f1f1f1;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: bold;
}

.tab-buttons button.active {
    background-color: #fff;
    border-bottom: 2px solid #007BFF;
    color: #007BFF;
}

.tab-content-wrapper {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #ccc;
    background-color: #f1f1f1;
    border-top: none;
    padding: 10px;
}

.tab-content {
    display: none;
    padding: 15px;
    background-color: #fff;
}

.tab-content.active {
    display: block;
}

.esriLegendServiceLabel {
    display: none;
}

#controls ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    font-size: 14px;
}

#controls li {
    display: block;
    padding: 4px;
    margin-bottom: 4px;
    border-radius: 4px;
    transition: background 0.2s;
}

#controls li:hover {
    background-color: #f0f0f0;
}

#controls label {
    cursor: pointer;
    margin-left: 0.5rem;
}

#controls .sub-list {
    padding-left: 10px;
    margin-top: 0px;
}

#controls .img-icn {
    vertical-align: middle;
    margin-left: 5px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

#legendDiv,
#controls,
#archivos {
    overflow: visible;
    background-color: transparent;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
}

.acordeon-control {
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    padding-left: 2rem;
    position: relative;
}

.acordeon-control::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 1em;
    height: 1em;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='black' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 4l8 6-8 6V4z'/%3E%3C/svg%3E");
    transition: transform 0.2s ease;
    margin-left: -10px;
    margin-top: 0px;
}

.acordeon-control.open::before {
    transform: rotate(90deg);
}


/* Estilos para el botón de descarga de Excel */
.img-icn {
    cursor: pointer;
    margin-left: 8px;
    vertical-align: middle;
}

/* Estilos para el modal de carga */
.loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    z-index: 9999;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}