* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
  background-color: #f9fafb;
  color: #111827;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header Styles */
.header {
  background-color: #047857;
  color: white;
  padding: 1rem 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-container {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.header-icon {
  background-color: white;
  padding: 0.5rem;
  border-radius: 9999px;
  margin-right: 0.75rem;
}

.header-icon svg {
  color: #047857;
}

.header-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.header-subtitle {
  color: #d1fae5;
  font-size: 0.875rem;
}

.status-indicator {
  margin-left: auto;
  display: flex;
  align-items: center;
  background-color: #059669;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.status-dot {
  height: 0.5rem;
  width: 0.5rem;
  background-color: #d1fae5;
  border-radius: 9999px;
  margin-right: 0.5rem;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* Main Content Styles */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Onboarding Styles */
.onboarding-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: linear-gradient(to bottom, #ecfdf5, white);
}

.onboarding-card {
  max-width: 28rem;
  width: 100%;
  background-color: white;
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.onboarding-header {
  background-color: #047857;
  padding: 1.5rem;
  color: white;
  text-align: center;
}

.onboarding-icon {
  background-color: white;
  width: 5rem;
  height: 5rem;
  border-radius: 9999px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.onboarding-icon svg {
  color: #047857;
  width: 2.5rem;
  height: 2.5rem;
}

.onboarding-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.onboarding-subtitle {
  color: #d1fae5;
}

.onboarding-body {
  padding: 1.5rem;
}

.onboarding-step {
  display: none;
}

.onboarding-step.active {
  display: block;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.feature-icon {
  background-color: #d1fae5;
  padding: 0.5rem;
  border-radius: 9999px;
  margin-right: 1rem;
}

.feature-icon svg {
  color: #047857;
  width: 1.5rem;
  height: 1.5rem;
}

.feature-title {
  font-weight: 700;
  color: #1f2937;
  font-size: 1.125rem;
}

.feature-description {
  color: #6b7280;
  margin-top: 0.25rem;
}

.name-input {
  margin-top: 1.5rem;
}

.name-input label {
  display: block;
  color: #374151;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.name-input input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #6ee7b7;
  border-radius: 0.5rem;
  outline: none;
}

.name-input input:focus {
  border-color: #047857;
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.2);
}

.suggestions-box {
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-top: 1rem;
}

.suggestions-title {
  color: #065f46;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.suggestions-list {
  color: #047857;
  font-size: 0.875rem;
  list-style-type: none;
}

.suggestions-list li {
  margin-bottom: 0.25rem;
}

.onboarding-footer {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skip-btn {
  color: #047857;
  font-weight: 500;
  font-size: 0.875rem;
  background: none;
  border: none;
  cursor: pointer;
}

.skip-btn:hover {
  text-decoration: underline;
}

.next-btn {
  background-color: #047857;
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  border: none;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.next-btn:hover {
  background-color: #065f46;
}

.next-btn svg {
  margin-left: 0.25rem;
  width: 1rem;
  height: 1rem;
}

/* Chat Container Styles */
.chat-container {
  display: none;
  flex: 1;
  flex-direction: column;
}

.chat-container.active {
  display: flex;
}

.messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: linear-gradient(to bottom, #ecfdf5, white);
}

.messages-wrapper {
  max-width: 56rem;
  margin: 0 auto;
}

.message {
  display: flex;
  margin-bottom: 1.5rem;
  align-items: flex-end;
}

.message.user {
  justify-content: flex-end;
}

.message.bot {
  justify-content: flex-start;
}

.message-avatar {
  padding: 0.5rem;
  border-radius: 9999px;
  margin-right: 0.5rem;
}

.message-avatar.bot {
  background-color: #047857;
}

.message-avatar.user {
  background-color: #d1fae5;
  border: 1px solid #6ee7b7;
  margin-right: 0;
  margin-left: 0.5rem;
}

.message-avatar svg {
  width: 1.125rem;
  height: 1.125rem;
}

.message-avatar.bot svg {
  color: white;
}

.message-avatar.user svg {
  color: #047857;
}

.message-bubble {
  position: relative;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  max-width: 18rem;
}

@media (min-width: 768px) {
  .message-bubble {
    max-width: 24rem;
  }
}

@media (min-width: 1024px) {
  .message-bubble {
    max-width: 32rem;
  }
}

.message-bubble.bot {
  background-color: white;
  color: #064e3b;
  border: 1px solid #10b981;
  border-top-left-radius: 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.message-bubble.user {
  background-color: #047857;
  color: white;
  border-top-right-radius: 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.message-tail {
  position: absolute;
  top: 0;
  width: 0.625rem;
  height: 0.625rem;
}

.message-tail.bot {
  left: 0;
  transform: translateX(-50%) rotate(-135deg);
  background-color: white;
  border-right: 1px solid #10b981;
  border-top: 1px solid #10b981;
}

.message-tail.user {
  right: 0;
  transform: translateX(50%) rotate(45deg);
  background-color: #047857;
}

.message-time {
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.message-time.bot {
  color: #059669;
}

.message-time.user {
  color: #a7f3d0;
}

/* Typing Indicator Styles */
.typing-indicator {
  display: flex;
  margin-bottom: 1.5rem;
  align-items: flex-end;
}

.typing-dots {
  display: flex;
  padding: 0.75rem 1.25rem;
  background-color: white;
  border: 1px solid #10b981;
  border-radius: 1rem;
  border-top-left-radius: 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.typing-dot {
  width: 0.5rem;
  height: 0.5rem;
  background-color: #059669;
  border-radius: 9999px;
  margin-right: 0.25rem;
}

.typing-dot:nth-child(1) {
  animation: bounce 1.5s infinite;
}

.typing-dot:nth-child(2) {
  animation: bounce 1.5s infinite 0.15s;
}

.typing-dot:nth-child(3) {
  animation: bounce 1.5s infinite 0.3s;
  margin-right: 0;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-0.25rem);
  }
}

/* Input Area Styles */
.input-container {
  border-top: 1px solid #d1fae5;
  background-color: white;
  padding: 1rem;
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
}

.input-wrapper {
  max-width: 56rem;
  margin: 0 auto;
}

.input-field {
  display: flex;
  background-color: #f3f4f6;
  border-radius: 9999px;
  border: 1px solid #6ee7b7;
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
}

.input-field input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  border-radius: 9999px 0 0 9999px;
  outline: none;
}

.send-btn {
  padding: 0.75rem;
  background-color: #047857;
  color: white;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.send-btn:disabled {
  background-color: #bbf7d0;
  cursor: not-allowed;
}

.send-btn svg {
  width: 1.125rem;
  height: 1.125rem;
}

.footer-text {
  text-align: center;
  margin-top: 0.5rem;
  color: #059669;
  font-size: 0.75rem;
}

.footer-text a {
  text-decoration: none;
  color: #059669;
  font-weight: bold;
  cursor: pointer;
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.footer-icons a {
  text-decoration: none;
  color: #059669;
  font-weight: bold;
  cursor: pointer;
  font-size: 1.5rem;
  transition: color 0.2s;
}

.footer-icons a:hover {
  color: #047857;
}