/* Градиентные кнопки */
button,
a.button-link {
    background: linear-gradient(135deg, #6F00FF, #ED3833);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-family: 'Segoe UI', Arial, sans-serif;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button:hover,
a.button-link:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

/* Остальные стили — как ранее, но с улучшенной структурой */
/* Можно использовать предыдущий CSS, который я предоставил */
/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f8;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

h1, h2, h3 {
    color: #2c3e50;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Top Navigation */
.topnav {
    background-color: #2c3e50;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 8px;
    padding: 10px;
}

.topnav a {
    float: left;
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.topnav a:hover {
    background-color: #1abc9c;
    color: white;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

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

th {
    background-color: #34495e;
    color: white;
}

tr:hover {
    background-color: #ecf0f1;
}

a.pallet-link {
    color: #1abc9c;
    text-decoration: none;
    font-weight: bold;
}

a.pallet-link:hover {
    text-decoration: underline;
}

/* Summary Table */
#summaryTable {
    margin-bottom: 20px;
    background-color: #ecf0f1;
    border-radius: 8px;
    font-size: 16px;
}

#summaryTable strong {
    color: #27ae60;
}

/* Buttons */
button {
    background-color: #1abc9c;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    margin-right: 5px;
}

button:hover {
    background-color: #16a085;
}

/* Forms */
form {
    margin-bottom: 20px;
}

input[type="text"],
input[type="number"],
input[type="password"] {
    padding: 8px;
    margin: 5px 10px 5px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: auto;
}

/* Highlight for In-Stock Items */
.highlight-green {
    background-color: #dff0d8 !important;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 300px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

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

.close:hover {
    color: black;
}

/* Search Field */
#search {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

/* Footer */
footer {
    margin-top: 40px;
    text-align: center;
    color: #999;
    font-size: 14px;
}