/* ai gen css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #0f1116;
  color: #c9d1d9;
  display: flex;
  height: 100vh;
}

.setup-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.setup-container {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 40px;
  width: 90%;
  max-width: 400px;
}

.setup-container h1 {
  font-size: 28px;
  margin-bottom: 24px;
  text-align: center;
  color: #52b69a;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 14px;
  color: #8b949e;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 6px;
  color: #c9d1d9;
  font-size: 14px;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #52b69a;
  box-shadow: 0 0 0 3px rgba(82, 182, 154, 0.1);
}

.button-group {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

button {
  flex: 1;
  padding: 10px;
  background: #52b69a;
  border: none;
  border-radius: 6px;
  color: #0f1116;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover {
  background: #45a886;
}

button:active {
  background: #3a9373;
}

.hidden {
  display: none;
}

.error-message {
  background: #3d1f1f;
  border: 1px solid #da3633;
  border-radius: 6px;
  color: #f85149;
  padding: 10px 12px;
  margin-bottom: 16px;
  font-size: 13px;
}

.success-message {
  background: #1f3a1f;
  border: 1px solid #26a641;
  border-radius: 6px;
  color: #3fb950;
  padding: 10px 12px;
  margin-bottom: 16px;
  font-size: 13px;
  word-break: break-all;
  line-height: 1.5;
}

.step-info {
  font-size: 14px;
  color: #8b949e;
  margin-bottom: 20px;
  text-align: center;
}

.chat-container {
  display: flex;
  width: 100%;
  height: 100%;
}

.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #0f1116;
}

.chat-header {
  padding: 16px 24px;
  border-bottom: 1px solid #30363d;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h1 {
  font-size: 18px;
  color: #c9d1d9;
}

.user-count {
  font-size: 12px;
  color: #8b949e;
}

.messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.message {
  margin-bottom: 16px;
  line-height: 1.4;
}

.message-author {
  font-weight: 600;
  color: #52b69a;
  font-size: 13px;
}

.message-time {
  font-size: 11px;
  color: #8b949e;
  margin-left: 8px;
}

.message-text {
  color: #c9d1d9;
  font-size: 14px;
  margin-top: 4px;
  word-break: break-word;
}

.input-area {
  padding: 16px 24px;
  border-top: 1px solid #30363d;
  display: flex;
  gap: 8px;
}

.input-area input {
  flex: 1;
  padding: 10px 12px;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 6px;
  color: #c9d1d9;
  font-size: 14px;
  font-family: inherit;
}

.input-area input:focus {
  outline: none;
  border-color: #52b69a;
}

.input-area button {
  padding: 10px 16px;
  background: #52b69a;
  color: #0f1116;
}

.system-message {
  color: #8b949e;
  font-size: 13px;
  font-style: italic;
  text-align: center;
  margin: 12px 0;
}
