/* === DASHBOARD LAYOUT === */
.dash-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.dash-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-link {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--fg);
}

.dash-main {
  padding: 48px 0 100px;
}

.dash-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}

.dash-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 6px;
}

.dash-subtitle {
  color: var(--fg-muted);
  font-size: 15px;
}

/* === BUTTONS === */
.btn-primary {
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.btn-primary:hover { opacity: 0.85; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-approve {
  background: rgba(0, 255, 136, 0.12);
  color: var(--accent);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 7px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.15s;
  flex: 1;
}

.btn-approve:hover {
  background: rgba(0, 255, 136, 0.2);
}

.btn-reject {
  background: rgba(255, 107, 53, 0.1);
  color: var(--accent-secondary);
  border: 1px solid rgba(255, 107, 53, 0.3);
  border-radius: 7px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.15s;
  flex: 1;
}

.btn-reject:hover {
  background: rgba(255, 107, 53, 0.2);
}

/* === SUBMIT FORM === */
.submit-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  overflow: hidden;
  max-height: 200px;
  transition: max-height 0.3s ease, opacity 0.2s;
}

.submit-form.hidden {
  max-height: 0;
  padding: 0 24px;
  opacity: 0;
  border-color: transparent;
  margin-bottom: 0;
}

.form-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.flex-1 { flex: 1; min-width: 200px; }
.form-group-submit { justify-content: flex-end; }

.form-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--fg-dim);
  font-family: var(--font-mono);
}

.form-input {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 10px 14px;
  color: var(--fg);
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.15s;
}

.form-input:focus { border-color: var(--accent); }

.submit-status {
  margin-top: 12px;
  font-size: 13px;
  min-height: 18px;
}
.submit-status.error { color: var(--accent-secondary); }
.submit-status.success { color: var(--accent); }
.submit-status.info { color: var(--fg-muted); }

/* === STATS BAR === */
.stats-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.stat-pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 100px;
}

.stat-pill-num {
  font-size: 24px;
  font-weight: 700;
  font-family: var(--font-mono);
  line-height: 1;
}

.stat-pill-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--fg-dim);
}

.pending-color { color: #f0b429; }
.approved-color { color: var(--accent); }

/* === SECTION TITLES === */
.clip-section {
  margin-bottom: 56px;
}

.section-title {
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--fg-muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-tag {
  color: var(--fg-dim);
  font-size: 10px;
}

.approved-tag { color: var(--accent); }

.count-badge {
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 100px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
}

/* === CLIP GRID === */
.clip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.clip-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.15s;
}

.clip-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.clip-card-header {
  padding: 14px 14px 0;
}

.clip-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.clip-platform {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-family: var(--font-mono);
  padding: 3px 8px;
  border-radius: 4px;
}

.platform-twitch { background: rgba(145, 70, 255, 0.2); color: #9146ff; }
.platform-youtube { background: rgba(255, 0, 0, 0.15); color: #ff4444; }

.clip-score {
  font-size: 11px;
  color: var(--fg-dim);
  font-family: var(--font-mono);
}

.score-val {
  color: var(--fg-muted);
  font-weight: 600;
}

.clip-thumbnail-placeholder {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-elevated);
  aspect-ratio: 16/9;
  margin-bottom: 0;
}

.clip-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.clip-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
}

.clip-thumb-icon {
  font-size: 24px;
  color: var(--fg-dim);
}

.clip-time-overlay {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: var(--fg);
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.clip-card-body {
  padding: 14px;
  flex: 1;
}

.clip-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
  color: var(--fg);
}

.clip-stream-name {
  font-size: 12px;
  color: var(--fg-dim);
  margin-bottom: 10px;
}

.clip-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.signal-tag {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--fg-dim);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
}

.clip-card-actions {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
}

.clip-card-actions.reviewed {
  justify-content: center;
}

.reviewed-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* === STATUS BADGES === */
.status-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 9px;
  border-radius: 5px;
  font-family: var(--font-mono);
}

.status-badge-pending_review { background: rgba(240, 180, 41, 0.15); color: #f0b429; }
.status-badge-approved { background: var(--accent-dim); color: var(--accent); }
.status-badge-rejected { background: rgba(255, 107, 53, 0.12); color: var(--accent-secondary); }

.stream-status {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-mono);
  padding: 2px 8px;
  border-radius: 4px;
}

.status-done { background: var(--accent-dim); color: var(--accent); }
.status-queued { background: rgba(240, 180, 41, 0.15); color: #f0b429; }
.status-processing { background: rgba(100, 149, 237, 0.15); color: #6495ed; }
.status-error { background: rgba(255, 107, 53, 0.15); color: var(--accent-secondary); }

/* === APPROVED CLIP LIST === */
.clip-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.clip-list-row {
  display: grid;
  grid-template-columns: 70px 1fr 1fr 60px;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.clip-list-row:last-child { border-bottom: none; }

.clip-list-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-dim);
}

.clip-list-title { font-weight: 500; }

.clip-list-meta {
  font-size: 13px;
  color: var(--fg-muted);
}

.clip-list-score {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  text-align: right;
}

/* === STREAM LIST === */
.stream-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.stream-row {
  display: grid;
  grid-template-columns: 80px 1fr 90px;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.15s;
}

.stream-row:last-child { border-bottom: none; }

.stream-row:hover {
  background: var(--bg-elevated);
}

.stream-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 3px;
}

.stream-meta {
  font-size: 12px;
  color: var(--fg-dim);
}

/* === EMPTY STATE === */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--fg-muted);
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
}

.empty-sub {
  font-size: 14px;
  color: var(--fg-muted);
}

/* === STREAM DETAIL === */
.stream-detail-badge {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-dim);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .dash-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .clip-list-row {
    grid-template-columns: 60px 1fr;
    grid-template-rows: auto auto;
  }
  .clip-list-meta, .clip-list-score {
    display: none;
  }
  .stream-row {
    grid-template-columns: 70px 1fr;
  }
  .stream-status { display: none; }
  .form-row {
    flex-direction: column;
  }
  .form-group.flex-1 { min-width: unset; }
  .stats-bar {
    gap: 10px;
  }
  .stat-pill {
    min-width: 80px;
    padding: 12px 14px;
  }
}
