/* Стили для списка юридических документов */
.docs-list {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 10px;
}

.docs-list-card {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: start;
    align-items: center;
    gap: 30px;
    cursor: pointer;
    background: #ffffff;
    color: #383a3f;
    box-shadow: 0 1px 10px #a3a3a3;
    border-radius: 10px;
    padding: 10px;
}

body.dark-theme .docs-list-card {
    background-color: #383A3F;
    box-shadow: 0 1px 10px #fff;
    color: #fff;
}

.docs-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.docs-info h3 {
    margin: 0;
    font-size: 25px;
}

.docs-info div {
    margin: 5px 0;
    font-size: 18px;

}

/* Основной контейнер для пагинации */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    font-family: Arial, sans-serif;
}

/* Внутренний контейнер для ссылок */
.step-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Стили для ссылок пагинации */
.pagination a {
    color: #228B22; /* Основной цвет */
    padding: 8px 12px;
    border: 2px solid #228B22;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.95em;
}

body.dark-theme .pagination a {
    color: #fff;
}

/* Эффект при наведении */
.pagination a:hover {
    background-color: #228B22;
    color: white;
}

/* Текущая страница */
.current-page {
    color: #333;
    font-weight: bold;
    font-size: 1em;
    padding: 8px 12px;
    background-color: #fff;
    border-radius: 5px;
}

body.dark-theme .current-page {
    background-color: #f5f5f5;
    color: #383A3F;
}

/* Декоративные элементы для первой и последней ссылки */
.pagination a:first-of-type,
.pagination a:last-of-type {
    font-size: 1em;
    padding: 8px 15px;
}

/* Дополнительные декоративные эффекты */
.pagination a:active {
    transform: scale(0.95); /* Легкий эффект уменьшения при клике */
}

.pagination a:focus {
    outline: 3px solid #E0F2E9; /* Акцент на фокусе для улучшения доступности */
}

/* Равнение правой части списка заявок */
.right-corner {
    margin-left: auto;
}

.docs-list-title {
    margin: -40px 0px 20px 0px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .docs-list {
        margin-top: 0px;
        justify-content: center;
    }

    .docs-list-card {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: start;
        align-items: center;
        gap: 10px;
        cursor: pointer;
        background: #ffffff;
        color: #383a3f;
        box-shadow: 0 1px 10px #a3a3a3;
        border-radius: 10px;
        padding: 10px;
    }

    .right-corner {
        margin-left: 0;
    }

    .docs-info.right-corner {
        display: flex;
        flex-direction: row;
        gap: 5px;
        margin-top: -10px;
    }

    .pagination span {
        display: flex;
        flex-direction: column;
        justify-content: start;
    }

    .docs-list-title {
         margin: -100px 0px 20px 0px;
    }
}