/* style.css – Money Mentor */

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #0f172a;
  color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.app {
  background: #020617;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

/* Header */

.app-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.logo-circle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: #022c22;
  flex-shrink: 0;
}

.app-header h1 {
  font-size: 1.4rem;
  font-weight: 700;
}

.tagline {
  font-size: 0.85rem;
  color: #9ca3af;
}

/* Hints */

.hints {
  background: #020617;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.8rem;
  color: #e5e7eb;
  margin-bottom: 10px;
}

.hints ul {
  margin-top: 4px;
  padding-left: 18px;
}

.hints li {
  margin-bottom: 2px;
}

/* Chat container */

.chat-container {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid #111827;
  background: radial-gradient(circle at top, #020617, #020617, #020617);
  margin-bottom: 10px;
}

/* Messages */

.message {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  align-items: flex-start;
}

.message .avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.message.user .avatar {
  background: #1d4ed8;
  color: #dbeafe;
}

.message.bot .avatar {
  background: #16a34a;
  color: #022c22;
}

.message .bubble {
  max-width: 80%;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
  white-space: pre-wrap;
}

.message.user .bubble {
  background: #111827;
}

.message.bot .bubble {
  background: #020617;
  border: 1px solid #1f2937;
}

/* Chat form */

.chat-form {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.chat-form input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid #1f2937;
  background: #020617;
  color: #e5e7eb;
  font-size: 0.9rem;
}

.chat-form input::placeholder {
  color: #6b7280;
}

.chat-form input:focus {
  outline: 2px solid #22c55e;
  outline-offset: 1px;
}

.chat-form button {
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #022c22;
  transition: transform 0.08s ease, box-shadow 0.08s ease, opacity 0.08s ease;
}

.chat-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(22, 163, 74, 0.4);
}

.chat-form button:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
  box-shadow: none;
}

/* Footer */

.app-footer {
  margin-top: 4px;
  font-size: 0.75rem;
  color: #6b7280;
  text-align: center;
}

/* Scrollbar styling */

.chat-container::-webkit-scrollbar {
  width: 6px;
}

.chat-container::-webkit-scrollbar-track {
  background: #020617;
}

.chat-container::-webkit-scrollbar-thumb {
  background: #1f2937;
  border-radius: 999px;
}

/* Small screens */

@media (max-width: 600px) {
  .app {
    max-height: 100vh;
    border-radius: 0;
  }

  .app-header h1 {
    font-size: 1.1rem;
  }

  .tagline {
    font-size: 0.75rem;
  }

  .message .bubble {
    max-width: 100%;
  }
}
