/* ==========================================================================
   ERROR PAGES (403 / 404 / 500) — standalone, no AdminLTE
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
}

.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap-reverse;
    gap: var(--space-6);
    min-height: 100vh;
    padding: var(--space-6) var(--space-4);
}

.error-illustration img {
    display: block;
    max-width: min(400px, 80vw);
    height: auto;
}

.theme-dark-only { display: none !important; }
[data-theme="dark"] .theme-dark-only { display: block !important; }
[data-theme="dark"] .theme-light-only { display: none !important; }

.error-content {
    max-width: 440px;
}

.error-code {
    margin-bottom: var(--space-2);
    font-size: var(--fs-2xl);
    line-height: var(--lh-2xl);
    font-weight: var(--fw-bold);
    color: var(--primary);
}

.error-title {
    margin: 0 0 var(--space-2);
    font-size: var(--fs-xl);
    line-height: var(--lh-xl);
    font-weight: var(--fw-bold);
    color: var(--text);
}

.error-text {
    margin: 0 0 var(--space-5);
    font-size: var(--fs-base);
    line-height: var(--lh-base);
    color: var(--text-secondary);
}

.error-home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--control-h);
    padding: 0 var(--space-4);
    border-radius: var(--radius-md);
    background: var(--primary-solid);
    color: var(--on-primary);
    font-weight: var(--fw-semibold);
    text-decoration: none;
}

.error-home-btn:hover,
.error-home-btn:focus {
    background: var(--primary-solid-hover);
    color: var(--on-primary);
}

.error-home-btn:focus-visible {
    box-shadow: var(--focus-ring);
    outline: 0;
}

@media (max-width: 767px) {
    .error-content {
        text-align: center;
    }
}
