/* ==========================================================
   404 PAGE
   Portal Internal RS Petukangan
========================================================== */
:root {
    --portal-primary: #22bab0;
    --portal-primary-dark: #14998f;
    --portal-secondary: #a6d65e;
    --portal-bg: #f5f7fb;
    --portal-text: #1f2937;
    --portal-muted: #7b8794;
    --portal-card: #ffffff;
    --portal-border: rgba(0, 0, 0, .06);
}
* {
    box-sizing: border-box;
}
html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
}
body {
    font-family: "Poppins", sans-serif;
    background: var(--portal-bg);
    color: var(--portal-text);
}
/* ==========================================================
   ERROR PAGE
========================================================== */
.error-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 40px 20px;
}

/* ==========================================================
   BACKGROUND BLOBS
========================================================== */
.error-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
    z-index: 0;
}
.blob-one {
    width: 420px;
    height: 420px;
    top: -180px;
    right: -120px;
    background: radial-gradient(circle, rgba(34, 186, 176, .18), transparent 70%);
}
.blob-two {
    width: 350px;
    height: 350px;
    bottom: -160px;
    left: -120px;
    background: radial-gradient(circle, rgba(166, 214, 94, .20), transparent 70%);
}
/* ==========================================================
   WRAPPER
========================================================== */
.error-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 850px;
    text-align: center;
}

/* ==========================================================
   LOGO
========================================================== */
.error-logo {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 45px;
}
.error-logo-icon {
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: #f5f7fb;
    backdrop-filter:blur(12px);
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    font-size: 23px;
}
.error-logo-icon img{
    width:62px;
    height:62px;
}
.error-logo-text {
    text-align: left;
}
.error-logo-text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .3px;
}
.error-logo-text small {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: var(--portal-muted);
}

/* ==========================================================
   404 NUMBER
========================================================== */
.error-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--portal-primary);
}
.error-number > span {
    font-size: clamp(100px, 18vw, 180px);
    line-height: .85;
    font-weight: 800;
    letter-spacing: -10px;
}
.error-zero {
    width: clamp(100px, 14vw, 150px);
    height: clamp(100px, 14vw, 150px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--portal-primary), var(--portal-primary-dark));
    color: #ffffff;
    box-shadow: 0 20px 45px rgba(34, 186, 176, .25);
}
.error-zero i {
    font-size: clamp(45px, 7vw, 75px);
    animation: compass-spin 5s linear infinite;
}
@keyframes compass-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================
   TITLE
========================================================== */
.error-content h1 {
    margin: 0;
    font-size: clamp(24px, 4vw, 34px);
    font-weight: 700;
    letter-spacing: -.5px;
}
.error-description {
    max-width: 580px;
    margin: 15px auto 0;
    color: var(--portal-muted);
    font-size: 14px;
    line-height: 1.8;
}

/* ==========================================================
   ACTION BUTTON
========================================================== */
.error-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
}
.error-actions .btn {
    min-height: 48px;
    padding: 0 20px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 600;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
/* PRIMARY */
.btn-home {
    color: #ffffff;
    border: none;
    background: linear-gradient(135deg, var(--portal-primary), var(--portal-primary-dark));
    box-shadow: 0 10px 25px rgba(34, 186, 176, .20);
}
.btn-home:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(34, 186, 176, .28);
}

/* SECONDARY */
.btn-back {
    color: var(--portal-text);
    background: var(--portal-card);
    border: 1px solid var(--portal-border);
}
.btn-back:hover {
    color: var(--portal-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
}

/* ==========================================================
   HELPER
========================================================== */
.error-helper {
    max-width: 580px;
    margin: 25px auto 0;
    padding: 13px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 13px;
    background: rgba(34, 186, 176, .06);
    color: var(--portal-muted);
    font-size: 11px;
}
.error-helper i {
    color: var(--portal-primary);
    font-size: 15px;
    flex-shrink: 0;
}

/* ==========================================================
   FOOTER
========================================================== */
.error-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 45px;
    color: #a0a8b3;
    font-size: 11px;
}
.footer-dot {
    color: var(--portal-primary);
}

/* ==========================================================
   MOBILE
========================================================== */
@media (max-width: 576px) {
    .error-page {
        padding: 25px 18px;
    }
    .error-logo {
        margin-bottom: 35px;
    }
    .error-logo-icon {
        width: 45px;
        height: 45px;
        border-radius: 13px;
        font-size: 20px;
    }
    .error-number {
        gap: 7px;
    }
    .error-number > span {
        font-size: 100px;
        letter-spacing: -7px;
    }
    .error-zero {
        width: 85px;
        height: 85px;
    }
    .error-zero i {
        font-size: 40px;
    }
    .error-content h1 {
        font-size: 23px;
    }
    .error-description {
        font-size: 12px;
        line-height: 1.7;
    }
    .error-actions {
        flex-direction: column;
        width: 100%;
    }
    .error-actions .btn {
        width: 100%;
    }
    .error-helper {
        text-align: left;
        justify-content: flex-start;
        line-height: 1.5;
    }
    .error-footer {
        margin-top: 35px;
    }
}

/* ==========================================================
   DARK MODE
========================================================== */
[data-bs-theme="dark"] {
    --portal-bg: #101817;
    --portal-text: #edf7f5;
    --portal-muted: #9caeab;
    --portal-card: #17211f;
    --portal-border: rgba(255, 255, 255, .08);
}
[data-bs-theme="dark"] .error-logo-icon{
    background:rgba(255,255,255,.15);
    backdrop-filter:blur(12px);
}
[data-bs-theme="dark"] .error-page {
    background: radial-gradient(circle at 20% 20%, rgba(34, 186, 176, .08), transparent 35%), var(--portal-bg);
}
[data-bs-theme="dark"] .btn-back {
    background: var(--portal-card);
    color: var(--portal-text);
    border-color: rgba(255, 255, 255, .08);
}
[data-bs-theme="dark"] .error-helper {
    background: rgba(34, 186, 176, .08);
}