/* 1. AJAX Завантаження (Індикатор по центру екрана) */
#loading-layer {
    display: none;
    font-family: 'e-Ukraine', sans-serif;
    background: #122945; /* Замінено на фірмовий синій */
    color: #ffffff;
    padding: 16px 28px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 20px 25px -5px rgba(18, 41, 69, 0.15);
    z-index: 99999;
}

/* 2. Спливаючі вікна (DLE Modal Alerts / Інформаційні повідомлення) */
.binner {
    padding: 24px;
    background: #ffffff;
}

.clr {
    clear: both;
}

/* Системні вікна DLE (наприклад, помилки або успішна відправка) */
div[id^="dle-alert"] {
    background: #ffffff !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08) !important;
    font-family: 'e-Ukraine', sans-serif !important;
}

div[id^="dle-alert"] .ui-dialog-titlebar {
    background: #F8FAFC !important;
    border-bottom: 1px solid #E2E8F0 !important;
    padding: 14px 20px !important;
    font-weight: 700 !important;
    color: #122945 !important; /* Назва вікна тепер синя */
}

/* 3. Опитування ({poll} на сайті) */
.dlepolls {
    font-family: 'e-Ukraine', sans-serif;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
}

.dlepolls .title {
    font-size: 18px;
    font-weight: 800;
    color: #122945; /* Заголовок опитування */
    margin-bottom: 16px;
}

/* Список варіантів відповідей */
.dlepolls ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dlepolls li {
    font-size: 15px;
    color: #0F172A;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dlepolls input[type="radio"], 
.dlepolls input[type="checkbox"] {
    accent-color: #122945; /* Робить прапорці синіми за замовчуванням */
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Графік результатів голосування */
.dlepolls .pollprogress {
    background: #E2E8F0;
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
    margin: 6px 0 12px 0;
}

.dlepolls .pollprogress > div {
    background: #122945 !important; /* Синя смуга прогресу Дії */
    height: 100%;
    border-radius: 4px;
}

/* Кнопки в опитуваннях */
.dlepolls .poll-buttons {
    display: flex;
    flex-wrap: wrap; /* Захист для мобільних екранів */
    gap: 10px;
}

.dlepolls button,
.dlepolls .button {
    background: #122945; /* Синя кнопка */
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.dlepolls button:hover {
    background: #1e3d66; /* Світліший синій ховер */
}

.dlepolls button:active {
    transform: scale(0.98);
}

/* Друга кнопка (наприклад, "Результати") */
.dlepolls button.sec-btn,
.dlepolls .button.sec-btn {
    background: #ffffff;
    color: #122945; /* Текст синій */
    border: 1px solid #CBD5E1;
}

.dlepolls button.sec-btn:hover {
    background: #F1F5F9;
    color: #122945;
}

/* 4. Системні бляшки та підказки (Помилки авторизації, тощо) */
.berror {
    background: #FFF1F2;
    border: 1px solid #FFE4E6;
    color: #9F1239;
    padding: 16px;
    border-radius: 12px;
    margin: 16px 0;
    font-size: 14.5px;
    line-height: 1.5;
}

/* 5. Навігація по сторінках ({navigation} у списках новин) */
.bottom-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Захист від злому на мобільних */
    gap: 6px;
    margin: 32px 0;
    font-family: 'e-Ukraine', sans-serif;
}

.bottom-nav a, 
.bottom-nav span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 6px;
    font-size: 14px;
    font-weight: 700;
    color: #475569; /* М'який колір для неактивних */
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    background: #ffffff;
    transition: all 0.2s ease;
}

/* Активна (поточна) сторінка — тепер синя, як і основна пагінація */
.bottom-nav span.nav-current,
.bottom-nav span.current {
    background: #122945 !important;
    color: #ffffff !important;
    border-color: #122945 !important;
}

.bottom-nav a:hover {
    background: #F1F5F9;
    border-color: #CBD5E1;
    color: #122945;
}

/* 6. Календар DLE (якщо використовується) */
#calendar-layer {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 12px;
}

.tablecalendar {
    width: 100%;
    border-collapse: collapse;
}

.tablecalendar th {
    font-size: 12px;
    font-weight: 700;
    color: #718096;
    padding: 6px;
    text-transform: uppercase;
}

.tablecalendar td {
    padding: 6px;
    text-align: center;
    font-size: 13px;
}

.tablecalendar td a {
    color: #122945; /* Сині дати з посиланнями */
    font-weight: 700;
    text-decoration: underline;
}

/* 7. Теги для BB-кодів (Редактор коментарів, цитати) */
.dle-quote {
    background: #F8FAFC;
    border-left: 4px solid #122945; /* Синя лінія замість чорної */
    padding: 16px;
    margin: 16px 0;
    font-style: italic;
    color: #334155;
    border-radius: 0 12px 12px 0;
}

.dle-hide {
    background: #F1F5F9;
    border: 1px dashed #CBD5E1;
    padding: 12px;
    border-radius: 8px;
    margin: 12px 0;
}

/* Невеликі адаптивні фікси для мобільних пристроїв */
@media (max-width: 576px) {
    .dlepolls {
        padding: 16px;
    }
    .dlepolls .title {
        font-size: 16px;
    }
    .bottom-nav a, 
    .bottom-nav span {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}
/* Контейнер швидкого пошуку DLE (генерується системою автоматично) */
#dle-fast-result {
    background: #ffffff !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
    padding: 8px 0 0 0 !important;
    margin-top: 4px !important;
    z-index: 9999 !important;
    max-width: 500px; /* Або 100% залежно від ширини форми */
    font-family: 'e-Ukraine', sans-serif !important;
}

/* Обгортка результатів */
.diia-fast-search-wrapper {
    display: flex;
    flex-direction: column;
}

/* Рядок результату (кнопка) */
.diia-fast-search-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid #F1F5F9;
    transition: background-color 0.15s ease-in-out;
    text-decoration: none !important;
}

.diia-fast-search-item:hover {
    background-color: #F8FAFC;
    text-decoration: none !important;
}

.diia-fast-search-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-right: 15px;
}

/* Назва знайденої новини/документа */
.diia-fast-search-title {
    font-size: 14px;
    font-weight: 500;
    color: #111111;
    line-height: 1.4;
}
.diia-fast-search-item:hover .diia-fast-search-title {
    color: #122945; /* Стає глибоким синім при наведенні */
}

/* Категорія/Розділ документа */
.diia-fast-search-category {
    font-size: 11px;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Стрілочка переходу */
.diia-fast-search-arrow {
    color: #94A3B8;
    display: flex;
    align-items: center;
    transition: transform 0.15s ease, color 0.15s ease;
}
.diia-fast-search-item:hover .diia-fast-search-arrow {
    color: #122945;
    transform: translateX(3px);
}

/* Футер вікна з кнопкою "Переглянути всі" */
.diia-fast-search-footer {
    background-color: #F8FAFC;
    padding: 12px 20px;
    border-radius: 0 0 12px 12px;
    text-align: center;
    border-top: 1px solid #E2E8F0;
}

.diia-fast-search-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #122945;
    text-decoration: none !important;
    transition: color 0.15s ease;
}

.diia-fast-search-all-link:hover {
    color: #007680; /* Державна бірюза при наведенні */
}

.diia-fast-search-all-link svg {
    transition: transform 0.15s ease;
}
.diia-fast-search-all-link:hover svg {
    transform: translateX(4px);
}