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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #ffffff;
  color: #1e1e1e;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  padding: 24px 24px 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.chat-container {
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 32px;
}

.greeting {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-top: 8px;
  line-height: 1.2;
}

.greeting-text {
  font-family: math;
  font-size: clamp(1.875rem, 1.2rem + 2vw, 2.5rem);
  line-height: 1.2;
  transition: opacity 0.3s ease, max-height 0.4s ease;
}

.greeting-hidden {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  margin: 0;
  pointer-events: none;
}

.claude-logo {
  flex-shrink: 0;
  display: block;
}

.message {
  line-height: 1.6;
  font-size: 15px;
  display: flex;
  flex-direction: column;
}

/* Thinking animation — spinning logo */
.thinking-logo {
  width: 22px;
  height: 22px;
  opacity: 0.55;
  animation: spin-slow 2.4s linear infinite;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Markdown rendered content */
.message.assistant .md-content p { margin: 0 0 8px; }
.message.assistant .md-content p:last-child { margin-bottom: 0; }
.message.assistant .md-content strong { font-weight: 600; }
.message.assistant .md-content em { font-style: italic; }
.message.assistant .md-content code {
  background: #f0f0f0;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 13px;
  font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
}
.message.assistant .md-content pre {
  background: #f5f5f5;
  border-radius: 6px;
  padding: 12px;
  overflow-x: auto;
  margin: 8px 0;
}
.message.assistant .md-content pre code {
  background: none;
  padding: 0;
}
.message.assistant .md-content ul,
.message.assistant .md-content ol {
  padding-left: 20px;
  margin: 4px 0;
}
.message.assistant .md-content li { margin: 2px 0; }

.message.user {
  align-self: flex-end;
  background-color: #f3f3f3;
  padding: 12px 16px;
  border-radius: 12px;
  color: #1a1a1a;
  max-width: 75%;
}

.message.assistant {
  align-self: flex-start;
  color: #1a1a1a;
  max-width: 85%;
  white-space: pre-wrap;
}

.input-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  margin-top: auto;
}

.pills-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 2px;
}

.pills-container::-webkit-scrollbar {
  display: none;
}

.left-pills {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
}

.pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 500;
  color: #555555;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.pill:hover {
  background-color: #f5f5f5;
  color: #1a1a1a;
}

.mascot {
  margin-right: 16px;
  margin-bottom: -6px; /* Let it sit naturally on the box */
  z-index: 10;
}

.input-wrapper {
  position: relative;
  width: 100%;
  background: #ffffff;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrapper:focus-within {
  border-color: #b0b0b0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

textarea {
  flex-grow: 1;
  border: none;
  outline: none;
  resize: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  padding: 0;
  background: transparent;
  color: #1a1a1a;
}

textarea::placeholder {
  color: #b3b3b3;
}

.submit-btn {
  background: transparent;
  border: none;
  color: #b3b3b3;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.submit-btn:hover {
  color: #1a1a1a;
}

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

.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #767676;
  padding: 4px 8px;
  font-weight: 500;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-left .plus {
  font-size: 14px;
  margin: 0 -4px;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-ring {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #ffffff 40%, transparent 45%), conic-gradient(#38BDF8 30%, #e5e5e5 0);
}

.epione-footer {
  text-align: center;
  font-size: 11px;
  color: #a1a1a1;
  padding: 12px 0 0 0;
  margin-top: -8px;
}

.epione-link {
  color: #a1a1a1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.epione-link:hover {
  text-decoration: none;
}

.epione-circle {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgb(58, 158, 110);
  display: inline-block;
  margin: 0 5px;
}

.epione-site {
  color: rgb(58, 158, 110);
  font-weight: 500;
  margin-right: 4px;
}
