body {
    font-family: Arial, sans-serif;
    margin: 20px;
    padding: 20px;
    background-color: #f8f9fa;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    overflow: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

th {
    background-color: #007bff;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

.button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 20px;
    border: none;
    transition: 0.3s;
    cursor: pointer;
}
.button:hover {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 20px;
    border: none;
    transform: scale(1.05);
}

.button:active {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 20px;
    border: none;
    transform: scale(0.98);
}


button:hover {
    background-color: #0056b3; /* Немного темнее зеленый при наведении */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    transform: scale(1.05); /* Легкое увеличение при наведении */
}

button:active {
    background-color: #004085; /* Еще темнее при клике */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    transform: scale(0.98); /* Легкое уменьшение при клике */
}

/* Общий стиль для ссылок пагинации */
#page-buttons {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 16px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: #007bff; /* Синий цвет текста для ссылок */
    border: 1px solid #007bff; /* Синий бордер */
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

/* Стиль при наведении */
#page-buttons:hover {
    background-color: #0056b3; /* Темно-синий фон при наведении */
    color: white; /* Белый цвет текста при наведении */
    transform: scale(1.05); /* Легкое увеличение при наведении */
}

/* Стиль для активной страницы */
#page-buttons.active {
    background-color: #007bff; /* Синий фон для активной страницы */
    color: white; /* Белый текст для активной страницы */
    cursor: default; /* Изменяем курсор на default для активной ссылки */
}

/* Стиль для активной страницы при наведении */
#page-buttons.active:hover {
    background-color: #0056b3; /* Тот же цвет фона при наведении на активную ссылку */
    color: white;
    transform: none; /* Убираем эффект увеличения для активной ссылки */
}

/* Основной стиль для всех меток */
label {
    display: inline-flex;
    align-items: center;
    margin: 5px 0;
    font-size: 16px;
    color: #333;
    cursor: pointer; /* Указатель при наведении на метку */
    transition: color 0.3s ease;
}

/* Стиль для чекбоксов */
input[type="checkbox"] {
    width: 20px; /* Размер чекбокса */
    height: 20px;
    margin-right: 10px; /* Отступ между чекбоксом и текстом */
    cursor: pointer; /* Указатель при наведении на чекбокс */
    accent-color: #007bff; /* Цвет для выбранного чекбокса */
    transition: transform 0.2s ease; /* Плавное изменение состояния */
}

/* При наведении на чекбокс */
input[type="checkbox"]:hover {
    transform: scale(1.1); /* Легкое увеличение чекбокса при наведении */
}

/* Стиль для чекбокса при активном состоянии */
input[type="checkbox"]:checked {
    background-color: #007bff; /* Синий фон для активного чекбокса */
    border-color: #007bff; /* Синий бордер для активного чекбокса */
}

/* Стиль для метки при наведении */
label:hover {
    color: #007bff; /* Синий цвет текста при наведении */
}

/* Стиль для невыбранных чекбоксов */
input[type="checkbox"]:not(:checked) {
    background-color: #fff;
    border: 2px solid #ccc; /* Серая граница для невыбранных чекбоксов */
}

/* При фокусе на чекбоксе */
input[type="checkbox"]:focus {
    outline: none; /* Убираем стандартную обводку */
    border-color: #007bff; /* Синий бордер при фокусе */
}

/* Отступы и выравнивание */
label {
    padding-left: 10px;
}

img {
    width: 50px;  /* Размер миниатюры */
    height: auto;
    border-radius: 5px; /* Закругление углов */
}



/* Стили для слайдера */
.slider {
    display: flex;
    justify-content: center;  /* Центрируем слайдер по горизонтали */
    align-items: center;  /* Центрируем по вертикали */
    position: relative;  /* Для позиционирования стрелок */
    width: 60px;  /* Размер контейнера */
    height: 50px;  /* Фиксированная высота */
}

/* Для картинок слайдера */
.slider-img {
    width: 50px;
    height: auto;
    border-radius: 5px;
    transition: opacity 0.5s ease-in-out;
}

/* Стиль для кнопок слайдера */
.prev, .next {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 5px;
    cursor: pointer;
    position: absolute;
    top: 50%;  /* Центрируем по вертикали */

    font-size: 12px;
    border-radius: 50%;
    width: 30px;  /* Размер кнопок */
    height: 30px;
    display: flex;
    align-items: center;
    transition: 0.3s;

    justify-content: center;
}

/* Позиционирование стрелок */
.prev {
    left: 5px;  /* Стрелка слева */
}

.next {
    right: 5px;  /* Стрелка справа */
}

/* Стиль для стрелок при наведении */
.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Для ячейки <td>, в которой будет слайдер */
td {
    position: relative;  /* Для позиционирования стрелок внутри td */
    padding: 0;  /* Убираем отступы в ячейке */
    text-align: center;  /* Выравнивание контента по горизонтали */
}

/* Контейнер слайдера */
td.slider-cell {
    display: flex;
    justify-content: center;  /* Центрирование контента по горизонтали */
    align-items: center;      /* Центрирование по вертикали */
    height: 100%;             /* Обеспечиваем нормальный размер ячейки */
    position: relative;       /* Для правильного позиционирования стрелок */
}

footer {
    text-align: center;
    margin-top: 40px;
    font-size: 14px;
    color: #777;
}

input[type="text"], input[type="number"], input[type="password"], input[type="email"], form button {
    padding: 10px;
    font-size: 16px;
    width: 300px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

input[type="file"] {
    width: 300px;
    font-size: 16px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    padding: 6px;
    background-color: #fff;
}

input[type="file"]::file-selector-button {
    padding: 10px;
    margin-right: 10px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

input[type="file"]::file-selector-button:hover {
    background-color: #0056b3;
}

form button {
    background-color: #007bff;
    color: white;
    border: none;
    transition: 0.3s;
    cursor: pointer;
}
form button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    background: white;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 330px;

}

.auth-page-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.productForm {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.error-message {
    color: red;
    font-size: 13px;
    margin-bottom: 10px;
}

/* Стили для select */
div > select {
    padding: 10px 14px;
    font-size: 16px;
    border: 2px solid #007bff;
    border-radius: 5px;
    background-color: #fff;
    color: #007bff;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}

/* При наведении: заливаем фон и меняем цвет текста */
div > select:hover {
    background-color: #007bff;
    color: white;
}

/* При фокусе — можно оставить без изменений или усилить эффект */
div > select:focus {
    background-color: #007bff;
    color: white;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.4);
    outline: none;
}

#AlertContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.alert {
    background: #333;
    color: #fff;
    padding: 12px 16px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 250px;
    max-width: 300px;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.alert.show {
    opacity: 1;
    transform: translateX(0);
}

.alert.hide {
    opacity: 0;
    transform: translateX(100%);
}

.alert .close-btn {
    background: transparent;       /* прозрачный фон */
    border: none;                 /* без рамки */
    color: inherit;               /* наследует цвет текста алерта */
    font-size: 18px;              /* размер крестика */
    font-weight: bold;            /* чтобы крестик был жирным */
    cursor: pointer;              /* указатель при наведении */
    line-height: 1;               /* выравнивание по вертикали */
    padding: 0 5px;               /* немного пространства вокруг */
    transition: color 0.3s ease;  /* плавная смена цвета при наведении */
}

.alert .close-btn:hover {
    color: #000;                  /* например, затемняем крестик при наведении */
}

.alert.info {
    background: #e6f4ff;
    color: #0056b3;
}

.alert.success {
    background: #e9fbe9;
    color: #2d6a4f;
}

.alert.danger {
    background: #ffe6e6;
    color: #b30000;
}

