/* Основные стили */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.5rem;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}


/* Секция фильтров */

.filter-section {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    width: 90%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    /* Элементы располагаются в столбец */
    gap: 15px;
    /* Отступ между строками */
}


/* Строка фильтра */

.filter-row {
    display: flex;
    align-items: center;
    /* Выравнивание по центру по вертикали */
    gap: 10px;
    /* Отступ между меткой и полем */
}

.filter-row label {
    font-weight: 600;
    color: #34495e;
    width: 120px;
    /* Фиксированная ширина для меток */
    text-align: left;
    /* Выравнивание текста метки по правому краю */
}

.filter-row input,
.filter-row select {
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    transition: all 0.3s ease;
    flex: 1;
    /* Поле занимает оставшееся пространство */
    box-sizing: border-box;
    /* Учитываем padding и border в ширине */
    width: 90%;
    max-width: 100%;
}

.filter-row input:focus,
.filter-row select:focus {
    border-color: #3498db;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.5);
    outline: none;
}


/* Кнопка сброса фильтров */

.reset-button {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
    width: 100%;
    /* Кнопка занимает всю доступную ширину */
    margin-top: 10px;
    /* Отступ сверху для кнопки */
}

.reset-button:hover {
    background: #c0392b;
}


/* Список документов */

.document-list {
    list-style-type: none;
    padding: 0;
    width: 92%;
    max-width: 100%;
}

.document-list li {
    background: #ffffff;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.document-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.document-list li a {
    text-decoration: none;
    color: #3498db;
    font-weight: 600;
    display: block;
    transition: color 0.3s ease;
}

.document-list li a:hover {
    color: #2980b9;
}


/* Адаптивность */

@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-row label {
        width: auto;
        /* Убираем фиксированную ширину для меток */
        text-align: left;
        /* Выравнивание текста метки по левому краю */
    }
    .filter-row input,
    .filter-row select {
        width: 100%;
        /* На мобильных устройствах элементы занимают всю ширину */
    }
    .reset-button {
        width: 100%;
        /* Кнопка также занимает всю ширину */
    }
    h1 {
        font-size: 2rem;
    }
}


/* Анимации */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.document-list li {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

.document-list li:nth-child(1) {
    animation-delay: 0.1s;
}

.document-list li:nth-child(2) {
    animation-delay: 0.2s;
}

.document-list li:nth-child(3) {
    animation-delay: 0.3s;
}

.document-list li:nth-child(4) {
    animation-delay: 0.4s;
}


/* Стили для пагинации */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.pagination button {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.pagination button:hover {
    background: #2980b9;
}

.pagination button:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.pagination span {
    font-size: 16px;
    font-weight: 600;
    color: #34495e;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    /* Частицы будут на заднем плане */
    background: linear-gradient(135deg, #bbbabd, #c0cfe9);
    /* Градиентный фон */
}