/* === Улучшенные стили для навигации === */
.years-nav {
    position: sticky;
    top: 10px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 100;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 20px 0 40px;
}
.years-nav a {
    display: inline-block;
    padding: 10px 20px;
    background: #0a2c5e;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s;
    border: 2px solid #0a2c5e;
}
.years-nav a:hover {
    background: #c08a3b;
    border-color: #c08a3b;
    transform: translateY(-2px);
}
.years-nav a.current-year {
    background: #c08a3b;
    border-color: #c08a3b;
}

/* === Улучшенные стили для годов === */
.public-discussion-year {
    margin-bottom: 60px;
    scroll-margin-top: 100px; /* Компенсация sticky навигации */
}
.year-title {
    font-size: 32px;
    color: #006054;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid #006054;
    position: sticky;
    top: 80px;
    background: white;
    padding: 15px 0;
    z-index: 50;
}

/* === Индикатор текущего года === */
.year-indicator {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: #0a2c5e;
    color: white;
    padding: 15px 10px;
    border-radius: 8px;
    font-weight: bold;
    z-index: 1000;
}

/* === Счетчик уведомлений === */
.year-notification-count {
    font-size: 16px; /* Обновлено */
    color: #666;
    margin-left: 10px;
    background: #e3f2fd;
    padding: 4px 12px; /* Обновлено */
    border-radius: 20px; /* Обновлено */
    font-weight: 600; /* Обновлено */
}

/* Добавляем стиль для загрузки */
.loading-spinner {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #666;
}
.loading-spinner::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0a2c5e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Стили для поиска */
.search-container {
    max-width: 600px;
    margin: 0 auto 30px;
    position: relative;
}
.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #0a2c5e;
    border-radius: 25px;
    font-size: 16px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
}
.search-input:focus {
    outline: none;
    border-color: #c08a3b;
    box-shadow: 0 4px 15px rgba(192, 138, 59, 0.3);
}
.search-results-info {
    text-align: center;
    margin: 10px 0;
    color: #666;
    font-size: 14px;
}
.no-results {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 18px;
}

/* НОВЫЕ СТИЛИ: Кнопки поиска */
.load-all-search-btn, .clear-search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    padding: 5px 10px;
    background: #0a2c5e;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    display: none; /* Изначально скрыты */
}
.load-all-search-btn:hover, .clear-search-btn:hover {
    background: #c08a3b;
}
.clear-search-btn {
    right: 80px; /* Позиционирование рядом с load-all-btn */
    display: none; /* Изначально скрыта */
}


/* Улучшенные стили для уведомлений */
.discussion-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-left: 4px solid #0a2c5e;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}
.discussion-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    border-left-color: #c08a3b;
}
.discussion-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -4px;
    width: 4px;
    height: 100%;
    background: #0a2c5e;
    border-radius: 4px 0 0 4px;
    transition: all 0.3s ease;
}
.discussion-item:hover::before {
    background: #c08a3b;
}
.discussion-item h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    color: #0a2c5e;
    font-weight: 700;
}
.discussion-item p {
    margin: 0 0 15px;
}
.discussion-item strong {
    color: #1a202c;
}
.discussion-item a {
    color: #0a2c5e;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
}
.discussion-item a:hover {
    color: #c08a3b;
    border-bottom-color: #c08a3b;
}

/* Стили для подсветки результатов поиска */
.search-highlight {
    background-color: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

/* Индикатор загрузки */
/* Уже определен выше */

/* Год без результатов */
.year-no-results {
    opacity: 0.5;
}
.year-no-results .year-title {
    color: #999;
}

/* Уже определен выше */
.year-notification-count {
    font-size: 16px;
    color: #666;
    margin-left: 10px;
    background: #e3f2fd;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.year-loading {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.year-loading .year-title {
    margin-bottom: 0;
}

/* НОВЫЕ СТИЛИ: Кнопки поиска */
.load-all-search-btn, .clear-search-btn, .clear-field-btn { /* Добавлен .clear-field-btn */
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    padding: 5px 10px;
    background: #0a2c5e; /* Или другой цвет */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    display: none; /* Изначально скрыты */
    z-index: 10; /* Чтобы была поверх текста */
}
.load-all-search-btn:hover, .clear-search-btn:hover, .clear-field-btn:hover { /* Добавлен .clear-field-btn */
    background: #c08a3b;
}

.clear-search-btn {
    right: 80px; /* Позиционирование рядом с load-all-btn */
    display: none; /* Изначально скрыта */
}

.clear-field-btn { /* Стили для новой кнопки */
    right: 45px; /* Позиционирование между search input и clearSearchBtn */
    display: none; /* Изначально скрыта */
    background: #6c757d; /* Серый цвет для отличия */
    padding: 2px 6px; /* Меньше размер */
    font-size: 14px; /* Больше текст */
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.clear-field-btn:hover {
    background: #5a6268; /* Темнее при наведении */
}


#notificationsContainer {
    position: relative;
}