﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
}

.error-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px;
}

.error-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 60px 48px;
    max-width: 560px;
    width: 100%;
    text-align: center;
}

.error-code {
    font-size: 96px;
    font-weight: 800;
    color: #e53e3e;
    line-height: 1;
    letter-spacing: -4px;
    margin-bottom: 16px;
}

/* Specific color per code */
.error-code-404 {
    color: #e53e3e;
}

.error-code-403 {
    color: #dd6b20;
}

.error-code-401 {
    color: #d69e2e;
}

.error-code-500 {
    color: #805ad5;
}

.error-title {
    font-size: 24px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 16px;
}

.error-divider {
    width: 48px;
    height: 4px;
    background: #e53e3e;
    border-radius: 2px;
    margin: 0 auto 24px;
}

.error-description {
    font-size: 15px;
    color: #718096;
    line-height: 1.6;
    margin-bottom: 32px;
}

.error-detail {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: #c53030;
    margin-bottom: 32px;
    text-align: left;
    word-break: break-word;
}

.error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-back,
.btn-home {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-back {
    background: #edf2f7;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

    .btn-back:hover {
        background: #e2e8f0;
        color: #2d3748;
    }

.btn-home {
    background: #e53e3e;
    color: #ffffff;
    border: 1px solid transparent;
}

    .btn-home:hover {
        background: #c53030;
    }

@media (max-width: 480px) {
    .error-container {
        padding: 40px 24px;
    }

    .error-code {
        font-size: 72px;
    }
}

