/* Chat panel tab bar and content areas */

.chat-panel-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* Tab bar */
.chat-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
  background: var(--bg-panel, #16161f);
  padding: 0 12px;
}

.chat-tab {
  position: relative;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  margin-bottom: -1px;
  transition: color 0.12s ease, border-color 0.12s ease;
  white-space: nowrap;
  font-family: var(--font-sans, "IBM Plex Sans", sans-serif);
  display: flex;
  align-items: center;
  gap: 5px;
}

.chat-tab:hover {
  color: rgba(255, 255, 255, 0.75);
}

.chat-tab--active {
  color: rgba(255, 255, 255, 0.9);
  border-bottom-color: var(--accent, #d14b28);
}

/* Unread badge on Chat tab */
.unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  background: var(--accent, #d14b28);
  color: #fff;
  line-height: 1;
}

/* Panel content areas */
.chat-panel__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.chat-panel__content[hidden] {
  display: none;
}

/* Log panel */
.log-entries {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Individual log entry */
.log-entry {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 7px 8px;
  border-radius: 4px;
  font-size: 13px;
}

.log-entry:hover {
  background: rgba(255, 255, 255, 0.04);
}

.log-entry__icon {
  font-size: 14px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
  line-height: 1.4;
  opacity: 0.45;
}


.log-entry__body {
  flex: 1;
  min-width: 0;
  line-height: 1.4;
}

.log-entry__title {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  display: block;
}

.log-entry__detail {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.log-entry__time {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  padding-top: 2px;
}
