body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f4f9;
  margin: 0;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
}

#app {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 600px;
}

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

h1 {
  margin: 0;
  font-size: 24px;
  color: #333;
}

.input-group {
  margin-bottom: 15px;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #555;
}

input[type="text"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

button {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 10px;
}

button:focus {
  outline: none;
}

.btn {
  background-color: #007bff;
  color: #fff;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #0056b3;
}

#treeOutputContainer {
  position: relative;
  margin-top: 20px;
  background: #f9f9f9;
  padding: 20px;
  border: 1px solid #ccc;
  white-space: pre;
  font-family: monospace;
  display: flex;
  align-items: flex-start;
  border-radius: 4px;
  overflow: auto;
}

#treeOutput {
  flex-grow: 1;
}

#copyBtn {
  margin-top: 0;
  display: none; /* Скрываем кнопку по умолчанию */
}

.hits-counter {
  margin-top: 0;
}