/* Styles for the Codex Agent App static client */

body {
  margin: 0;
  background-color: #f8f9fa;
  color: #212529;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px;
}

h1 {
  margin-bottom: 16px;
  font-size: 1.6rem;
}

.layout {
  display: flex;
  gap: 16px;
}

.chat-panel {
  flex: 2;
  display: flex;
  flex-direction: column;
}

.chat {
  border: 1px solid #dee2e6;
  border-radius: 4px;
  background-color: #fff;
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  min-height: 400px;
}

.input-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

textarea {
  flex: 1;
  padding: 10px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  resize: vertical;
  font-size: 14px;
}

button {
  padding: 10px 16px;
  border: none;
  border-radius: 4px;
  background-color: #007bff;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

button:disabled {
  background-color: #6c757d;
  cursor: default;
}

.actions-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.actions-panel h2 {
  margin: 0 0 8px 0;
  font-size: 1.2rem;
}

.actions {
  overflow-y: auto;
  max-height: 500px;
}

.action-card {
  border: 1px solid #dee2e6;
  border-radius: 4px;
  background-color: #fff;
  padding: 12px;
  margin-bottom: 8px;
}

.action-card .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.action-card pre {
  white-space: pre-wrap;
  font-family: monospace;
  font-size: 12px;
  background-color: #f8f9fa;
  padding: 8px;
  border-radius: 4px;
  overflow-x: auto;
  margin: 0;
  line-height: 1.3;
}

.message {
  margin-bottom: 8px;
}

.message strong {
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.message p {
  margin: 0;
  white-space: pre-wrap;
}
