body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #fff;
    color: #000;
}

/* --- Левое меню --- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 100%;
    background: #111;
    color: #fff;
    padding: 20px;
    box-sizing: border-box;
}

.sidebar h2 {
    font-size: 18px;
    margin-bottom: 20px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin: 10px 0;
}

.sidebar ul li a {
    color: #fff;
    text-decoration: none;
}

.sidebar ul li a:hover {
    text-decoration: underline;
}

/* --- Контент --- */
.content {
    margin-left: 240px;
    padding: 20px;
    box-sizing: border-box;
}

/* --- Страница входа --- */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #f4f4f4;
}

.login-box {
    background: #fff;
    padding: 30px;
    border: 1px solid #ccc;
    border-radius: 10px;
    width: 300px;
    text-align: center;
}

.login-box input {
    width: 90%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #aaa;
    border-radius: 5px;
}

.login-box button {
    width: 95%;
    padding: 10px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.login-box button:hover {
    background: #333;
}

.error {
    color: red;
    margin-bottom: 10px;
}

/* --- Активный пункт меню --- */
.sidebar ul li a.active {
    background-color: #fff;
    color: #000;
    display: block;
    padding: 5px 10px;
    border-radius: 5px;
}

.sidebar ul li a:hover {
    background-color: #fff;
    color: #000;
    border-radius: 5px;
}

/* стили уведомлений */
.message {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
}

.message.success {
    background: #e5ffe5;
    border: 1px solid #00a000;
    color: #006000;
}

.message.error {
    margin-left: 240px;
    background: #ffe5e5;
    border: 1px solid #a00000;
    color: #600000;
}

/* Форма авторизации */
.login-box {
    background: #fff;
    padding: 40px 30px;
    border: 1px solid #ccc;
    border-radius: 12px;
    width: 320px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* лёгкая тень */
}

.login-form .input-group {
    display: flex;
    align-items: center;
    margin: 15px 0;
    border: 1px solid #aaa;
    border-radius: 8px;
    padding: 5px 10px;
    background: #fafafa;
    transition: border 0.2s, background 0.2s;
}

.login-form .input-group:hover {
    border-color: #000;
    background: #fff;
}

.login-form .input-group .icon {
    margin-right: 8px;
    font-size: 18px;
}

.login-form input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px;
    background: transparent;
    font-size: 14px;
    color: #000;
}

.login-form button {
    width: 100%;
    padding: 12px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    margin-top: 10px;
    transition: background 0.2s;
}

.login-form button:hover {
    background: #333;
}

/* всплывающие окна */
.alert {
    margin-top: 10px;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 14px;
    background-color: #222;
    color: #fff;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* показываем */
.alert.show {
    opacity: 1;
    transform: translateY(0);
}

.alert.error {
    background-color: #a00;
}

.alert.success {
    background-color: #0a0;
}

/* недоступные для блокировки поля в формах */
.readonly-field {
    background-color: #eee;
    color: #444;
    cursor: not-allowed;
}

.readonly-field:focus {
    outline: none;
}