/* Общие стили */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #333; /* Цвет текста по умолчанию для всей страницы */
}

/* Навигационная панель */
/* ВРЕМЕННЫЙ ДИАГНОСТИЧЕСКИЙ CSS */
.navbar,
.navbar * {
    /* Сброс всех возможных конфликтующих стилей */
    all: initial !important; 
    color: #fff !important;
    font-family: Arial, sans-serif !important;
}

/* Затем переопределите конкретные элементы */
.navbar {
    background: #343a40 !important;
    padding: 1rem 0 !important;
    display: flex !important;
    position: relative !important;
    z-index: 1000 !important;
}

.navbar-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.navbar-collapse {
    justify-content: center !important;
}

.navbar-nav {
    margin-left: auto !important;
    display: flex !important;
    gap: 1.5rem !important;
}

.nav-link {
    padding: 0.5rem 1rem !important;
    border-radius: 4px !important;
    transition: all 0.3s !important;
    background-color: transparent !important;
}

.nav-link:hover {
    background: rgba(255,255,255,0.15) !important;
    transform: translateY(-2px) !important;
}

/* Ядерный вариант для текста */
.navbar *:not(button):not(path):not(svg) {
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
}

/* Основной контейнер */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 25px;
    background: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    flex: 1;
    border-radius: 8px;
    color: #333; /* Явное указание цвета текста */
}

/* Стили для контента */
main {
    flex: 1;
    padding: 20px 0;
}

h1, h2, h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

/* Стили для уведомлений */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid transparent;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* Дополнительные элементы */
.document {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

video {
    max-width: 100%;
    border-radius: 8px;
    margin: 15px 0;
}

/* Футер */
.footer {
    background-color: #343a40;
    color: white;
    padding: 1rem;
    text-align: center;
    margin-top: auto;
}