/* --- Error Pages: Maintenance + 404 (Admin System) --- */

body.error-page {
    flex-direction: column;
    background: var(--secondary);
    overflow: hidden;
    align-items: center;
    justify-content: center;
    height: 100vh;
    height: 100svh;
    max-height: 100svh;
}

/* ─────────────────────────────────────────
   Container central
───────────────────────────────────────── */
.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
    width: 100%;
    max-width: 560px;
    gap: 0;
}

/* Logo */
.error-logo {
    height: 48px;
    width: auto;
    margin-bottom: 56px;
    align-self: center;
}

/* Ícone principal */
.error-icon {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    background: rgba(0, 175, 239, 0.12);
    border: 1px solid rgba(0, 175, 239, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 32px;
}

/* Número 404 */
.error-code {
    font-size: 96px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -4px;
}

/* Título */
.error-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 12px;
}

/* Descrição */
.error-description {
    font-size: 14px;
    font-weight: 300;
    color: var(--text-grey);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 400px;
}

/* Barra de progresso (manutenção) */
.error-progress {
    width: 100%;
    max-width: 320px;
    margin-bottom: 40px;
}

.error-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-grey-light);
    margin-bottom: 8px;
}

.error-progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.error-progress-fill {
    height: 100%;
    width: 68%;
    background: var(--primary);
    border-radius: 4px;
    animation: progress-pulse 2.5s ease-in-out infinite;
}

@keyframes progress-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}

/* Ícone com animação (manutenção) */
@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.error-icon.spinning i {
    animation: spin-slow 6s linear infinite;
}

/* Botões */
.error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-error-primary {
    background: var(--primary);
    color: var(--text-white);
    border: none;
    border-radius: 8px;
    padding: 11px 24px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Nexa', 'Nunito', sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
}

.btn-error-primary:hover  { background: var(--primary-dark); }
.btn-error-primary:active { transform: scale(0.98); }

.btn-error-ghost {
    background: transparent;
    color: var(--text-grey);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 11px 24px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Nexa', 'Nunito', sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}

.btn-error-ghost:hover {
    border-color: rgba(255, 255, 255, 0.28);
    color: var(--text-white);
}

/* Divisor decorativo */
.error-divider {
    width: 40px;
    height: 2px;
    background: rgba(0, 175, 239, 0.4);
    border-radius: 2px;
    margin: 0 auto 32px;
}

/* Rodapé */
.error-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-grey-light);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.error-footer a {
    color: var(--text-grey-light);
    text-decoration: none;
    transition: color 0.15s;
}

.error-footer a:hover { color: var(--primary); }

.error-footer-links {
    display: flex;
    gap: 20px;
}

/* Barra decorativa superior */
.error-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
}

/* ─────────────────────────────────────────
   RESPONSIVO
───────────────────────────────────────── */
@media (max-width: 480px) {
    .error-logo    { height: 36px; margin-bottom: 40px; }
    .error-code    { font-size: 72px; }
    .error-icon    { width: 72px; height: 72px; font-size: 28px; }
    .error-title   { font-size: 18px; }
    .error-footer  { flex-direction: column; gap: 8px; text-align: center; padding: 16px; }
    .error-actions { flex-direction: column; width: 100%; }
    .btn-error-primary,
    .btn-error-ghost { justify-content: center; }
}
