/* Сбрасываем отступы и задаём box-sizing, чтобы управлять размерами удобнее */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Подключение шрифта Lato — через link в index.html */

/* Основные стили */
body {
    margin: 20px;
    font-family: 'Lato', sans-serif;
    font-weight: 300; /* Light */
    font-size: 18px;
    color: #333;
    line-height: 1.6; /* Чуть увеличенная межстрочность */
}

/* Заголовки */
h1 {
    font-size: 36px;
    font-weight: 700; /* Bold */
    margin-bottom: 20px;
    text-align: center;
}

h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Таблица */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid #ccc;
}

th, td {
    padding: 8px;
    text-align: center;
}

.align-left {
    text-align: left;
}

.bot-actions {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 5px;
    justify-content: center;
}

/* Кнопки */
button {
    padding: 10px 15px;
    margin: 5px;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 18px;
}

.bots-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* Модальное окно */
.modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fff;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
}

.close {
    color: #aaa;
    float: right;
    font-size: 24px;
    font-weight: 700; /* Bold */
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
}

/* Форма в модальном окне */
#botForm {
    margin-top: 20px;
}

/* Каждая строка формы в одну линию: */
.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 30px; /* Увеличили отступы в ~3 раза (было 10px) */
}

/* label и input/select на одной строке */
.form-row label {
    width: 180px;
    margin-right: 10px;
    text-align: right;
    font-weight: 300;
    font-size: 18px;
}

.form-row input,
.form-row select {
    font-size: 18px;
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    padding: 8px 10px; /* Сделаем поля побольше */
    width: 280px;      /* Можно увеличить ещё, если нужно */
}

#saveBotBtn {
    margin-top: 15px;
    font-weight: 300;
    font-size: 18px;
    padding: 10px 20px;
    cursor: pointer;
}
