* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, sans-serif;
}

body {
    background: #f5f7fb;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

/* ---------- Страница входа ---------- */
.login-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.login-container h1 {
    text-align: center;
    margin-bottom: 24px;
    color: #1a1a2e;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    color: #2d3748;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 16px;
}

button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

button[type="submit"]:hover {
    background: #4338ca;
}

.error-message {
    color: #dc2626;
    margin-top: 12px;
    text-align: center;
}

/* ---------- Админ-панель ---------- */
.admin-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 1200px;
    overflow-x: auto;
}

.admin-container header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.admin-container h1 {
    color: #1a1a2e;
}

#logoutBtn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

#logoutBtn:hover {
    background: #b91c1c;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

thead {
    background: #f1f5f9;
}

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

th {
    font-weight: 600;
    color: #1e293b;
}

td select {
    padding: 4px 6px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    background: white;
    cursor: pointer;
}

.delete-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.delete-btn:hover {
    background: #dc2626;
}

/* Адаптив */
@media (max-width: 768px) {
    table {
        font-size: 12px;
    }
    th, td {
        padding: 8px 6px;
    }
}

.params-cell {
    max-width: 300px;
    word-wrap: break-word;
    line-height: 1.6;
    font-size: 13px;
}
.params-cell strong {
    color: #1e293b;
}