:root {
  --bg-primary: #0f1117;
  --bg-secondary: #1a1d26;
  --bg-tertiary: #252a37;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --border: #374151;
  --danger: #ef4444;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  height: 100vh;
  display: flex;
  overflow: hidden;
}

.skunkoai-container {
  display: flex;
  width: 100vw;
  height: 100vh;
}

/* Sidebar */
.skunkoai-sidebar {
  width: 280px;
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
}

.sidebar-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.new-chat-btn {
  background-color: var(--accent);
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.new-chat-btn:hover {
  background-color: var(--accent-hover);
}

.chat-list {
  list-style: none;
  overflow-y: auto;
  max-height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.chat-item {
  padding: 0.75rem;
  background-color: var(--bg-tertiary);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.chat-item:hover {
  background-color: #2e3546;
}

.chat-item.active {
  border-left: 4px solid var(--accent);
}

/* Main Chat Area */
.skunkoai-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  height: 100vh;
}

.chat-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background-color: var(--bg-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-messages {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message {
  max-width: 75%;
  padding: 0.85rem 1.15rem;
  border-radius: 12px;
  line-height: 1.5;
  font-size: 0.95rem;
  word-break: break-word;
}

.message.user {
  background-color: var(--accent);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.message.bot {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  border: 1px solid var(--border);
}

.chat-input-area {
  padding: 1.25rem 1.5rem;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
}

.chat-input {
  flex: 1;
  background-color: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
}

.chat-input:focus {
  border-color: var(--accent);
}

.send-btn {
  background-color: var(--accent);
  color: white;
  border: none;
  padding: 0 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.send-btn:hover {
  background-color: var(--accent-hover);
}
