/* Контейнер страницы */
.error-page-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh; /* Занимает почти всю высоту экрана */
    padding: 20px;
    text-align: center;
    background: radial-gradient(circle at center, rgba(106, 90, 255, 0.05) 0%, transparent 70%);
}

.error-content {
    max-width: 600px;
    padding: 40px;
    background: var(--card-bg); /* Цвет карточки из темы */
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.5s ease-out;
}

/* Иконка (Призрак) */
.error-icon-wrapper {
    position: relative;
    margin-bottom: 30px;
    display: inline-block;
}

.error-icon {
    font-size: 8rem;
    background: linear-gradient(135deg, var(--primary-color), #a69aff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 5px 15px rgba(106, 90, 255, 0.4));
    animation: float 3s ease-in-out infinite;
}

.error-shadow {
    width: 80px;
    height: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    margin: 10px auto 0;
    animation: shadowScale 3s ease-in-out infinite;
    opacity: 0.5;
}

/* Типографика */
.error-title {
    font-family: 'Minecraft', sans-serif; /* Если используется этот шрифт */
    font-size: 4rem;
    margin: 0;
    line-height: 1;
    color: var(--text-color);
    text-shadow: 2px 2px 0px var(--sidebar-bg);
}

.error-subtitle {
    font-size: 1.5rem;
    margin: 10px 0 20px;
    color: var(--text-light); /* Или text-color */
    font-weight: 600;
}

.error-description {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Кнопки */
.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-error {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary, linear-gradient(135deg, #6a5aff, #4e3fd5));
    color: white;
    box-shadow: 0 4px 15px rgba(106, 90, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106, 90, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-muted);
}

/* Анимации */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes shadowScale {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(0.8); opacity: 0.3; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Адаптивность */
@media (max-width: 480px) {
    .error-title { font-size: 3rem; }
    .error-icon { font-size: 6rem; }
    .error-actions { flex-direction: column; width: 100%; }
    .btn-error { width: 100%; justify-content: center; }
}