/* ============================================
   Digital Anima — Right Panel / Sidebar Styles
   ============================================ */

/* --- Right Panel --- */
.panel-right {
  width: 380px;
  min-width: 380px;
  display: flex;
  flex-direction: column;
}

/* --- Right Panel Tabs (State / Activity) --- */
.right-tabs {
  display: flex;
  padding: 10px 12px 0;
  gap: 4px;
  flex-shrink: 0;
}

.right-tab {
  flex: 1;
  padding: 8px 6px;
  border: none;
  background: var(--aw-color-bg-secondary);
  color: var(--aw-color-text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
}

.right-tab:hover,
.right-tab:active {
  background: var(--aw-color-bg-tertiary);
}

.right-tab:focus-visible {
  outline: 2px solid var(--aw-color-accent);
  outline-offset: -2px;
}

.right-tab.active {
  background: var(--aw-color-accent);
  color: var(--aw-color-bg-primary);
}

/* --- Tab Content --- */
.right-tab-content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--aw-color-border-light);
}

.tab-pane {
  display: none;
  flex: 1;
  min-height: 0;
  flex-direction: column;
}

.tab-pane.active {
  display: flex;
}

/* --- State content --- */
.state-content {
  padding: 10px 16px 12px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--aw-color-text-secondary);
  overflow-y: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  flex: 1;
  min-height: 0;
}
