/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
}

/* main тянется на всё доступное пространство */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #f8fafc;
    overflow: auto; /* Позволяет прокрутку, если контент больше экрана */
}

/* Основной контент, внутри которого будет прокрутка */
.main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto; /* Добавляем вертикальную прокрутку */
}


/* Основной стиль для сайдбара */
.create-bot-sidebar {
  position: fixed;
  right: 80px; /* Отступ от правого края */
  width: 300px; /* Фиксированная ширина */
  background-color: #f7f7f7;
  border: 1px solid #cce0f5;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  z-index: 10;
  transition: all 0.3s ease-in-out; /* Плавное изменение */
  top: auto;
}

.create-bot-sidebar .form-group {
  margin-bottom: 1rem;
}

.create-bot-sidebar .form-group label {
  font-size: 1.1rem;
  color: #4A4A4A;
  margin-bottom: 5px;
  display: block;
}

.form-group input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.bot-form {
  width: 100%;
}

/* Кнопка создания */
.create-bot-btn {
  background-color: rgba(73, 204, 144, .3); /* Зеленый фон */
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

.create-bot-btn:hover {
   background-color: rgba(73, 204, 144, .5); /* Зеленый фон */
  transform: translateY(-2px); /* Легкий подъем кнопки */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* Легкая тень при наведении */
}

.hidden {
    display: none;
}

#custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);  /* полупрозрачный фон */
    display: flex;
    justify-content: center;
    align-items: center;
}

#custom-modal-message {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.bot-download {
  max-height: 300px; /* или фиксированная: height: 300px; */
  overflow-y: auto;
  overflow-x: hidden; /* чтобы не было горизонтальной полосы */
  padding-right: 10px; /* чтобы текст не упирался в полосу прокрутки */
}

.delete-dialog-btn {
  background-color: transparent;
  border: none;
  color: red;
  font-size: 16px;
  cursor: pointer;
  margin-left: 10px;
}

.delete-dialog-btn:hover {
  color: darkred;
}


