/* ===== ClawInfoModal 龙虾详情弹窗样式 ===== */

/* 弹窗容器 */
.claw-info-modal .semi-modal-content {
  padding: 0 !important;
  border-radius: 18px;
  overflow: hidden;
}

.claw-info-container {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 720px;
  max-height: 88vh;
  background: #f7f6f3;
}

/* Header */
.claw-info-header {
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 20px 32px 0;
  flex-shrink: 0;
}

.claw-info-title-row {
  padding-bottom: 16px;
}

.claw-info-title h1 {
  font-size: 18px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.85);
  margin: 0 0 4px;
}

.claw-info-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.4);
}

.claw-info-meta__sep {
  color: rgba(0, 0, 0, 0.2);
}

.claw-info-meta__status {
  display: flex;
  align-items: center;
  gap: 4px;
}

.claw-info-meta__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d1d5db;
}

.claw-info-meta__status[data-status="running"] {
  color: var(--wk-color-success);
}

.claw-info-meta__status[data-status="running"] .claw-info-meta__dot {
  background: var(--wk-color-success);
}

.claw-info-meta__status[data-status="idle"] {
  color: var(--wk-color-warning);
}

.claw-info-meta__status[data-status="idle"] .claw-info-meta__dot {
  background: var(--wk-color-warning);
}

/* 上报时间指示器 */
.claw-info-meta__report-time {
  display: flex;
  align-items: center;
  cursor: help;
  transition: opacity 0.15s ease;
}

.claw-info-meta__report-time:hover {
  opacity: 0.7;
}

.claw-info-meta__report-time-icon {
  margin-right: 4px;
}

/* 上报时间新鲜度颜色 */
.claw-info-meta__report-time[data-freshness="green"] {
  color: var(--wk-color-success);
}

.claw-info-meta__report-time[data-freshness="orange"] {
  color: var(--wk-color-warning);
}

.claw-info-meta__report-time[data-freshness="red"] {
  color: var(--wk-color-danger);
}

/* Tabs */
.claw-info-tabs {
  display: flex;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0 32px;
  flex-shrink: 0;
}

.claw-info-tab {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.4);
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.claw-info-tab:hover {
  color: #7171ee;
}

.claw-info-tab.active {
  color: #7171ee;
  border-bottom-color: #7171ee;
}

/* Tab Content */
.claw-info-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px;
  background: #fff;
  min-height: 0; /* 允许 flex 子元素收缩 */
}

/* 核心文件 Tab 特殊处理：保留 padding，通过内层容器计算高度 */
.claw-info-content:has(.claw-core-files-tab) {
  overflow: hidden; /* 防止双层滚动 */
}

/* 核心文件 Tab 的 panel 容器需要 100% 高度传递 */
.claw-info-content #panel-files {
  height: 100%;
}

/* Session Tab */
.claw-session-tab {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.claw-session-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* 统计信息右对齐 */
  margin-bottom: 0;
}

.claw-session-count {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.45);
}

.claw-session-count__running {
  color: #16a34a;
  font-weight: 600;
}

.claw-session-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Loading & Error */
.claw-info-loading,
.claw-info-error {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
}

.claw-info-placeholder {
  padding: 80px 24px;
  text-align: center;
  color: rgba(0, 0, 0, 0.35);
  font-size: 14px;
}
