.logContainer {
  display: flex;
  flex-direction: column;
  width: 100%;
  font-family: var(--font-family);
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.scrollableContent {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-x: hidden;
  box-sizing: border-box;
  max-width: 100%;
}

.emptyState {
  padding: 40px 20px;
  text-align: center;
  color: var(--color-gray);
  font-size: 14px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* Dashboard Tree Styles */
.dashboardSection {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}


.dashboardContainer {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-x: hidden;
  box-sizing: border-box;
  max-width: 100%;
}

.dashboardContainer > .operationNode {
  min-width: 0;
  max-width: 100%;
}

.operationNode {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  min-width: 0;
  box-sizing: border-box;
}

.operationNodeIndented {
  border-left: 2px solid var(--color-border, #e0e0e0);
  position: relative;
}

.operationNodeIndented::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--color-border, #e0e0e0);
  opacity: 0.6;
}

.operationRow {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  min-height: 32px;
  min-width: 0;
  box-sizing: border-box;
}

.operationContent {
  flex: 1;
  display: flex !important;
  flex-direction: column !important;
  min-width: 0;
  box-sizing: border-box;
}

.operationHeader {
  display: flex !important;
  flex-direction: column !important;
  padding: 6px 12px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--object-radius-small);
  font-size: 13px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  min-height: 32px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  margin-top: 4px;
  box-sizing: border-box;
}

.operationHeaderRow {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 4px;
  min-width: 0;
  box-sizing: border-box;
}

.expandButton {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray);
  transition: color 0.2s ease;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.expandButton:hover {
  color: var(--color-text);
}

.expandButtonSpacer {
  width: 20px;
  display: inline-block;
  flex-shrink: 0;
}

.collapseIcon {
  font-size: 10px;
  display: inline-block;
  transition: transform 0.2s ease;
}

.collapseIcon.collapsed {
  transform: rotate(-90deg);
}

.operationIcon {
  font-size: 12px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--color-primary, #007bff);
  color: white;
  flex-shrink: 0;
}

.operationIcon[data-type="success"] {
  background-color: var(--color-success, #28a745);
  color: white;
}

.operationIcon[data-type="error"] {
  background-color: var(--color-error, #dc3545);
  color: white;
}

.operationIcon[data-type="warning"] {
  background-color: var(--color-warning, #ffc107);
  color: var(--color-text);
}

.operationIcon[data-type="info"] {
  background-color: var(--color-primary, #007bff);
  color: white;
}

.operationName {
  flex: 1;
  color: var(--color-text);
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.statusMessageTag {
  font-size: 11px;
  color: var(--color-gray);
  font-weight: 400;
  padding: 2px 6px;
  background-color: var(--color-highlight-gray);
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 8px;
}

.operationTimestamp {
  font-size: 11px;
  color: var(--color-gray);
  font-weight: 400;
  font-family: monospace;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 8px;
}

.statusBadge {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  background-color: var(--color-highlight-gray);
  color: var(--color-text);
  white-space: nowrap;
  flex-shrink: 0;
}

.statusBadge.statusCompleted {
  background-color: var(--color-success, #28a745);
  color: white;
}

.statusBadge.statusFailed {
  background-color: var(--color-error, #dc3545);
  color: white;
}

.statusBadge.statusRunning {
  background-color: var(--color-primary, #007bff);
  color: white;
}

.progressPercentage {
  font-size: 11px;
  color: var(--color-gray);
  font-weight: 600;
  min-width: 45px;
  text-align: right;
  flex-shrink: 0;
}

.progressBarContainer {
  height: 4px;
  background-color: var(--color-highlight-gray);
  border-radius: 2px;
  overflow: hidden;
  width: 100%;
}

.progressBar {
  height: 100%;
  background-color: var(--color-primary, #007bff);
  transition: width 0.3s ease;
}

.progressBar.progressCompleted {
  background-color: var(--color-success, #28a745);
}

.operationChildren {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

/* Log messages container */
.operationLogsContainer {
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-sizing: border-box;
}

.operationLogsList {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  border-left: 1px solid var(--color-border);
  margin-left: 30px; /* Align with header content: operationNode paddingLeft (12px) + header padding (12px) */
  min-width: 0;
  box-sizing: border-box;
}

.logEntry {
  display: flex;
  flex-direction: column;
  padding: 6px 8px;
  background-color: var(--color-surface);
  border-radius: var(--object-radius-small);
  border: 1px solid var(--color-border);
  min-width: 0;
  box-sizing: border-box;
  margin-top: 4px;
}

.logEntryHeader {
  display: flex;
  align-items: center;
  font-size: 11px;
  flex-wrap: wrap;
  min-width: 0;
  box-sizing: border-box;
}

.logTimestamp {
  color: var(--color-gray);
  font-weight: 500;
  font-family: monospace;
  flex-shrink: 0;
}

.logEntryMessage {
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.4;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
}

.logProgress {
  font-size: 10px;
  color: var(--color-gray);
  font-weight: 600;
  flex-shrink: 0;
}

/* Dark theme support for log entries */
[data-theme="dark"] .logEntry {
  background-color: var(--color-surface-dark);
  border-color: var(--color-border-dark);
}

[data-theme="dark"] .logTimestamp {
  color: var(--color-gray-dark);
}

[data-theme="dark"] .logEntryMessage {
  color: var(--color-text-dark);
}

[data-theme="dark"] .operationLogsList {
  border-left-color: var(--color-border-dark);
}

/* Dark theme support for dashboard */
[data-theme="dark"] .operationHeader {
  background-color: var(--color-surface-dark);
  border-color: var(--color-border-dark);
}

[data-theme="dark"] .operationName {
  color: var(--color-text-dark);
}

[data-theme="dark"] .statusBadge {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-text-dark);
}

[data-theme="dark"] .progressPercentage {
  color: var(--color-gray-dark);
}

[data-theme="dark"] .progressBarContainer {
  background-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .operationNode[data-depth] {
  border-left-color: var(--color-border-dark);
}

