/* Dev Panel Styles */

.dev-toggle {
  background: #374151;
  border: 1px solid #4b5563;
  color: #9ca3af;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.625rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s;
  margin-left: auto;
}

.dev-toggle:hover {
  background: #4b5563;
  color: #fff;
}

.dev-toggle.active {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

#dev-panel {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 400px;
  height: 300px;
  background: #1a1a25;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px 8px 0 0;
  display: none;
  flex-direction: column;
  z-index: 1500;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

#dev-panel.visible {
  display: flex;
}

.dev-tabs {
  display: flex;
  background: #12121a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.dev-tab {
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #64748b;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.dev-tab:hover {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
}

.dev-tab.active {
  color: #22c55e;
  border-bottom-color: #22c55e;
}

.dev-content {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dev-panel-content {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.dev-panel-content.active {
  display: flex;
}

.panel-header {
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

/* Logs Panel */
.logs-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.log-entry {
  display: flex;
  gap: 8px;
  padding: 4px 8px;
  font-size: 0.75rem;
  border-radius: 4px;
  margin-bottom: 4px;
}

.log-time {
  color: #64748b;
  flex-shrink: 0;
}

.log-type {
  font-weight: 600;
  flex-shrink: 0;
  min-width: 50px;
}

.log-message {
  color: #94a3b8;
  word-break: break-all;
}

.log-system {
  background: rgba(59, 130, 246, 0.1);
}
.log-system .log-type {
  color: #3b82f6;
}

.log-tool {
  background: rgba(245, 158, 11, 0.1);
}
.log-tool .log-type {
  color: #f59e0b;
}

.log-agent {
  background: rgba(249, 115, 22, 0.1);
}
.log-agent .log-type {
  color: #f97316;
}

.log-error {
  background: rgba(239, 68, 68, 0.1);
}
.log-error .log-type {
  color: #ef4444;
}

/* Agent Inspector */
.agent-inspector {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.inspector-section {
  margin-bottom: 12px;
}

.inspector-label {
  font-size: 0.625rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.inspector-value {
  font-size: 0.8125rem;
  color: #cbd5e1;
  word-break: break-all;
}

.inspector-code {
  background: #0a0a0f;
  padding: 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #a5f3fc;
  overflow-x: auto;
  margin: 0;
}

/* Runtime Agents */
.runtime-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.runtime-agent {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  margin-bottom: 8px;
}

.runtime-agent-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.runtime-agent-name {
  font-size: 0.875rem;
  color: #fff;
  font-weight: 500;
}

.runtime-agent-type {
  font-size: 0.625rem;
  color: #64748b;
  text-transform: uppercase;
}

.runtime-delete-btn {
  background: #dc2626;
  border: none;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.625rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.2s;
}

.runtime-delete-btn:hover {
  background: #b91c1c;
}

/* Tool Inspector */
.tool-inspector {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

/* Empty State */
.empty-state {
  padding: 20px;
  text-align: center;
  color: #64748b;
  font-size: 0.8125rem;
  font-style: italic;
}

/* Agent Controls */
.agent-controls {
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.agent-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.control-btn {
  background: #374151;
  border: 1px solid #4b5563;
  color: #cbd5e1;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.control-btn:hover {
  background: #4b5563;
  color: #fff;
}

.control-btn.danger {
  background: #7f1d1d;
  border-color: #991b1b;
}

.control-btn.danger:hover {
  background: #991b1b;
}

.control-btn.spawn {
  background: #166534;
  border-color: #15803d;
}

.control-btn.spawn:hover {
  background: #15803d;
}

/* Spawn Form */
.spawn-form {
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.spawn-header {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.spawn-form input {
  width: 100%;
  padding: 8px;
  background: #0a0a0f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #cbd5e1;
  font-size: 0.8125rem;
  margin-bottom: 8px;
}

.spawn-form input:focus {
  outline: none;
  border-color: #22c55e;
}

.spawn-form input::placeholder {
  color: #4b5563;
}

/* Runtime Agent Actions */
.runtime-agent-actions {
  display: flex;
  gap: 4px;
}

.runtime-btn {
  background: #374151;
  border: none;
  color: #cbd5e1;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.625rem;
  cursor: pointer;
  transition: all 0.2s;
}

.runtime-btn:hover {
  background: #4b5563;
}

.runtime-btn.select:hover {
  background: #166534;
}

.runtime-btn.terminal:hover {
  background: #7c3aed;
}

.runtime-btn.delete {
  background: #7f1d1d;
}

.runtime-btn.delete:hover {
  background: #991b1b;
}

/* Tool Caller */
.tool-caller {
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.tool-caller-header {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.tool-caller input,
.tool-caller textarea {
  width: 100%;
  padding: 8px;
  background: #0a0a0f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #cbd5e1;
  font-size: 0.8125rem;
  margin-bottom: 8px;
  font-family: monospace;
}

.tool-caller textarea {
  min-height: 60px;
  resize: vertical;
}

.tool-caller input:focus,
.tool-caller textarea:focus {
  outline: none;
  border-color: #22c55e;
}

.tool-caller input::placeholder,
.tool-caller textarea::placeholder {
  color: #4b5563;
}
