body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
}

.wrapper {
    max-width: auto;
    margin: 0 auto;
    padding: 0px 20px 20px 20px;
}

/* Стили для меню */
.menu {
    background-color: #0b679e;
    display: flex;
    justify-content: right;
    align-items: center;
    padding: 10px 0;
}

.menu a {
    color: white !important;
    text-decoration: none !important;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.menu a:hover {
    background-color: #09517d;
}

/*Zaharov*/

.large-square {
    display: block;
}

.burger-menu {
    display: none;
    background-color: #0b679e;
    height: 50px;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    z-index: 9999999;
}

.burger-button {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color:white;

}

.burger-content {
    display: none;
    flex-direction: column;
    background-color: #f9f9f9;
    position: absolute;
    top: 50px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #0b679e;
}

.burger-content a {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-decoration: none;
    color: #f5f5f5;
}

.burger-content a:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .menu {
        display: none;
    }

    .wrapper {
        padding: 0;
    }

    .burger-menu {
        display: flex;
    }

    .burger-button {
        display: block;
    }
}

/*Zaharov*/

.active {
    background-color: #09517d;
}

/* Стили для фильтров */
.filter{
    max-width: 1480px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    padding: 10px;
}

.filter *{
    margin-top: 10px;
}

.filter select, .search input {
    width: 160px;
    padding: 10px;
    margin-right: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.checkbox-div {
    display: inline-block;
}

.checkbox-div>.checkbox-d>input{
    width: 30px;
    height: 30px;
}

.checkbox-d {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    top: 10px;
}

.search{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.search input{
    width: 100%;
}

.filter button,.search button {
    padding: 10px 20px;
    background-color: #09517d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease; /* добавлен переход */
}

.filter button:hover {
    background-color: #0b679e;
}

.count button{
    background-color: #0b679e;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding:5px 10px;
}

.buyButton, .deleteButton {
    padding: 10px 20px;
    background-color: #0b679e;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-wrap: nowrap;
}

.buyButton:hover, deleteButton:hover{
    background-color: #0b679e;
}

.catalog table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.catalog th, .catalog td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

.count-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.catalog td:nth-child(1){
    text-align: left;
}

.catalog th {
        background-color: #0b679e;
    color: white;
}

.catalog td {
    background-color: #f9f9f9;
}


* {
    font-size: 16px;
}

/* Стили для мобильных устройств */
@media only screen and (max-width: 600px) {
    .catalog th, .catalog td {
        font-size: 14px;
    }

    .catalog td.count {
        font-size: 12px;
    }

    .catalog td.count input {
        width: 15px;
    }

    .menu a{
        font-size: 12px;
    }
}

@media only screen and (max-width: 1290px) {
    .table-wrapper {
        overflow-x: auto; /* Разрешаем горизонтальный скролл */
        max-width: 100%; /* Ограничиваем максимальную ширину обертки, чтобы скролл появлялся только при необходимости */
    }

    /* Необязательно, но вы можете также ограничить высоту, чтобы появлялся вертикальный скролл, если это необходимо */
    .table-wrapper {
        overflow-y: auto; /* Разрешаем вертикальный скролл, если контент таблицы превышает высоту */
    }

    /* Опционально: чтобы заголовки оставались видимыми при прокрутке, вы можете зафиксировать заголовки таблицы */
    .table-wrapper table {
        border-collapse: collapse;
        width: 100%;
    }

    .table-wrapper th {
        background-color: #0b679e;
        color: white;
        position: sticky;
        top: 0;
    }
}

@media only screen and (max-width: 1285px) {

    .count button{
        padding: 2px 6px;
    }

    .filter .filterForm, .search .searchForm {
        display: flex;
        flex-direction: column;
    }

    .filterForm *, .searchForm * {
        margin-top: 5px;
    }

    .filter select{
        width: 100%;
    }

    .search button{
        width: 100%;
    }

    .search input{
        width: calc(100%);
    }

    .filter, .search{
        justify-content: flex-start;
        display: flow-root;
    }
}




.wrapper-success {
    max-width: 600px;
    margin: 50px auto; /* Устанавливаем отступы сверху и снизу в 50px, а слева и справа автоматически центрируются */
    padding: 20px;
    border: 2px solid #ccc;
    border-radius: 10px;
    background-color: #f8f8f8;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 40%; /* Положение по вертикали: вверху блока будет расположено на 50% от верха экрана */
    left: 50%; /* Положение по горизонтали: слева блока будет расположено на 50% от левого края экрана */
    transform: translate(-50%, -50%); /* Для точного центрирования по центру экрана */
}

.wrapper-success h1 {
    font-size: 24px;
    color: #0b679e;
    margin-bottom: 10px;
}

.wrapper-success p {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.wrapper-success button {
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.wrapper-success button:hover {
    background-color: #0056b3;
}

.wrapper-success a{
    text-decoration: none;
    color: white;
}

.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 80vh;
    margin-bottom: 20px;
}

.login-container form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.login-container input,
.login-container button {
    width: 250px;
    padding: 10px;
    margin: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.count input{
    text-align: center;
    width: 20px;
    border: none;
}

.login-container button {
    background-color: #09517d;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-container button:hover {
    background-color: #0b679e;
}


/* Стили для кнопок пагинации */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 40px;
}

.pagination a {
    padding: 10px 20px;
    margin: 0 5px;
    text-decoration: none;
    color: white;
    background-color: #0b679e; /* Цвет фона */
    border-radius: 5px; /* Закругление углов */
    transition: background-color 0.3s ease; /* Плавное изменение цвета фона */
}


.pagination-button {
    padding: 10px 20px;
    margin: 0 5px;
    text-decoration: none;
    color: white;
    border-radius: 5px; /* Закругление углов */
    transition: background-color 0.3s ease; /* Плавное изменение цвета фона */
}


.pagination span {
    padding: 10px 20px;
    margin: 0 5px;
    text-decoration: none;
    color: white;
    background-color: #09517d; /* Цвет фона */
    border-radius: 5px; /* Закругление углов */
    transition: background-color 0.3s ease; /* Плавное изменение цвета фона */
}

.pagination a.active {
    background-color: #0b679e; /* Цвет фона активной кнопки */
}

.pagination a:hover {
    background-color: #0b679e; /* Цвет фона при наведении */
}
/* CSS стили для модального окна */
/* CSS стили для модального окна */
.modal {
    display: block;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.modal-content {
    background-color: #f8f8f8;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 20px;
    max-width: 300px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}
