* {
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

.header {
  width: 100%;
  padding: 1rem;
  border-bottom: 1px solid var(--background-color-primary);
  background-color: var(--background-color);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #ececec;
}

.green-dot {
  vertical-align: middle;
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background-color: #34c757;
}

.icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.title {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.title h1 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1;
}

.title p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--gray-color);
  line-height: 1;
}

.chatbot-subtitle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#end-chat-btn {
  white-space: no-break;
  background-color: #dc2626;
  color: white;
  border: none;
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  cursor: pointer;
}

.header-buttons button {
  background-color: transparent;
  border: none;
  border-radius: 50%;
  width: 36px;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

.header-buttons {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 8px;
  position: relative;
}

.close-button svg {
  height: 24px;
}

button img {
  width: 24px;
}

.history-button img {
  width: 20px;
  height: 20px;
}

.header-buttons button:hover {
  transform: scale(1.05);
}

#end-chat {
  position: absolute;
  top: 100%;
  right: 0;
  display: flex;
  gap: 8px;
  white-space: nowrap;
  padding: 0.5rem 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 100;
  background-color: white;
  border-radius: 0.5rem;
  align-items: center;
  font-size: 0.875rem;
}

#end-chat svg {
  color: red;
}

@media screen and (max-width: 480px) {
  .expand-button {
    display: none;
  }
}
