/* Main styles - Dark mode theme */

:root {
  --bg-primary: #000000;
  --bg-secondary: #1A1A1A;
  --bg-tertiary: #2A2A2A;
  --text-primary: #FFFFFF;
  --text-secondary: #CCCCCC;
  --text-tertiary: #999999;
  --accent: #3B82F6;
  --accent-hover: #2563EB;
  --border: #333333;
  --code-bg: #1E1E1E;
  --error: #EF4444;
  --success: #10B981;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 14px;
  overflow: hidden;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

input,
textarea,
select {
  font-family: inherit;
  color: inherit;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  background-color: var(--code-bg);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
}

pre {
  background-color: var(--code-bg);
  padding: 16px;
  border-radius: 6px;
  overflow-x: auto;
  position: relative;
  margin: 12px 0;
}

pre code {
  background: none;
  padding: 0;
  display: block;
}

.copy-button {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  border: 1px solid var(--border);
}

.copy-button:hover {
  background-color: var(--accent);
}

.error-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: var(--error);
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 10000;
}

.error-toast.show {
  opacity: 1;
  transform: translateY(0);
}

#login-screen,
#chat-screen {
  width: 100%;
  height: 100vh;
  display: flex;
}

#login-screen {
  align-items: center;
  justify-content: center;
}

#chat-screen {
  flex-direction: row;
}
