/* ═══════════════════════════════════════════════════════════════════════════
   MAYTRUST MICROLENDING — HTTP Error Pages Stylesheet & Dark Mode
   ═══════════════════════════════════════════════════════════════════════════ */

.error-page-root {
    min-height: 100vh;
    background: #F8FAFC;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    font-family: inherit;
}
.error-card {
    background: #ffffff;
    border: 1px solid #EEF2F6;
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    max-width: 520px;
    width: 100%;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.error-code-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}
.badge-amber  { background: #FEF3C7; color: #D97706; }
.badge-red    { background: #FEF2F2; color: #EF4444; }
.badge-indigo { background: #EEF2FF; color: #6366F1; }
.badge-teal   { background: #F0FDFA; color: #0D9488; }

.error-icon-box {
    width: 84px;
    height: 84px;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
}
.icon-box-amber  { background: #FFFBEB; color: #D97706; box-shadow: 0 8px 20px rgba(217, 119, 6, 0.12); }
.icon-box-red    { background: #FEF2F2; color: #EF4444; box-shadow: 0 8px 20px rgba(239, 68, 68, 0.12); }
.icon-box-indigo { background: #EEF2FF; color: #6366F1; box-shadow: 0 8px 20px rgba(99, 102, 241, 0.12); }
.icon-box-teal   { background: #F0FDFA; color: #0D9488; box-shadow: 0 8px 20px rgba(13, 148, 136, 0.12); }

.error-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 0.65rem;
    letter-spacing: -0.02em;
}
.error-desc {
    font-size: 0.92rem;
    color: #64748B;
    margin-bottom: 2rem;
    line-height: 1.6;
}
.error-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.btn-error-primary {
    background: #0D9488;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.75rem 1.6rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}
.btn-error-primary:hover {
    background: #0F766E;
    transform: translateY(-2px);
}
.btn-error-secondary {
    background: #F1F5F9;
    color: #334155 !important;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.75rem 1.6rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #E2E8F0;
}
.btn-error-secondary:hover {
    background: #E2E8F0;
    transform: translateY(-2px);
}

/* ── Error Pages Dark Mode Overrides ───────────────────────────────────── */
body.dark-mode .error-page-root {
    background: #0F172A !important;
}
body.dark-mode .error-card {
    background: #1E293B !important;
    border-color: #334155 !important;
    color: #F8FAFC !important;
}
body.dark-mode .error-title {
    color: #F8FAFC !important;
}
body.dark-mode .error-desc {
    color: #94A3B8 !important;
}
body.dark-mode .btn-error-secondary {
    background: #334155 !important;
    border-color: #475569 !important;
    color: #E2E8F0 !important;
}
