@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap");

body {
  font-family:
    "Inter",
    -apple-system,
    sans-serif;
  background-color: #f8fafc;
  transition: background-color 0.3s ease;
}

.dark body {
  background-color: #0b141a;
}
.hero-gradient {
  /* Base gradient */
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);

  /* Add subtle radial highlights */
  position: relative;
  overflow: hidden;
}

.hero-gradient::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.1),
    transparent 70%
  );
  pointer-events: none;
  transform: rotate(25deg);
}

.hero-gradient::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
  pointer-events: none;
}

.wa-bg {
  background-color: #efeae2;
  background-image: url("https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png");
  background-repeat: repeat;
  transition: background-color 0.3s ease;
}

.dark .wa-bg {
  background-color: #0b141a;
  background-blend-mode: overlay;
  opacity: 0.9;
}

.chat-bubble {
  background-color: #ffffff;
  border-radius: 0 12px 12px 12px;
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
  position: relative;
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.5;
  color: #111b21;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.dark .chat-bubble {
  background-color: #202c33;
  color: #e9edef;
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.5);
}

.chat-bubble::before {
  content: "";
  position: absolute;
  top: 0;
  left: -8px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 10px 10px 0;
  border-color: transparent #ffffff transparent transparent;
}

.dark .chat-bubble::before {
  border-color: transparent #202c33 transparent transparent;
}

/* Formatting Previews */
.chat-bubble strong {
  font-weight: 700;
}
.chat-bubble em {
  font-style: italic;
}
.chat-bubble .quote {
  display: block;
  border-left: 4px solid #34b7f1;
  background: rgba(52, 183, 241, 0.1);
  padding: 4px 10px;
  margin: 4px 0;
  border-radius: 2px;
}
.chat-bubble code {
  background: #f0f2f5;
  padding: 2px 4px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9em;
}
.dark .chat-bubble code {
  background: #111b21;
}
.chat-bubble .code-block {
  display: block;
  background: #f0f2f5;
  padding: 10px;
  border-radius: 8px;
  margin: 8px 0;
  white-space: pre;
  overflow-x: auto;
  font-family: monospace;
}
.dark .chat-bubble .code-block {
  background: #111b21;
  color: #8696a0;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.animate-pop {
  animation: slideUp 0.3s ease-out forwards;
}

/* Theme Toggle Switch Styles */
.theme-toggle-btn {
  z-index: 100;
  padding: 0.5rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.2s;
}
.theme-toggle-btn:hover {
  background-color: rgba(255, 255, 255, 0.4);
}
