#automaton-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 80px;
  height: 80px;
  cursor: pointer;
  z-index: 9999;
}

#automaton-bubble {
  display: none;
  position: fixed;
  bottom: 110px;
  right: 20px;
  width: 320px;
  height: 420px;
  background: #2c2c2c;
  border: 3px solid #cfa949;
  border-radius: 10px;
  z-index: 9999;
  overflow: hidden;
  box-shadow: 0 0 15px #000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.5s ease-in-out; /* Плавное появление */
}

/* Когда окно открыто, меняем opacity на 1 */
#automaton-bubble.show {
  opacity: 1;
}

#automaton-header {
  background-color: #cfa949;
  color: #000;
  font-weight: bold;
  padding: 10px;
  font-family: 'Georgia';
}

#automaton-body {
  flex: 1;
  padding: 10px;
  font-family: monospace;
  font-size: 14px;
  color: #fff;
  overflow-y: auto;
  background-color: #2c2c2c;
}

#automaton-input {
  display: flex;
  padding: 10px;
  border-top: 1px solid #444;
  background-color: #1c1c1c;
}

#automaton-input input {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 6px;
  background: #111;
  color: #fff;
  font-family: monospace;
  font-size: 14px;
  margin-right: 10px;
}

#automaton-input button {
  background: #cfa949;
  color: #000;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 6px;
  font-weight: bold;
  font-size: 16px;
}


#automaton-input button:hover {
  background: #e0c046; /* Немного светлее при наведении */
}