/* ============================================================
   Shared styling for the analysis tool pages
   (Land Suitability + Land Similarity)
   ============================================================ */

/* --- Compact typography for dense, data-heavy forms --- */
.tool-page input,
.tool-page button,
.tool-page label,
.tool-page h5,
.tool-page .small-text,
.tool-page .form-check-label {
    font-size: 12px;
}

/* --- File / directory browser --- */
#fileList {
    max-height: 500px;
    overflow-y: auto;
}

.folder {
    font-size: 14px;
}

.folder-icon {
    cursor: pointer;
    font-size: 14px;
    vertical-align: middle;
}

.folder-content {
    display: none;
    margin-left: 10px;
}

.folder.expanded > .folder-content {
    display: block;
}

.file {
    height: 30px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.file-name {
    font-size: 12px;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: middle;
}

.custom-checkbox {
    height: 20px;
    width: 20px;
    vertical-align: middle;
}

/* --- Selected-data table --- */
.table-responsive {
    max-height: 800px;
    overflow-y: auto;
}

.table {
    width: 100%;
    table-layout: fixed;
}

.table th,
.table td {
    vertical-align: middle;
    padding: 0.5rem;
}

.small-input,
.small-select {
    font-size: 12px;
    height: 28px;
    padding: 4px 8px;
    vertical-align: middle;
}

.action-buttons {
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    height: 100%;
}

.action-buttons .btn {
    padding: 3px 6px !important;
    font-size: 12px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* --- Raster group banding --- */
.group-1 { background-color: #f9f9f9; }
.group-2 { background-color: #e9e9e9; }
.group-3 { background-color: #d9d9d9; }
.group-4 { background-color: #c9c9c9; }
.group-5 { background-color: #b9b9b9; }

.collapse-btn {
    margin-right: 5px;
    padding: 0;
    font-size: 14px;
    border: none;
    background: none;
    cursor: pointer;
}

.collapse-btn:focus {
    outline: none;
}

/* --- Maps --- */
#map-container {
    height: 300px;
}

#popup-map {
    height: 100%;
    width: 100%;
}

.legend {
    background: #fff;
    line-height: 18px;
    color: #333;
    padding: 6px 8px;
    border-radius: 4px;
}

.legend i {
    width: 18px;
    height: 18px;
    float: left;
    margin-right: 8px;
    opacity: 0.7;
}

/* --- Misc --- */
.btn-delete { display: inline-block; }
.raster-parameters { margin-top: 10px; }
.error { color: red; font-size: 0.9em; }
#aoiStatus { font-size: 12px; }
#clearAoiBtn { white-space: nowrap; }
