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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

header h1 {
    font-size: 24px;
    color: #333;
}

nav {
    display: flex;
    gap: 10px;
}

nav .btn {
    font-size: 14px;
    font-weight: bold;
    padding: 8px 12px;
    color: #fff;
    background-color: #007BFF;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav .btn:hover {
    background-color: #0056b3;
}

/* Стили для формы на странице add_product */
form.add-product-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

form label {
    font-size: 14px;
    font-weight: bold;
    color: #444;
}

form input,
form select,
form textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

form input[type="number"],
form select {
    max-width: 300px;
}

form textarea {
    resize: vertical;
    height: 100px;
}

form button {
    background-color: #007BFF;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 200px;
    margin-top: 20px;
}

form button:hover {
    background-color: #0056b3;
}

/* Сообщение об успешном добавлении товара */
.success-message {
    text-align: center;
    background-color: #e8f5e9;
    color: #388e3c;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Фокус на полях */
input:focus,
select:focus,
textarea:focus {
    border-color: #007BFF;
    outline: none;
}

/* Убираем стрелочки в полях ввода чисел */
input[type="number"],
select,
textarea {
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Стили для таблицы на странице manage_products */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    overflow-x: auto;
    border-radius: 8px;
}

table thead {
    background-color: #007BFF;
    color: white;
    text-transform: uppercase;
    font-size: 14px;
}

table thead th {
    padding: 12px;
    text-align: center;
}

table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tbody tr:hover {
    background-color: #f1f1f1;
    transition: background-color 0.3s;
}

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

table td {
    font-size: 14px;
    color: #333;
}

table td .btn {
    display: inline-block;
    margin: 5px 2px;
    padding: 5px 10px;
    color: white;
    text-decoration: none;
    font-size: 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

table td .btn.edit {
    background-color: #28a745;
}

table td .btn.edit:hover {
    background-color: #218838;
}

table td .btn.delete {
    background-color: #dc3545;
}

table td .btn.delete:hover {
    background-color: #c82333;
}

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

footer p {
    margin: 0;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

header h1 {
    font-size: 24px;
    color: #333;
}

nav {
    display: flex;
    gap: 10px;
}

nav .btn {
    font-size: 14px;
    font-weight: bold;
    padding: 8px 12px;
    color: #fff;
    background-color: #007BFF;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav .btn:hover {
    background-color: #0056b3;
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.search-form input,
.search-form select {
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: auto;
}

.search-form button {
    background-color: #007BFF;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.search-form button:hover {
    background-color: #0056b3;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-radius: 8px;
}

table thead {
    background-color: #007BFF;
    color: white;
    text-transform: uppercase;
    font-size: 14px;
}

table thead th {
    padding: 12px;
    text-align: center;
}

table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tbody tr:hover {
    background-color: #f1f1f1;
}

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

table td {
    font-size: 14px;
    color: #333;
}

.reset-btn {
    background-color: #f44336;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    margin-left: 10px;
}
.reset-btn:hover {
    background-color: #d32f2f;
}
.btn-delete {
    background-color: #f44336;
    color: white;
}
.btn-delete:hover {
    background-color: #d32f2f;
}