/* Rabbit Hole Interview - Local Styles (no CDN dependencies) */

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

body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(to bottom right, #09090b, #18181b, #09090b);
  color: white;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
}

/* Container */
.container {
  max-width: 42rem;
  width: 100%;
}

/* Typography */
.title {
  font-size: 2.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  text-align: center;
}

.subtitle {
  color: #a1a1aa;
  font-size: 0.875rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.highlight {
  color: #ec4899;
}

/* Status bar */
.status-bar {
  background: rgba(39, 39, 42, 0.5);
  backdrop-filter: blur(8px);
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #3f3f46;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #71717a;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* Chat window */
.chat-window {
  background: rgba(24, 24, 27, 0.8);
  backdrop-filter: blur(8px);
  border-radius: 1rem;
  padding: 1rem;
  height: 400px;
  overflow-y: auto;
  margin-bottom: 1rem;
  border: 1px solid #27272a;
  scroll-behavior: smooth;
}

/* Messages */
.message {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.message-user {
  flex-direction: row-reverse;
}

.message-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.message-bubble {
  background: #27272a;
  border-radius: 0.75rem;
  padding: 0.75rem;
  max-width: 80%;
}

.message-bubble-bot {
  border-top-left-radius: 0;
}

.message-bubble-user {
  background: #db2777;
  border-top-right-radius: 0;
  margin-left: auto;
}

.message-text {
  color: #d4d4d8;
  line-height: 1.5;
}

.message-user .message-text {
  color: white;
}

/* Typing indicator */
.typing-container {
  margin-bottom: 0.5rem;
  padding: 0 1rem;
}

.typing-container.hidden {
  display: none;
}

.typing-indicator {
  display: flex;
  gap: 0.25rem;
  color: #71717a;
  font-size: 0.875rem;
  align-items: center;
}

.typing-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  background: #71717a;
  border-radius: 50%;
  animation: hop 0.6s ease-in-out infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

/* Input form */
.chat-form {
  display: flex;
  gap: 0.5rem;
}

.chat-input {
  flex: 1;
  border-radius: 0.75rem;
  padding: 0.75rem;
  background: #27272a;
  border: 1px solid #3f3f46;
  color: white;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.chat-input::placeholder {
  color: #71717a;
}

.chat-input:focus {
  border-color: #ec4899;
}

.chat-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.send-btn {
  background: #ec4899;
  color: white;
  font-weight: bold;
  padding: 0 1.5rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.send-btn:hover {
  background: #db2777;
}

.send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.reset-btn {
  background: #3f3f46;
  color: white;
  padding: 0 0.75rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 1rem;
}

.reset-btn:hover {
  background: #52525b;
}

/* Footer */
.footer {
  text-align: center;
  color: #52525b;
  font-size: 0.75rem;
  margin-top: 1rem;
}

/* Animations */
@keyframes hop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.rabbit-hop {
  display: inline-block;
  animation: hop 0.5s ease-in-out infinite;
}
