/* ============================================================
   DORIA – aoi.css
   Shared Area-of-Interest picker (aoiPicker.js). Neutral dark styling
   so it sits cleanly in the Site Analysis dock, the Forest panel, and
   the Fire panel alike. Loaded globally from index.html.
   ============================================================ */

.aoi-picker { margin-top: 6px; }

.aoi-select {
    width: 100%;
    background: var(--surface-field);
    border: 1px solid #333;
    color: rgb(var(--ink));
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.6875rem;
    padding: 5px 8px;
    cursor: pointer;
}
.aoi-select:focus { outline: none; border-color: var(--brand-ink); }
.aoi-select:disabled { opacity: 0.5; cursor: not-allowed; }
.aoi-select optgroup { color: #9aa; font-style: normal; }
.aoi-select option { color: rgb(var(--ink)); background: var(--surface-field); }

.aoi-namerow { display: flex; gap: 4px; margin-top: 6px; }
.aoi-name {
    flex: 1; min-width: 0;
    background: var(--surface-field);
    border: 1px solid #333;
    color: rgb(var(--ink));
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.6875rem;
    padding: 5px 8px;
}
.aoi-name:focus { outline: none; border-color: var(--brand-ink); }

.aoi-actions { display: flex; gap: 4px; margin-top: 6px; }

.aoi-btn {
    background: rgb(var(--ink));
    border: 1.5px solid var(--surface-flat);
    color: var(--surface-flat);
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 6px 10px;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
}
@media (hover: hover) and (pointer: fine) {
    .aoi-btn:hover:not(:disabled) {
        background: var(--surface-flat);
        color: rgb(var(--ink));
    }
}
.aoi-btn:active:not(:disabled) {
    background: var(--surface-flat);
    color: rgb(var(--ink));
}
.aoi-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.aoi-btn--mini { flex: 1; padding: 5px 6px; font-size: 0.5625rem; }

.aoi-clear {
    background: transparent;
    color: rgba(var(--ink), 0.7);
    border: 1px solid rgba(var(--ink), 0.2);
}

/* Full-width bulk-clear row. These three used to be inline styles on the
   button; they live here so a host stylesheet can override them. */
.aoi-clear--full { width: 100%; margin-top: 6px; opacity: 0.75; }
@media (hover: hover) and (pointer: fine) {
    .aoi-clear:hover:not(:disabled) {
        background: rgba(239, 68, 68, 0.1);
        color: #ff6b6b;
        border-color: #ff6b6b;
    }
}
.aoi-clear:active:not(:disabled) {
    background: rgba(239, 68, 68, 0.1);
    color: #ff6b6b;
    border-color: #ff6b6b;
}
