/* CSS cho trang lỗi */
:root {
    --error-primary: var(--accent-color, #ff7700);
    --error-primary-dark: var(--link-hover, #e65c00);
    --error-secondary: #4a89dc;
    --error-text: #333;
    --error-text-light: #666;
    --error-bg: #f5f7fa;
    --error-border: #e6e9ed;
}

[data-theme="dark"] {
    --error-text: #f0f0f0;
    --error-text-light: #aaa;
    --error-bg: #1a1a1a;
    --error-border: #444;
}

.error-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--card-shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.error-image {
    max-width: 300px;
    margin-bottom: 20px;
}

.error-image img {
    width: 100%;
    height: auto;
}

.error-content h1 {
    font-size: 80px;
    font-weight: 800;
    color: var(--error-primary);
    margin: 0;
    line-height: 1;
    text-shadow: 3px 3px 0 var(--error-primary-dark);
}

.error-content h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-color);
    margin: 10px 0 20px;
}

.error-content p {
    font-size: 18px;
    color: var(--secondary-text);
    margin-bottom: 30px;
    max-width: 600px;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 119, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 119, 0, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-primary i, .btn-secondary i {
    margin-right: 8px;
}

.error-suggestions {
    margin-top: 20px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
    max-width: 600px;
}

[data-theme="dark"] .error-suggestions {
    background-color: rgba(255, 255, 255, 0.05);
}

.error-suggestions h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
}

.error-suggestions ul {
    text-align: left;
    padding-left: 20px;
}

.error-suggestions li {
    margin-bottom: 10px;
    color: var(--secondary-text);
}

.error-suggestions a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.error-suggestions a:hover {
    color: var(--accent-color-dark);
    text-decoration: underline;
}

/* Error details */
.error-details {
    margin: 20px 0;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    text-align: left;
    max-width: 600px;
}

[data-theme="dark"] .error-details {
    background-color: rgba(255, 255, 255, 0.05);
}

.error-details h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

.error-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-details li {
    margin-bottom: 8px;
    color: var(--secondary-text);
    font-size: 14px;
    word-break: break-all;
}

.error-details strong {
    color: var(--accent-color);
    margin-right: 5px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .error-container {
        padding: 20px;
        margin: 20px auto;
    }

    .error-content h1 {
        font-size: 60px;
    }

    .error-content h2 {
        font-size: 22px;
    }

    .error-content p {
        font-size: 16px;
    }

    .error-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .error-content h1 {
        font-size: 50px;
    }

    .error-content h2 {
        font-size: 18px;
    }

    .error-image {
        max-width: 200px;
    }
}
