/* ═══════════════════════════════════════════════════════
   app.css — Estilos globales para CRM.Agrimensores.UI.Shared
   ═══════════════════════════════════════════════════════ */

/* ── Design tokens ────────────────────────────────────── */
:root {
    --color-bg:           #f9fafb;
    --color-surface:      #ffffff;
    --color-text-primary: #111827;
    --color-text-muted:   #6b7280;
    --color-border:       #e5e7eb;
    --color-accent:       #3b82f6;
}

/* ── Reset ────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    background: var(--color-bg);
    color: var(--color-text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── App layout ───────────────────────────────────────── */
.app-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-main {
    flex: 1;
}

/* ── Blazor WebView safe areas (MAUI) ─────────────────── */
.status-bar-safe-area {
    height: env(safe-area-inset-top, 0);
    background: #1a4d8f;
}

/* ── Blazor error UI ──────────────────────────────────── */
#blazor-error-ui {
    background: #fffbeb;
    border-top: 1px solid #f59e0b;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, .2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: #92400e;
    font-size: 0.875rem;
}

#blazor-error-ui .reload {
    color: #b45309;
    font-weight: 600;
    margin-left: 0.5rem;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
    font-size: 1rem;
}
