/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Base Layout */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header - Increased height */
.app-header {
    z-index:1;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0.5rem; /* Increased padding */
    flex-shrink: 0;
    height: 100px; /* Increased from previous */
}

.app-logo {
    height: 70px;
    width: auto;
}

.user-info-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info {
    font-weight: 500;
    font-size: 1.1rem; /* Slightly larger text */
}

.user-icon {
    font-size: 2rem; /* Larger icon */
    color: #2c3e50;
}

/* Main Content Area */
.app-container {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
}

.app-sidebar {
    width: 300px;
    background: white;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    padding: 1rem;
    transition: transform 0.3s ease;
    position: relative;
    height: calc(100vh - 150px); /* Adjusted for new header/footer */
    overflow-y: auto;
    flex-shrink: 0;
}

    .app-sidebar.collapsed {
        transform: translateX(-300px);
        width:0px
    }

.app-main {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 150px); /* Adjusted for new header/footer */
    overflow: hidden;
}

#viewDiv {
    flex: 1;
    width: 100%;
    animation: fadeIn 0.5s ease-out;
    min-height: 0;
}

/* Toggle Button */
.toggle-btn {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 1000;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Footer - Reduced height */
.app-footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 0.5rem; /* Reduced padding */
    flex-shrink: 0;
    height: 50px; /* Reduced from previous */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Layer Controls */
/*.sidebar-content {
    margin-top: 40px;
}*/

.layer-item {
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}

    .layer-item:hover {
        background: #f5f5f5;
    }
/* Sidebar */
.app-sidebar {
    width: 300px;
    background: white;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: calc(100vh - 150px);
    overflow-y: auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.menu-section {
    margin-bottom: 0.3rem;
}

.menu-header {
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    border-radius: 5px;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

    .menu-header:hover {
        background-color: #e9ecef;
    }

    .menu-header i:first-child {
        margin-right: 10px;
        width: 20px;
        text-align: center;
    }

.toggle-icon {
    margin-left: auto;
    transition: transform 0.2s;
}

.menu-header.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.menu-items {
    padding: 0.5rem 0;
    margin-left: 30px;
}

.menu-item {
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    border-radius: 5px;
    transition: all 0.2s;
}

    .menu-item:hover {
        background-color: #f1f1f1;
    }

    .menu-item i {
        margin-right: 10px;
        width: 20px;
        text-align: center;
    }

.form-switch .form-check-input {
    margin-right: 10px;
}
.system-title {
    margin: 0 0 0 20px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
}

@media (max-width: 992px) {
    .system-title {
        font-size: 1.2rem;
        margin-left: 10px;
    }
}

@media (max-width: 768px) {
    .system-title {
        display: none;
    }
}
.input-group {
    position: relative;
    width: 100%;
    margin: 6px 0;
}

.input-label {
    position: absolute;
    top: -7px;
    left: 10px;
    background-color: white; /* Match sidebar or parent bg */
    color: black;
    font-size: 11px;
    padding: 0 4px;
    pointer-events: none;
}

.menu-input {
    width: 100%;
    height: 28px; /* reduced height */
    padding: 4px 8px;
    border: 1px solid black;
    border-radius: 4px;
    color: black;
    font-size: 13px;
    box-sizing: border-box;
}


.floating-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    padding: 10px;
    border-radius: 8px;
    max-width: 320px;
    max-height: 80%;
    overflow-y: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 99;
}

.feature-item {
    border-bottom: 1px solid #ccc;
    padding: 5px;
    margin-bottom: 8px;
}

    .feature-item button {
        margin-top: 4px;
    }



.feature-table-container {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: white;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1;
}

.toggle-btn {
    margin-bottom: 10px;
    padding: 5px 10px;
}

.feature-table {
    display: block; /* Change to 'none' if you want it collapsed by default */
}

    .feature-table table {
        border-collapse: collapse;
        width: 100%;
    }

    .feature-table th, .feature-table td {
        border: 1px solid #ddd;
        padding: 8px;
        text-align: left;
    }

    .feature-table th {
        background-color: #f2f2f2;
        position: sticky;
        top: 0;
    }

    .feature-table tr:hover {
        background-color: #f5f5f5;
        cursor: pointer;
    }

.goto-feature-btn {
    padding: 2px 6px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

    .goto-feature-btn:hover {
        background-color: #45a049;
    }
.esri-feature-table__content {
    width: 900px !important;
    height: 400px;
}

/* Altura específica para la leyenda */
.esri-expand__content .legend-container {
    max-height: 400px; /* Altura para la leyenda */
    overflow-y: auto;
}

/* Altura específica para la tabla */
.esri-expand__content .table-container {
    max-height: 300px; /* Altura para la tabla */
    overflow-y: auto;
}


/* cambio de linea de borde */
#grayScaleSlider {
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to left, white, black);
    border-radius: 3px;
    outline: none;
}

    #grayScaleSlider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #333;
        cursor: pointer;
    }

    #grayScaleSlider::-moz-range-thumb {
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #333;
        cursor: pointer;
        border: none;
    }

    #grayScaleSlider::-moz-range-track {
        background: left;
        height: 6px;
        border-radius: 3px;
    }


.ovload {
    position: fixed;
    z-index: 110;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    background-color: #aaa;
    filter: alpha(opacity=80);
    opacity: 0.8;
}

.ovloadcontent {
    z-index: 99;
    margin: 250px auto;
    width: 80px;
    height: 80px;
}

    .ovloadcontent img {
        width: 80px;
        height: 80px;
    }

.grey-toggle-btn {
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #000000;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.grey-toggle-btn:hover {
    background-color: #e9ecef;
}

.concol-et1932 {
    background-color: rgb(235,70,95,0.5) !important;
}
.concol-et1983 {
    background-color: rgb(15,105,180, 0.5) !important;
}
.concol-er1983 {
    background-color: rgb(21,216,68,0.5) !important;
}
.concol-estaca {
    background-color: rgb(171,250,219,0.5) !important;
}

.menu-button.active {
    background-color: #0079c1;
    color: white;
}
.tool-button:hover {
    background-color: #f0f0f0 !important;
    color: #2e2e2e !important;
}

.tool-button.active {
    background-color: #0079c1 !important;
    color: white !important;
    border-color: #005e95 !important;
}