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

:root {
  --bg: #0F1117;
  --surface: #1A1D27;
  --surface-hover: #242736;
  --border: #2A2D3A;
  --text-primary: #E8EAED;
  --text-secondary: #9AA0A6;
  --text-dim: #5F6368;
  --accent-blue: #5B9BED;
  --accent-pink: #C666BF;
  --gradient: linear-gradient(135deg, #5B9BED, #C666BF);
  --radius-pill: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

html, body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.app-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
  position: relative;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  flex-shrink: 0;
  z-index: 10;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-oloid {
  height: 20px;
  width: auto;
}

.logo-aura {
  height: 21px;
  width: auto;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34A853;
}

.status-badge span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.screen {
  display: none;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
}

.screen.active {
  display: flex;
}

.screen-home {
  justify-content: space-between;
}

.home-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 32px;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

.greeting-area {
  margin-bottom: 40px;
}

.greeting-hello {
  font-size: 32px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.greeting-main {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.35;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shortcuts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.shortcut-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 400;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.shortcut-pill:hover {
  background: var(--surface-hover);
  border-color: var(--accent-blue);
}

.shortcut-icon {
  flex-shrink: 0;
  opacity: 0.7;
}

.home-input-area {
  padding: 16px 24px 28px;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

.prompt-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 16px;
  transition: border-color 0.2s;
}

.prompt-wrapper:focus-within {
  border-color: var(--accent-blue);
}

.prompt-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prompt-logo {
  height: 18px;
  width: auto;
  opacity: 0.6;
}

.prompt-wrapper input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  font-family: inherit;
  color: var(--text-primary);
  padding: 10px 0 10px 8px;
}

.prompt-wrapper input::placeholder {
  color: var(--text-dim);
}

.prompt-voice {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.prompt-voice:hover {
  background: var(--surface-hover);
  color: var(--accent-blue);
}

.prompt-voice.listening {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  animation: pulse-mic 1.5s ease-in-out infinite;
}

@keyframes pulse-mic {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

.prompt-send {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: var(--surface-hover);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.prompt-send:hover {
  background: var(--accent-blue);
  color: #fff;
}

.prompt-send:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.screen-chat {
  flex-direction: column;
}

.chat-area {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

.message {
  display: flex;
  gap: 10px;
  max-width: 85%;
  animation: msgIn 0.25s ease;
}

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

.message.agent {
  align-self: flex-start;
}

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

.msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
}

.message.agent .msg-avatar {
  background: var(--surface-hover);
  color: var(--accent-blue);
}

.message.user .msg-avatar {
  background: var(--accent-blue);
  color: #fff;
}

.msg-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.message.agent .msg-bubble {
  background: var(--surface);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.message.user .msg-bubble {
  background: var(--accent-blue);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.msg-bubble strong {
  font-weight: 600;
}

.reset-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  text-align: center;
  margin: 8px 0;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 2px 12px rgba(91, 155, 237, 0.3);
}

.reset-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(91, 155, 237, 0.4);
}

.reset-btn:active {
  transform: translateY(0);
}

.typing-indicator {
  display: flex;
  gap: 5px;
  padding: 14px 18px;
  align-items: center;
}

.typing-indicator .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-blue);
  animation: bounce 1.2s ease-in-out infinite;
}

.typing-indicator .dot:nth-child(2) { animation-delay: 0.15s; }
.typing-indicator .dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

.chat-input-area {
  padding: 12px 24px 24px;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

.privacy-note {
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 10px;
}

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

.chat-area::-webkit-scrollbar-track {
  background: transparent;
}

.chat-area::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

@media (max-width: 600px) {
  .greeting-hello {
    font-size: 24px;
  }
  .greeting-main {
    font-size: 24px;
  }
  .home-content {
    padding: 0 20px;
  }
  .home-input-area,
  .chat-input-area {
    padding-left: 16px;
    padding-right: 16px;
  }
  .chat-area {
    padding: 16px;
  }
  .message {
    max-width: 90%;
  }
}
