/* Стили для модального окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7); /* Темный и более прозрачный фон */
}
.modal-content {
    background-color: rgba(0, 0, 0, 0.8); /* Темный и более прозрачный фон */
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #444;
    width: 80%;
    max-width: 400px;
    border-radius: 10px;
    position: relative;
    backdrop-filter: blur(5px); /* Размытие фона */
    color: #fff; /* Белый текст для контраста */
    box-sizing: border-box; /* Включаем внутренние отступы и границы в ширину элемента */
}
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close:hover,
.close:focus {
    color: #fff; /* Белый цвет при наведении */
    text-decoration: none;
}
.input-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
    width: 100%; /* Убедимся, что группа занимает всю ширину */
    box-sizing: border-box; /* Включаем внутренние отступы и границы в ширину элемента */
}
.input-group .input-item {
    display: flex;
    flex-direction: column;
    width: 100%; /* Убедимся, что каждый элемент занимает всю ширину колонки */
    box-sizing: border-box; /* Включаем внутренние отступы и границы в ширину элемента */
}
.input-group .input-item label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #fff; /* Белый текст для контраста */
}
.input-group .input-item input {
    padding: 8px;
    border: 1px solid #0088cc; /* Цвет границы как у кнопки */
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1); /* Прозрачный фон для полей ввода */
    color: #fff; /* Белый текст для контраста */
    width: 100%; /* Убедимся, что поле ввода занимает всю ширину */
    box-sizing: border-box; /* Включаем внутренние отступы и границы в ширину элемента */
}
.save-button {
    background-color: #0088cc; /* Синий цвет, как в Telegram */
    color: white; /* Белый текст */
    padding: 10px 20px;
    border: none;
    border-radius: 10px; /* Закругленные углы */
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
    font-size: 16px; /* Размер текста */
    font-weight: bold; /* Жирный текст */
    transition: background-color 0.2s ease; /* Плавное изменение цвета при наведении */
}
.save-button:hover {
    background-color: #0077b3; /* Темно-синий цвет при наведении */
}
.save-button:active {
    background-color: #006699; /* Еще более темный синий при нажатии */
}