body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #101010;
  color: #fff;
}

.header {
  padding: 16px 20px;
  background-color: #181818;
  border-bottom: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-text {
  font-size: 1.6em;
  font-weight: bold;
  color: #00d4ff;
  background-color: #ffffff10;
  padding: 4px 10px;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
}

.title-text {
  font-size: 1.5em;
  font-weight: 600;
  color: #cccccc;
  text-shadow: 0 0 2px #00d4ff88;
}

.main-content {
  display: flex;
  flex-direction: row;
  padding: 20px;
  gap: 20px;
}

.left-panel {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.right-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chat-section, .log-section, .task-board, .system-health {
  background-color: #1b1b1b;
  padding: 16px;
  border-radius: 8px;
}

.chat-box {
  background-color: #242424;
  padding: 10px;
  height: 180px;
  overflow-y: auto;
  margin-bottom: 10px;
  border-radius: 4px;
}

.message {
  margin-bottom: 6px;
}

/* Ensure chat message colors match JS colorMap for consistency */
.chat-message[data-sender="Greg"] { color: #34d399; }
.chat-message[data-sender="Tom"] { color: #00ccff; }
.chat-message[data-sender="Dust"] { color: #facc15; }
.chat-message[data-sender="Warren"] { color: #f87171; }
.chat-message[data-sender="You"] { color: #ffffff; }
.chat-message[data-sender="System"] { color: #cccccc; font-style: italic; }

.chat-input {
  display: flex;
  gap: 8px;
}

.chat-input input {
  flex: 1;
  padding: 10px;
  background: #1e1e1e;
  border: 1px solid #333;
  color: white;
  border-radius: 6px;
}

.chat-input button {
  background-color: #00d4ff;
  color: black;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.log-box {
  background-color: #141414;
  padding: 10px;
  font-family: monospace;
  font-size: 0.9em;
  height: 150px;
  overflow-y: auto;
  border-radius: 4px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

th, td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #333;
}

.badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85em;
  font-weight: bold;
}

.completed {
  background-color: #00c27a;
  color: black;
}

.in-progress {
  background-color: #ffc107;
  color: black;
}

.failed {
  background-color: #ff4d4d;
  color: white;
}

.healthy {
  background-color: #00ff9d;
  color: black;
}

.warning {
  background-color: #ff9800;
  color: black;
}

.task-board, .system-health {
  max-height: 300px; /* Adjust as needed */
  overflow-y: auto;
}

.chat-input textarea {
  flex: 1;
  padding: 10px;
  background: #1e1e1e;
  border: 1px solid #333;
  color: white;
  border-radius: 6px;
  resize: none;
}

.log-button {
  background-color: #444;
  color: white;
  padding: 10px 14px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

/* Styles for task popup input fields */
#task-popup input[type="text"],
#task-popup select,
#task-popup textarea {
  border: 1px solid #00d4ff; /* Make borders more prominent */
  border-radius: 4px;
}