/* ===== ОБЩИЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    max-width: 1000px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ЗАГОЛОВКИ ===== */
h1, h2, h3 {
    color: #333;
    margin-bottom: 15px;
}

h2 {
    font-size: 28px;
    text-align: center;
    color: #4a4a4a;
}

/* ===== ФОРМЫ ===== */
.forms {
    display: flex;
    gap: 40px;
    margin-top: 20px;
}

.forms div {
    flex: 1;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.forms div:hover {
    transform: translateY(-5px);
}

/* ===== ПОЛЯ ВВОДА ===== */
input {
    display: block;
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* ===== КНОПКИ ===== */
button {
    display: block;
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

button:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

button:active {
    transform: scale(0.98);
}

/* ===== КАБИНЕТ ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.logout {
    background: #dc3545;
    color: white;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.logout:hover {
    background: #c82333;
    transform: scale(1.05);
}

/* ===== МЕНЮ ===== */
.menu {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
}

.menu a {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.menu a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* ===== ТАБЛИЦЫ ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px;
    font-weight: 600;
}

td {
    padding: 12px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

tr:hover td {
    background: #e9ecef;
}

/* ===== СПИСКИ ===== */
ul {
    list-style: none;
    padding: 0;
}

li {
    background: #f8f9fa;
    padding: 15px 20px;
    margin: 8px 0;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
}

li:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* ===== ДОПОЛНИТЕЛЬНО ===== */
a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #764ba2;
}

.add-supplier {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
}

.suppliers-list {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
}

.results {
    margin-top: 25px;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #dc3545;
}

.success {
    background: #d4edda;
    color: #155724;
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #28a745;
}

/* ===== АДАПТАЦИЯ ДЛЯ ТЕЛЕФОНОВ ===== */
@media (max-width: 768px) {
    .forms {
        flex-direction: column;
        gap: 20px;
    }
    
    .menu {
        flex-direction: column;
    }
    
    .menu a {
        min-width: unset;
    }
    
    .container {
        padding: 20px;
    }
    
    table {
        font-size: 12px;
    }
    
    th, td {
        padding: 8px;
    }
}