/* Базовые стили (можно взять из вашего styil.css) */
* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    color: #333;
    background-color: #f5f7fa;
    padding: 20px;
    margin: 0;
}

/* Экран входа */
.login-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.login-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 360px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.login-box h2 { margin: 0 0 10px; color: #2c3e50; text-align: center; }
.login-box input { padding: 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; }
.login-box button {
    padding: 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
}
.login-box button:hover { background: #2980b9; }
.error { color: #e74c3c; font-size: 13px; min-height: 18px; text-align: center; }

/* Топбар */
.topbar { display: flex; justify-content: space-between; margin-bottom: 15px; align-items: center; }
.user-info { display: flex; align-items: center; gap: 15px; color: #555; }

/* Таблица */
table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    background: white;
    border-radius: 8px;
    overflow: hidden;
}
thead { background-color: #3498db; color: white; }
thead tr:first-child { background-color: #2980b9; }
th, td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #e0e0e0; }
th { font-weight: 600; text-transform: uppercase; font-size: 0.85em; }
tbody tr:hover { background-color: #f1f9fe; }

input[type="text"], input[type="number"], input[type="date"], select {
    width: 100%; padding: 8px 12px; border: 1px solid #ddd;
    border-radius: 4px; font-size: 0.9em;
}
input:focus, select:focus { border-color: #3498db; outline: none; }

button {
    background-color: #3498db; color: white; border: none;
    padding: 8px 15px; border-radius: 4px; cursor: pointer; font-size: 0.9em;
}
button:hover { background-color: #2980b9; }
button.udalenie { background-color: #e74c3c; margin-right: 5px; }
button.udalenie:hover { background-color: #c0392b; }
button.redaktirovanie { background-color: #f39c12; }
button.redaktirovanie:hover { background-color: #d68910; }

/* Модалки */
.modal_conteiner {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center; z-index: 900;
}
.modal_okno, .modal_okno_izmenenie {
    background: white; padding: 30px; border-radius: 10px; min-width: 320px;
}
.modal_okno_izmenenie_knopki { display: flex; justify-content: space-around; margin-top: 20px; }

.nastroiki_podmemi { display: none; position: absolute; background: white; padding: 8px; border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); margin-top: 5px; }
.nastroiki_podmemi a { display: block; padding: 6px 12px; color: #3498db; text-decoration: none; }

.modal-users-box {
    background: white;
    padding: 25px 30px;
    border-radius: 10px;
    min-width: 650px;
    max-width: 90vw;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-users-box h3 { margin-top: 0; color: #2c3e50; }
.modal-users-box h4 { margin-top: 25px; color: #2c3e50; }

.users-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    box-shadow: none;
}
.users-table th, .users-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
}
.users-table th {
    background: #ecf0f1;
    color: #2c3e50;
    text-transform: none;
}

.user-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.user-form input, .user-form select {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.user-form button {
    grid-column: span 2;
    padding: 10px;
}

.modal-users-actions {
    margin-top: 15px;
    text-align: right;
}

.delete-user { background-color: #e74c3c; }
.delete-user:hover { background-color: #c0392b; }
.delete-user:disabled { background-color: #95a5a6; cursor: not-allowed; }