/* ══════════════════════════════════════════════════════════════════════════
   Activos Fijos · Cruz Roja Norte de Santander
   Sistema de diseño heredado de convolaboral
   Flat · Alto contraste · Minimalista · Geométrico
   ══════════════════════════════════════════════════════════════════════════ */

:root {
    --ink:        #0f172a;
    --ink-2:      #334155;
    --ink-3:      #64748b;
    --ink-4:      #94a3b8;
    --accent:     #2563eb;
    --accent-dk:  #1d4ed8;
    --surface:    #ffffff;
    --surface-2:  #f8fafc;
    --surface-3:  #f1f5f9;
    --border:     #e2e8f0;
    --border-dk:  #cbd5e1;
    --radius-sm:  4px;
    --radius-md:  6px;
    --radius-lg:  8px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--surface-2);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

main { flex: 1; }

/* ── NAVBAR ─────────────────────────────────────────────────────────────── */
.navbar-modern {
    display: flex !important;
    align-items: stretch !important;
    padding: 0 !important;
    height: 62px;
    background: #1e3a5f !important;
    border-bottom: 1px solid #1e293b;
}

.navbar-brand-zone {
    background: #ffffff;
    display: flex;
    align-items: center;
    padding: 0 18px;
    text-decoration: none;
    flex-shrink: 0;
    border-right: 1px solid #e8f0f8;
}
.navbar-brand-zone:hover { opacity: 0.9; }
.navbar-logo { height: 36px; width: auto; display: block; }

.navbar-brand-blue {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 0 20px 0 16px;
    border-right: 1px solid rgba(255,255,255,0.2);
    justify-content: center;
}
.navbar-brand-blue .brand-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #cbd5e1;
    letter-spacing: -0.2px;
    line-height: 1;
}
.navbar-brand-blue .brand-sub {
    font-size: 0.6rem;
    font-weight: 400;
    color: #64748b;
    letter-spacing: 0.02em;
    line-height: 1.4;
    margin-top: 3px;
}

.navbar-blue-zone {
    flex: 1;
    background: #1e3a5f;
    display: flex;
    align-items: center;
    padding: 0 20px;
    min-width: 0;
}

.nav-link-modern {
    padding: 0 12px !important;
    height: 62px;
    display: flex !important;
    align-items: center;
    gap: 6px;
    font-size: 0.81rem;
    font-weight: 500;
    color: #94a3b8 !important;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}
.nav-link-modern i { font-size: 0.85rem; color: #64748b; }
.nav-link-modern:hover {
    color: #f1f5f9 !important;
    background: rgba(255,255,255,0.06);
    border-bottom-color: #475569;
}
.nav-link-modern.active {
    color: #f1f5f9 !important;
    border-bottom-color: #94a3b8;
    font-weight: 600;
    background: rgba(255,255,255,0.08);
}
.nav-link-modern.disabled-link { opacity: 0.5; pointer-events: none; }

.btn-login-ghost {
    color: rgba(255,255,255,0.85) !important;
    padding: 7px 14px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.78rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-login-ghost:hover {
    background: rgba(255,255,255,0.12);
    color: #fff !important;
}

/* ── CARDS / SECCIONES ──────────────────────────────────────────────────── */
.card-modern {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: 0 1px 2px rgba(15,23,42,.03);
}

.page-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ── FORMS ──────────────────────────────────────────────────────────────── */
.form-label { font-size: 0.78rem; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
.form-control, .form-select {
    border: 1px solid var(--border-dk);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    padding: 8px 12px;
}
.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

/* ── BUTTONS ────────────────────────────────────────────────────────────── */
.btn-primary-flat {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.83rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
}
.btn-primary-flat:hover { background: var(--accent-dk); color: #fff; }

/* ── LOGIN ─────────────────────────────────────────────────────────────── */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    padding: 20px;
}
.login-card {
    background: #fff;
    border-radius: 12px;
    padding: 36px 32px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 24px 60px rgba(0,0,0,.25);
}
.login-card .brand {
    text-align: center;
    margin-bottom: 24px;
}
.login-card .brand img { height: 56px; }
.login-card h1 {
    text-align: center;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin: 16px 0 4px;
}
.login-card .sub {
    text-align: center;
    font-size: 0.78rem;
    color: var(--ink-3);
    margin-bottom: 22px;
}

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
.ft-root {
    background: #0f172a;
    color: #94a3b8;
    font-size: 0.78rem;
    border-top: 1px solid #1e293b;
}
.ft-root .text-muted { color: #64748b !important; }

/* ── ALERTS ─────────────────────────────────────────────────────────────── */
.alert { border-radius: var(--radius-md); font-size: 0.85rem; border: none; }
