/* ── base ─────────────────────────────────────────────────────────────── */
body {
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
    background-color: #f8f9fa;
}

/* Mínimo 1024px — desktop only */
@media (max-width: 1023px) {
    body::before {
        content: "MapaRede é otimizado para desktop (mínimo 1024px).";
        display: block;
        background: #0d6efd;
        color: white;
        text-align: center;
        padding: 8px;
        font-size: 0.85rem;
    }
}

/* ── navbar ──────────────────────────────────────────────────────────── */
.navbar-brand { letter-spacing: -0.5px; }

/* ── badge de status de salvamento ───────────────────────────────────── */
#badge-save-status[data-status="saving"] {
    opacity: 1 !important;
    background-color: #ffc107 !important;
    color: #000 !important;
}
#badge-save-status[data-status="saved"] {
    opacity: 1 !important;
    background-color: #198754 !important;
    color: #fff !important;
}

/* ── formulários ─────────────────────────────────────────────────────── */
.form-label { font-weight: 500; font-size: 0.875rem; }

/* ── painel de detalhes — links abrem em nova aba via JS ─────────────── */
#detail-panel a { color: #0d6efd; }

/* ── editor 3 colunas ────────────────────────────────────────────────── */
.editor-container {
    display: flex;
    height: calc(100vh - 56px);
    overflow: hidden;
}

.editor-sidebar-left {
    width: 240px;
    min-width: 240px;
    background: #ffffff;
    border-right: 1px solid #dee2e6;
    overflow-y: auto;
    padding: 14px 12px;
    flex-shrink: 0;
}

.editor-canvas {
    flex: 1;
    background: #eef0f4;
    overflow: hidden;
}

.editor-panel-right {
    width: 290px;
    min-width: 290px;
    background: #ffffff;
    border-left: 1px solid #dee2e6;
    overflow-y: auto;
    padding: 14px 12px;
    flex-shrink: 0;
}

/* ── sidebar labels de seção ─────────────────────────────────────────── */
.sidebar-section-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6c757d;
    margin-bottom: 8px;
}

.sidebar-divider {
    border-color: #e9ecef;
    margin: 12px 0;
}

/* ── painel de detalhes ──────────────────────────────────────────────── */
.panel-section-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6c757d;
    margin-bottom: 4px;
}

.panel-markdown p { margin-bottom: 0.4rem; font-size: 0.85rem; }
.panel-markdown ul, .panel-markdown ol { font-size: 0.85rem; padding-left: 1.2rem; }

/* ── Markdown preview (formulários) ─────────────────────────────────── */
.markdown-preview {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 8px 10px;
    min-height: 120px;
    font-size: 0.85rem;
    overflow-y: auto;
}
.markdown-preview p { margin-bottom: 0.3rem; }

/* ── filtros (sidebar) ───────────────────────────────────────────────── */
.sidebar-filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 3px;
    display: block;
}

/* ── upload de foto ──────────────────────────────────────────────────── */
.upload-area {
    border: 2px dashed #ced4da;
    border-radius: 6px;
    padding: 16px;
    text-align: center;
    color: #6c757d;
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.2s;
}
.upload-area:hover { border-color: #0d6efd; color: #0d6efd; }
