/* Make CopilotKit UI fill the screen */
#root {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* AgentExecutionView Styles */
.agent-execution-view-container {
  display: flex;
  flex-direction: column;
  height: 100%; /* Fill the container from page.tsx */
  width: 100%;
  background-color: #ffffff;
  border-radius: 8px; /* Consistent with current chat */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden; /* Contains the scrolling log area */
}

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

.agent-execution-header h2 {
  margin: 0;
  font-size: 1.25rem;
  color: #333;
}

.agent-execute-button {
  padding: 10px 20px;
  font-size: 1rem;
  color: #fff;
  background-color: #007bff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.agent-execute-button:hover {
  background-color: #0056b3;
}

.agent-execute-button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.process-log-area {
  flex-grow: 1;
  padding: 16px 24px;
  overflow-y: auto;
  background-color: #f9f9f9;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
  font-size: 0.9rem;
  line-height: 1.6;
}

.log-entry {
  padding: 8px 0;
  border-bottom: 1px dashed #eee;
  display: flex;
  flex-wrap: nowrap;
}

.log-entry:last-child {
  border-bottom: none;
}

.log-entry.system .log-entry-content {
  color: #888;
  font-style: italic;
}

.log-entry-role {
  min-width: 60px; /* Adjust as needed */
  font-weight: bold;
  margin-right: 12px;
  color: #555;
}

.log-entry.assistant .log-entry-role {
  color: #007bff; /* Blue for agent role */
}

.log-entry-content {
  flex-grow: 1;
  word-break: break-word;
}

.log-entry-timestamp {
  margin-left: 16px;
  font-size: 0.8em;
  color: #aaa;
  white-space: nowrap;
} 

.copilotKitInput {
  border-bottom-left-radius: 0.75rem;
  border-bottom-right-radius: 0.75rem;
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
  border: 1px solid var(--copilot-kit-separator-color) !important;
  background-color: #fff;
}

.copilotKitChat {
  background-color: #fff !important;
}

/* Dotted background for agent-execution-body */
.agent-execution-body {
  height: 100%;
  width: 100%;
  background-image: radial-gradient(var(--dot-color, #cbd5e1) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Support for dark mode if a parent sets [data-theme=dark] or .dark class */
[data-theme="dark"] .agent-execution-body,
.dark .agent-execution-body {
  --dot-color: #b03c3c;
}

/* Default for light mode */
.agent-execution-body {
  --dot-color: #cbd5e1;
}

/* styles.css */
