/* Status Panel - persistent bottom panel for todos and command output */

.claudian-status-panel-container {
  flex-shrink: 0;
  padding: 0 14px;
}

.claudian-status-panel {
  padding-top: 12px;
}

/* Todo Section */

.claudian-status-panel-todos {
  margin-top: 4px;
}

.claudian-status-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s ease;
  overflow: hidden;
}

.claudian-status-panel-header:hover {
  background: var(--background-modifier-hover);
}

.claudian-status-panel-header:focus-visible {
  outline: 2px solid var(--interactive-accent);
  outline-offset: 2px;
}

.claudian-status-panel-icon {
  display: flex;
  align-items: center;
  color: var(--text-accent);
  flex-shrink: 0;
}

.claudian-status-panel-icon svg {
  width: 16px;
  height: 16px;
}

.claudian-status-panel-label {
  font-family: var(--font-monospace);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-normal);
}

.claudian-status-panel-current {
  flex: 1;
  font-family: var(--font-monospace);
  font-size: 13px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.claudian-status-panel-status {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.claudian-status-panel-status svg {
  width: 14px;
  height: 14px;
}

.claudian-status-panel-status.status-completed {
  color: var(--color-green);
}

.claudian-status-panel-content {
  padding: 2px 0;
}

/* Individual todo item - shared by status panel and inline tool via .claudian-todo-list-container */
.claudian-todo-list-container .claudian-todo-item {
  display: flex;
  align-items: flex-start;
  padding: 1px 0;
}

.claudian-todo-list-container .claudian-todo-status-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.claudian-todo-list-container .claudian-todo-status-icon svg {
  width: 12px;
  height: 12px;
}

.claudian-todo-list-container .claudian-todo-text {
  font-family: var(--font-monospace);
  font-size: 12px;
  line-height: 1.4;
  flex: 1;
  padding-left: 12px;
}

.claudian-todo-list-container .claudian-todo-pending .claudian-todo-status-icon {
  color: var(--text-normal);
}

.claudian-todo-list-container .claudian-todo-pending .claudian-todo-status-icon svg {
  transform: scale(2);
}

.claudian-todo-list-container .claudian-todo-pending .claudian-todo-text {
  color: var(--text-normal);
}

.claudian-todo-list-container .claudian-todo-in_progress .claudian-todo-status-icon {
  color: var(--interactive-accent);
}

.claudian-todo-list-container .claudian-todo-in_progress .claudian-todo-status-icon svg {
  transform: scale(2);
}

.claudian-todo-list-container .claudian-todo-in_progress .claudian-todo-text {
  color: var(--text-normal);
}

.claudian-todo-list-container .claudian-todo-completed .claudian-todo-status-icon {
  color: var(--color-green);
}

.claudian-todo-list-container .claudian-todo-completed .claudian-todo-text {
  color: var(--text-muted);
}

/* Bash Output Section */

.claudian-status-panel-bash {
  margin-bottom: 4px;
}

.claudian-status-panel-bash-header {
  padding: 4px 0;
}

.claudian-status-panel-bash-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.claudian-status-panel-bash-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  color: var(--text-muted);
}

.claudian-status-panel-bash-action:hover {
  background: var(--background-modifier-hover);
  color: var(--text-normal);
}

.claudian-status-panel-bash-content {
  padding-top: 2px;
  max-height: 320px;
  max-height: min(40vh, 320px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.claudian-status-panel-bash-entry {
  margin: 4px 0;
}

.claudian-status-panel-bash-entry .claudian-tool-icon svg {
  width: 14px;
  height: 14px;
  position: relative;
  top: -1px;
}

.claudian-status-panel-bash-entry .claudian-tool-call {
  margin: 0;
}

/* Keep bash output blocks from growing without bound */
.claudian-status-panel-bash-entry .claudian-tool-result-text {
  max-height: 200px;
  overflow-y: auto;
  word-break: break-word;
}
