:root {
    --primary-blue: #237227;
    --primary-light: #cad6ff;
    --accent-green: #30cc30;
    --accent-red: #cc3030;
    --bg-light: #f0f2f5;
}

/* ================= ERROR PAGE LAYOUT ================= */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f2f5 0%, #ffffff 100%);
    padding: 20px;
    font-family: "Poppins", sans-serif;
}

.error-container {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 10px 40px rgba(13, 26, 74, 0.15);
    text-align: center;
    max-width: 600px;
    width: 100%;
    animation: fadeSlideUp 0.6s ease-out;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= ERROR ANIMATION ================= */
.error-animation {
    width: 350px;
    height: 350px;
    margin: 0 auto 30px;
}

.error-animation lottie-player {
    width: 100%;
    height: 100%;
}

/* ================= ERROR CONTENT ================= */
.error-code {
    font-size: 96px;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 20px;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(13, 26, 74, 0.1);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.error-title {
    font-size: 32px;
    font-weight: 700;
    color: #237227;
    margin-bottom: 15px;
}

.error-message {
    font-size: 16px;
    color: #666;
    margin-bottom: 35px;
    line-height: 1.6;
}

/* ================= ERROR BUTTONS ================= */
.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-error {
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 160px;
    justify-content: center;
}

.btn-error-primary {
    background-color: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(13, 26, 74, 0.2);
}

.btn-error-primary:hover {
    background-color: #237227;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 26, 74, 0.3);
    text-decoration: none;
}

.btn-error-secondary {
    background-color: white;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-error-secondary:hover {
    background-color: #237227;
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-error-danger {
    background-color: var(--accent-red);
    color: white;
    box-shadow: 0 4px 12px rgba(204, 48, 48, 0.2);
}

.btn-error-danger:hover {
    background-color: #237227;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(204, 48, 48, 0.3);
    text-decoration: none;
}

/* ================= ERROR DETAILS ================= */
.error-details {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    text-align: left;
}

.error-details h6 {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
}

.error-details p {
    color: #666;
    font-size: 13px;
    margin-bottom: 5px;
    font-family: 'Courier New', monospace;
}

/* ================= DECORATIVE ELEMENTS ================= */
.error-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.error-decoration::before,
.error-decoration::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(13, 26, 74, 0.05) 0%, rgba(202, 214, 255, 0.1) 100%);
}

.error-decoration::before {
    top: -150px;
    right: -150px;
}

.error-decoration::after {
    bottom: -150px;
    left: -150px;
}

/* ================= RESPONSIVE DESIGN ================= */

/* Tablet (≤992px) */
@media screen and (max-width: 992px) {
    .error-container {
        padding: 50px 35px;
    }

    .error-code {
        font-size: 80px;
    }

    .error-title {
        font-size: 28px;
    }

    .error-animation {
        width: 280px;
        height: 280px;
    }
}

/* Mobile Landscape (≤768px) */
@media screen and (max-width: 768px) {
    .error-container {
        padding: 40px 30px;
    }

    .error-code {
        font-size: 72px;
    }

    .error-title {
        font-size: 24px;
    }

    .error-message {
        font-size: 15px;
    }

    .error-animation {
        width: 240px;
        height: 240px;
        margin-bottom: 25px;
    }

    .btn-error {
        padding: 12px 28px;
        font-size: 14px;
        min-width: 140px;
    }

    .error-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-error {
        width: 100%;
    }
}

/* Mobile Portrait (≤576px) */
@media screen and (max-width: 576px) {
    .error-page {
        padding: 15px;
    }

    .error-container {
        padding: 35px 25px;
        border-radius: 15px;
    }

    .error-code {
        font-size: 64px;
    }

    .error-title {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .error-message {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .error-animation {
        width: 220px;
        height: 220px;
        margin-bottom: 20px;
    }

    .btn-error {
        padding: 11px 24px;
        font-size: 13px;
    }

    .error-details {
        padding: 15px;
        margin-top: 25px;
    }

    .error-details h6 {
        font-size: 13px;
    }

    .error-details p {
        font-size: 12px;
    }
}

/* Mobile Extra Small (≤375px) */
@media screen and (max-width: 375px) {
    .error-container {
        padding: 30px 20px;
    }

    .error-code {
        font-size: 56px;
    }

    .error-title {
        font-size: 20px;
    }

    .error-animation {
        width: 200px;
        height: 200px;
    }

    .btn-error {
        padding: 10px 20px;
        font-size: 12px;
        gap: 6px;
    }
}
