/* GameVox Agent Dashboard - Three-Panel Layout */

.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* ─── Top Bar ─── */

.top-bar {
  display: flex;
  align-items: center;
  height: 52px;
  min-height: 52px;
  padding: 0 16px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  gap: 12px;
  z-index: 100;
}

.top-bar__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 15px;
  color: var(--primary);
  white-space: nowrap;
  user-select: none;
}

.top-bar__brand svg {
  width: 24px;
  height: 24px;
}

.top-bar__nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
}

.top-bar__nav-item {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  background: none;
  user-select: none;
}

.top-bar__nav-item:hover {
  color: var(--text);
  background: var(--hover-overlay);
}

.top-bar__nav-item.active {
  color: var(--text);
  background: var(--active-overlay);
}

.top-bar__search {
  position: relative;
  flex: 0 1 360px;
  margin-left: auto;
}

.top-bar__search-input {
  width: 100%;
  padding: 7px 12px 7px 34px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  transition: border-color var(--transition-fast);
}

.top-bar__search-input::placeholder {
  color: var(--text-muted);
}

.top-bar__search-input:focus {
  outline: none;
  border-color: var(--primary);
}

.top-bar__search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.top-bar__search-kbd {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-primary);
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid var(--border);
  pointer-events: none;
}

.top-bar__actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.top-bar__badge-group {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 8px;
}

.top-bar__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  white-space: nowrap;
}

.top-bar__badge--pending {
  background: rgba(235, 117, 56, 0.15);
  color: var(--primary);
}

.top-bar__badge--csam {
  background: rgba(220, 38, 38, 0.15);
  color: var(--severity-csam);
}

.top-bar__icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  background: none;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.top-bar__icon-btn:hover {
  color: var(--text);
  background: var(--hover-overlay);
}

.top-bar__icon-btn svg {
  width: 18px;
  height: 18px;
}

.top-bar__agent-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
  border-radius: var(--radius-md);
}

.top-bar__agent-status .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}

.top-bar__profile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border: none;
  background: none;
  color: var(--text);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
}

.top-bar__profile:hover {
  background: var(--hover-overlay);
}

.top-bar__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}

/* ─── Workspace (Three Panels) ─── */

.workspace {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

/* ─── Queue Panel (Left) ─── */

.panel-queue {
  width: 280px;
  min-width: 280px;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  overflow: hidden;
}

/* ─── Detail Panel (Center) ─── */

.panel-detail {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  background: var(--bg-primary);
}

/* ─── Context Panel (Right) ─── */

.panel-context {
  width: 320px;
  min-width: 320px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  overflow: hidden;
  transition: width var(--transition-normal), min-width var(--transition-normal), max-width var(--transition-normal), opacity var(--transition-normal);
}

.panel-context.collapsed {
  width: 0;
  min-width: 0;
  max-width: 0;
  opacity: 0;
  border-left: none;
  overflow: hidden;
}

/* ─── Panel Shared ─── */

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  min-height: 44px;
}

.panel-header__title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.panel-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

/* ─── Empty States ─── */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 32px;
  text-align: center;
}

.empty-state__icon {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.empty-state__text {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 240px;
  line-height: 1.5;
}

/* ─── Content Mode (Full Width) ─── */

.workspace--content .panel-queue,
.workspace--content .panel-context {
  display: none;
}

.workspace--content .panel-detail {
  flex: 1;
}
