:root {
  --primary-color: #7C3AED;
  --primary-light: #8B5CF6;
  --secondary-color: #1F2937;
  --accent-color: #10B981;
  --background: #ffffff;
  --text-primary: #111827;
  --text-secondary: #6B7280;
  --border-color: #E5E7EB;
  --hover-color: #F3F4F6;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --assistant-bg: #F9FAFB;
  --user-bg: #3B82F6;
  --user-text: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #111827;
    --text-primary: #F9FAFB;
    --text-secondary: #9CA3AF;
    --border-color: #374151;
    --hover-color: #374151;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --assistant-bg: #1F2937;
    --user-bg: #3B82F6;
    --user-text: #ffffff;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.5;
}

.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.chat-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  position: relative;
}

.chat-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  background: var(--background);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.25rem;
}

.logo-image {
  width: 32px;
  height: 32px;
  animation: pulse 2s infinite;
}

.messages {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  scroll-behavior: smooth;
  margin-top: 64px;
  margin-bottom: 180px;
  height: calc(100vh - 244px);
}

.welcome-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 244px);
  text-align: center;
  color: var(--text-primary);
  padding: 2rem;
}

.welcome-icon {
  margin-bottom: 2rem;
}

.welcome-screen h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.welcome-screen p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.robot-image {
  width: 150px;
  height: 150px;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

.suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem;
}

.chip {
  padding: 0.75rem 1.25rem;
  background: var(--assistant-bg);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-primary);
  font-size: 0.95rem;
  box-shadow: 0 2px 4px var(--shadow-color);
}

.chip:hover {
  background: var(--hover-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--shadow-color);
}

.chip:active {
  transform: translateY(0);
}

.message {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  animation: fadeIn 0.3s ease-out;
  position: relative;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message .avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  color: white;
  padding: 0.25rem;
  flex-shrink: 0;
}

.message.generating .avatar {
  display: none;
}

.message .content {
  position: relative;
  width: 100%;
  font-size: 1rem;
  line-height: 1.6;
  padding-bottom: 1rem;
  padding-right: 40px;
}

.message.user .content {
  background-color: var(--user-bg);
  border-radius: 0.5rem;
  padding: 1.5rem;
  color: var(--user-text);
}

.message.assistant .content {
  background-color: transparent;
  border-radius: 0;
  padding: 0;
}

.message .content p {
  margin-bottom: 1rem;
}

.message .content ul,
.message .content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.message .content h1,
.message .content h2,
.message .content h3,
.message .content h4 {
  margin: 1.5rem 0 1rem;
  font-weight: 600;
}

.message .content table {
  border-collapse: collapse;
  margin: 1rem 0;
  width: 100%;
}

.message .content table th,
.message .content table td {
  border: 1px solid var(--border-color);
  padding: 0.5rem;
}

.message .content blockquote {
  border-left: 4px solid var(--primary-color);
  margin: 1rem 0;
  padding-left: 1rem;
  color: var(--text-secondary);
}

.message pre {
  position: relative;
  background: #282a36;  
  padding: 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1rem 0;
  margin-bottom: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.message pre code {
  font-family: 'Fira Code', monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #f8f8f2;  
  display: block;
  padding: 0.5rem;
}

.copy-button {
  position: absolute;
  right: 8px;
  top: 8px;
  background: rgba(99, 102, 241, 0.9);
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  opacity: 0;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  font-weight: 500;
}

.message-copy-button {
  position: absolute;
  right: 8px;
  top: 0;
  background: rgba(99, 102, 241, 0.9);
  z-index: 100;
}

.message:hover .copy-button {
  opacity: 1;
}

.message.generating .copy-button {
  display: none;
}

.copy-button:hover {
  background: rgba(99, 102, 241, 1);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.copy-button.copied {
  background: #10B981;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-literal,
.hljs-section,
.hljs-link {
  color: #ff79c6;
}

.hljs-function .hljs-keyword {
  color: #ff79c6;
}

.hljs-subst {
  color: #f8f8f2;
}

.hljs-string,
.hljs-title,
.hljs-name,
.hljs-type,
.hljs-attribute,
.hljs-symbol,
.hljs-bullet,
.hljs-addition,
.hljs-variable,
.hljs-template-tag,
.hljs-template-variable {
  color: #f1fa8c;
}

.hljs-comment,
.hljs-quote,
.hljs-deletion,
.hljs-meta {
  color: #6272a4;
}

.hljs-built_in,
.hljs-class .hljs-title {
  color: #8be9fd;
}

.hljs-number,
.hljs-literal {
  color: #bd93f9;
}

.hljs-function {
  color: #50fa7b;
}

.hljs-params {
  color: #f8f8f2;
}

.hljs-regexp {
  color: #ff5555;
}

.hljs-title.function_ {
  color: #50fa7b;
}

.hljs-property {
  color: #8be9fd;
}

.hljs-punctuation {
  color: #f8f8f2;
}

.hljs-operator {
  color: #ff79c6;
}

.hljs-tag {
  color: #ff79c6;
}

.hljs-attr {
  color: #50fa7b;
}

.hljs-string {
  color: #f1fa8c;
}

.hljs-variable {
  color: #f8f8f2;
}

.hljs-constant {
  color: #bd93f9;
}

.typewriter-text {
  display: inline-block;
  overflow: hidden;
  white-space: pre-wrap;
  word-break: break-word;
  animation: none;
}

.typewriter-text pre {
  opacity: 1 !important;
}

.typewriter-text.complete pre {
  opacity: 1;
}

.MathJax {
  font-size: 1.1em !important;
}

.equation {
  font-family: 'KaTeX', 'Times New Roman', serif;
  padding: 0.5rem;
  margin: 1rem 0;
  text-align: center;
  font-size: 1.1em;
}

.math-symbol {
  font-family: 'KaTeX_Math-Italic', 'Times New Roman', serif;
  font-style: italic;
}

.math-operator {
  font-family: 'KaTeX_Main', 'Times New Roman', serif;
  margin: 0 0.2em;
}

.katex {
  font-size: 1.1em !important;
  line-height: 1.4;
}

.katex-display {
  margin: 1.5em 0 !important;
  padding: 0.5em 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.katex-html {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

sub, sup {
  font-size: 0.75em;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

.menu-button {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.menu-button:hover {
  background: var(--hover-color);
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 100;
  display: none;
}

.menu-overlay.active {
  display: block;
}

.menu-panel {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background: var(--background);
  box-shadow: -2px 0 10px var(--shadow-color);
  z-index: 101;
  transition: right 0.3s ease;
  padding: 1rem;
  overflow-y: auto;
  max-height: 100vh;
}

.menu-panel.active {
  right: 0;
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

.menu-close {
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.menu-item:hover {
  background: var(--hover-color);
}

.menu-item i {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-history-container {
  max-height: 350px;
  overflow-y: auto;
  padding: 0 0.5rem;
}

.chat-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
  cursor: pointer;
}

.chat-history-item:hover {
  background: var(--hover-color);
  transform: translateX(3px);
}

.chat-history-item.active {
  border-color: var(--primary-color);
  background: rgba(124, 58, 237, 0.1);
}

.chat-history-content {
  flex: 1;
  overflow: hidden;
}

.chat-history-title {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
}

.chat-history-preview {
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-history-actions {
  display: flex;
  gap: 0.5rem;
}

.chat-history-date {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.chat-history-button {
  color: var(--text-secondary);
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
}

.chat-history-delete {
  color: #EF4444;
}

.chat-history-button:hover {
  background: var(--hover-color);
  color: var(--primary-color);
}

.chat-history-delete:hover {
  color: #DC2626;
}

.no-history-message {
  text-align: center;
  color: var(--text-secondary);
  padding: 1rem;
  font-style: italic;
}

.chatlist-heading {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0.5rem 0;
  padding: 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about-content {
  padding: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.developer-content {
  padding: 1.5rem;
  color: var(--text-primary);
}

.developer-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.developer-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid var(--primary-color);
  box-shadow: 0 4px 12px var(--shadow-color);
}

.developer-profile h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.developer-title {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.developer-description {
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.6;
}

.developer-description p {
  margin-bottom: 1rem;
}

.developer-description ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.developer-description li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.developer-description li:before {
  content: "→";
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .chat-header {
    padding: 1rem;
  }
  
  .messages {
    margin-bottom: 160px;
  }
  
  .input-container {
    padding: 1rem;
  }
  
  .welcome-screen h1 {
    font-size: 1.75rem;
  }
}

.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

.login-container {
  background: var(--background);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.3),
              0 0 60px rgba(124, 58, 237, 0.1);
  max-width: 90%;
  width: 400px;
  text-align: center;
  animation: slideUp 0.5s ease-out;
}

.login-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.login-logo {
  width: 80px;
  height: 80px;
  animation: pulse 2s infinite;
}

.login-container h2 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin: 0;
}

.login-container p {
  color: var(--text-secondary);
  margin: 0;
}

.google-login-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--border-color);
  border-radius: 2rem;
  background: var(--background);
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.google-login-btn::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(90deg, 
      #ff0000, #ff7300, #fffb00, #48ff00, 
      #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
  z-index: -1;
  animation: rotate 4s linear infinite;
  background-size: 200%;
  border-radius: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.google-login-btn:hover::before {
  opacity: 1;
}

.google-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@keyframes rotate {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-color-scheme: dark) {
  .login-container {
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.5),
                0 0 60px rgba(124, 58, 237, 0.2);
  }
}

.success-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: var(--background);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  z-index: 2000;
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.4);
  animation: popIn 0.5s ease forwards;
}

@keyframes popIn {
  0% {
    transform: translate(-50%, -50%) scale(0);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

.success-icon {
  font-size: 4rem;
  color: #10B981;
  margin-bottom: 1rem;
  animation: bounce 1s ease infinite;
}

.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--primary-color);
  position: absolute;
  animation: confetti 5s ease-in-out infinite;
}

.balloon {
  position: fixed;
  width: 30px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 50%;
  animation: float 4s ease-in-out infinite;
}

@keyframes confetti {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.success-popup h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.success-popup p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: block;
  stroke-width: 4;
  stroke: #10B981;
  stroke-miterlimit: 10;
  margin: 10% auto;
  box-shadow: inset 0px 0px 0px #10B981;
  animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark__circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 4;
  stroke-miterlimit: 10;
  stroke: #10B981;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes scale {
  0%, 100% {
    transform: none;
  }
  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}

@keyframes fill {
  100% {
    box-shadow: inset 0px 0px 0px 30px #10B981;
  }
}

.tech-stack {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--assistant-bg);
  border-radius: 1rem;
  box-shadow: 0 4px 6px var(--shadow-color);
}

.tech-stack h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.language-item {
  text-align: center;
  transition: transform 0.3s ease;
}

.language-item:hover {
  transform: translateY(-5px);
}

.language-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.language-icon svg {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 2px 4px var(--shadow-color));
}

.language-icon span {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

.tech-description {
  text-align: center;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
  margin-top: 1.5rem;
  padding: 0 1rem;
}

.language-icon.python:hover svg {
  filter: drop-shadow(0 0 8px rgba(255, 212, 59, 0.6));
}

.language-icon.javascript:hover svg {
  filter: drop-shadow(0 0 8px rgba(240, 219, 79, 0.6));
}

.language-icon.java:hover svg {
  filter: drop-shadow(0 0 8px rgba(234, 45, 46, 0.6));
}

.language-icon.csharp:hover svg {
  filter: drop-shadow(0 0 8px rgba(104, 33, 122, 0.6));
}

.language-icon.php:hover svg {
  filter: drop-shadow(0 0 8px rgba(97, 129, 182, 0.6));
}

.language-icon.ruby:hover svg {
  filter: drop-shadow(0 0 8px rgba(204, 52, 45, 0.6));
}

@media (max-width: 768px) {
  .language-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .language-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.input-container {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  padding: 2rem;
  border-top: 1px solid var(--border-color);
  background: var(--background);
  z-index: 10;
}

.input-wrapper {
  display: flex;
  gap: 0.5rem;
  background: var(--background);
  padding: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-color);
  align-items: center;
}

textarea {
  flex: 1;
  background: transparent;
  border: none;
  resize: none;
  padding: 0.5rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}

.send-button {
  background: transparent;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.send-button:hover {
  background: var(--hover-color);
}

.new-chat-button {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  order: -1; 
}

.new-chat-button:hover {
  background: var(--hover-color);
  color: var(--primary-color);
}

.input-footer {
  margin-top: 0.5rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.typing-indicator {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  margin-left: 3.5rem;
}

.typing-indicator span {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--primary-color);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

.typewriter-text {
  display: inline-block;
  overflow: hidden;
  white-space: pre-wrap;
  word-break: break-word;
  animation: none;
}

.typewriter-text pre {
  opacity: 1 !important;
}

.typewriter-text.complete pre {
  opacity: 1;
}

@keyframes typewriter {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--primary-color);
  margin-left: 2px;
  animation: blink 0.8s step-end infinite;
  vertical-align: bottom;
}