:root {
  --bg: #0d0d0d;
  --fg: #e0e0e0;
  --primary: #00ff00;
  --secondary: #333333;
  --border: #444444;
  --error: #ff4444;
  --font-mono: 'Courier New', Courier, monospace;
}

* { box-sizing: border-box; }
body {
  margin: 0; padding: 0;
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
  display: flex;
  flex-direction: column;
  height: 100vh;
}
input, button, textarea, select {
  font-family: inherit;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--border);
  padding: 8px;
  outline: none;
}
button {
  cursor: pointer;
  background: var(--secondary);
}
button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Layout */
.full-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

#app-container {
  display: flex;
  height: 100vh;
}
#sidebar-left, #sidebar-right {
  width: 250px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
#main-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.panel-header {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  font-weight: bold;
  display: flex;
  justify-content: space-between;
}

.list-item {
  padding: 10px;
  border-bottom: 1px solid var(--secondary);
  cursor: pointer;
}
.list-item:hover, .list-item.active {
  background: var(--secondary);
  color: var(--primary);
}

/* Chat */
#chat-header {
  padding: 15px;
  border-bottom: 1px solid var(--border);
  font-weight: bold;
}
#chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  white-space: pre-wrap;
}
.message { margin-bottom: 10px; line-height: 1.4; }
.msg-role { color: var(--primary); font-weight: bold; }
.msg-content { color: var(--fg); }

#chat-input-container {
  padding: 10px;
  border-top: 1px solid var(--border);
  display: flex;
}
#chat-input {
  flex: 1;
  resize: none;
  height: 60px;
}

/* Modal */
.modal {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8); align-items: center; justify-content: center;
}
.modal-content {
  background: var(--bg);
  border: 1px solid var(--primary);
  padding: 20px; width: 400px;
  display: flex; flex-direction: column; gap: 10px;
}
