/* Стили уведомлений и ошибок */
.notification {
    background-color: #4CAF50;
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-danger {
    background-color: #f44336;
    color: white;
}

/* Стили для страницы ошибок */
.error-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 56px - 3rem); /* Вычитаем высоту навбара и отступы main */
}

.error-container {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.error-icon {
    color: #e74c3c;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.error-message {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem; /* Добавлено для соответствия оригинальному размеру */
}
.redirect-message {
    color: #7f8c8d;
    margin-bottom: 1rem;
}
.redirect-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* Темная тема для ошибок и уведомлений */
[data-bs-theme="dark"] .notification {
    background-color: #388e3c;
}

[data-bs-theme="dark"] .alert-danger {
    background-color: #d32f2f;
}

[data-bs-theme="dark"] .error-container {
    background-color: #2a2a40;
}

[data-bs-theme="dark"] .error-message,
[data-bs-theme="dark"] .redirect-message {
    color: #e0e0e0;
}

[data-bs-theme="dark"] .redirect-button {
    background-color: #2980b9;
}

[data-bs-theme="dark"] .redirect-button:hover {
    background-color: #3498db;
}