/* ==========================================================================
   DAN WILLIAMS FOR CONGRESS - VIDEO NAVIGATOR STYLE SYSTEM
   ========================================================================== */

/* Montserrat & Inter Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@500;600;700;800;900&display=swap');

:root {
  /* Campaign Colors (Navy, Slate, Gold, Red Highlight) - Light Mode Optimized */
  --bg-dark-slate: #ffffff;      /* Body background is solid white */
  --bg-navy-blue: #133B61;       /* Main campaign Navy Blue */
  --bg-navy-glass: rgba(18, 59, 97, 0.75);
  --bg-card: #ffffff;            /* Solid white cards */
  --bg-card-glass: rgba(255, 255, 255, 0.95);
  
  --gold-primary: #c29a38;       /* Campaign gold */
  --gold-hover: #b08728;
  --gold-glow: rgba(194, 154, 56, 0.12);
  
  --red-highlight: #ef4444;      /* Red accent */
  --red-glow: rgba(239, 68, 68, 0.08);
  
  --cyan-primary: #0284c7;       /* Cyan accent for clips */
  --cyan-glow: rgba(2, 132, 199, 0.08);
  
  --border-slate: #e2e8f0;       /* Slate-200 border */
  --border-focus: rgba(194, 154, 56, 0.6);
  
  --text-primary: #0f172a;       /* Slate-900 for dark readable text */
  --text-secondary: #475569;     /* Slate-600 */
  --text-muted: #64748b;         /* Slate-500 */
  
  /* Layout Metrics */
  --sidebar-width: 390px;
  --border-radius: 16px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-premium: 0 10px 30px 0 rgba(0, 0, 0, 0.04);
  
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Base Styles & Resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #ffffff;
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* Premium Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* Premium Combined Campaign Header & Hero Banner */
.campaign-header-hero {
  background-color: var(--bg-navy-blue); /* Solid #133B61 base */
  background-image: url('hexagonHeader.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  padding: 16px 24px 22px 24px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.header-top-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1800px;
  margin: 0 auto 10px auto;
}

.banner-content {
  max-width: 850px;
  margin: 0 auto;
}

.banner-title {
  font-family: var(--font-display);
  font-size: 3.8rem;
  font-weight: 850;
  color: #ffffff;
  margin: 0 0 6px 0;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.banner-subheader {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  margin: 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.logo-link:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.campaign-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

/* Globe language selector */
.lang-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-left: 20px;
}

.lang-selector .globe-icon {
  font-size: 1.05rem;
}

.lang-selector .arrow-down {
  font-size: 0.55rem;
  font-weight: bold;
}

/* Nav Menu Links */
.header-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.2px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link .arrow-down {
  font-size: 0.55rem;
  font-weight: bold;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  color: var(--gold-primary);
  font-weight: 600;
}

/* Header Right Actions */
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.playback-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 16px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--gold-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(194, 154, 56, 0.7);
  animation: pulseGold 2s infinite;
}

@keyframes pulseGold {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(194, 154, 56, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(194, 154, 56, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(194, 154, 56, 0);
  }
}

.donate-btn {
  background-color: var(--gold-primary);
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 24px;
  border-radius: 100px; /* gold pill */
  border: 1px solid transparent;
  box-shadow: 0 4px 15px rgba(194, 154, 56, 0.3);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.donate-btn:hover {
  background-color: var(--gold-hover);
  box-shadow: 0 6px 20px rgba(176, 135, 40, 0.4);
  transform: translateY(-1px);
}

.admin-gear-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.admin-gear-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: rotate(30deg);
}

/* Dashboard Workspace Grid */
.dashboard-wrapper {
  flex: 1;
  display: flex;
  overflow: hidden;
  max-width: 1800px;
  width: 100%;
  margin: 0 auto;
}

/* Left Sidebar Layout */
.sidebar-pane {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background-color: var(--bg-navy-blue);
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sidebar-search-container {
  padding: 20px;
  background-color: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.search-box-wrapper {
  position: relative;
}

.search-box-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.search-input-field {
  width: 100%;
  background-color: #ffffff;
  border: 1px solid var(--border-slate);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  padding: 12px 38px 12px 42px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

.search-input-field:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-glow);
}

/* Horizontal Theme Filter Chips */
.theme-filters-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none; /* Firefox */
}

.theme-filters-scroll::-webkit-scrollbar {
  display: none; /* Safari/Chrome */
}

.theme-chip {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: var(--transition-smooth);
}

.theme-chip:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.theme-chip.active {
  background: linear-gradient(135deg, var(--gold-primary) 0%, #9b7925 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 10px var(--gold-glow);
}

/* Videos Feed List */
.videos-list-container {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.video-card {
  background: rgba(12, 21, 39, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: 16px;
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.video-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.video-card.active {
  background: rgba(194, 154, 56, 0.12);
  border-color: var(--gold-primary);
  box-shadow: 0 4px 20px rgba(194, 154, 56, 0.15);
}

.video-card.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 4px;
  background-color: var(--gold-primary);
  border-radius: 0 4px 4px 0;
}

.video-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-duration-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
}

.card-theme-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.5);
}

.video-card.active .card-theme-label {
  color: var(--gold-primary);
}

/* Card badges to distinguish full video vs clip */
.card-type-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.badge-full-video {
  color: #b49335;
  border: 1px solid rgba(194, 154, 56, 0.3);
  background: var(--gold-glow);
}

.badge-clip {
  color: var(--cyan-primary);
  border: 1px solid rgba(2, 132, 199, 0.3);
  background: var(--cyan-glow);
}

.card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.35;
  color: #ffffff;
}

.card-desc {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Match search indicator */
.card-match-count {
  font-size: 0.72rem;
  color: var(--red-highlight);
  background: var(--red-glow);
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 2px 8px;
  border-radius: 20px;
  width: fit-content;
  font-weight: 600;
}

/* Right main workspace layout */
.main-workspace-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background-color: #ffffff;
}

.video-workspace-grid {
  padding: 24px;
  display: flex;
  gap: 24px;
  background-color: var(--bg-navy-blue);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* video aspect frame 16/9 */
.player-aspect-frame {
  flex: 1.4;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 45px rgba(0, 0, 0, 0.35);
  position: relative;
}

/* Active Video details Card */
.active-video-details-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: rgba(12, 21, 39, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.active-video-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold-primary);
  letter-spacing: 1.2px;
  margin-bottom: 10px;
  display: block;
}

.active-video-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  color: #ffffff;
}

.active-video-summary {
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
  overflow-y: auto;
  max-height: 140px;
  padding-right: 8px;
}

.active-video-themes-pane {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 16px;
  margin-top: auto;
}

.themes-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  display: block;
  margin-bottom: 8px;
}

.themes-badge-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.theme-tag-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.theme-tag-badge:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: var(--gold-glow);
}

/* Lower Split Section: Interactive Transcript Timeline */
.transcript-workspace-section {
  padding: 0 24px 24px 24px;
  display: flex;
  flex-direction: column;
}

.transcript-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-slate);
  max-height: 400px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.transcript-card-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-slate);
  background: #f8fafc;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.transcript-card-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.transcript-card-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.transcript-lines-body {
  position: relative;
  overflow-y: auto;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #ffffff;
}

/* Transcript dialogue row */
.transcript-row-item {
  display: flex;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.transcript-row-item:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.transcript-row-item.active-highlight {
  background: var(--gold-glow);
  border-color: rgba(194, 154, 56, 0.25);
}

.row-timestamp {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-primary);
  background: var(--gold-glow);
  border: 1px solid rgba(194, 154, 56, 0.2);
  padding: 4px 10px;
  border-radius: 4px;
  height: fit-content;
  min-width: 65px;
  text-align: center;
}

.row-text-content {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #0f172a;
  flex: 1;
}

.transcript-row-item.active-highlight .row-text-content {
  color: #000000;
  font-weight: 600;
}

/* highlighted word matches */
mark.match-word-highlight {
  background-color: #fef08a; /* Warm yellow background */
  color: #854d0e;            /* Dark amber/brown text for excellent readability */
  border-radius: 4px;
  padding: 1px 4px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

/* loading/empty states */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 80px 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #e2e8f0;
  border-top-color: var(--gold-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.transcript-empty-state {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 60px 20px;
}

/* Premium Ingestion Admin Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-card {
  background: #ffffff;
  border: 1px solid var(--border-slate);
  border-radius: var(--border-radius);
  width: 100%;
  max-width: 800px;
  max-height: 90%;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-slate);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.close-modal-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.close-modal-btn:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

.modal-form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background-color: #ffffff;
  border: 1px solid var(--border-slate);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

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

.form-textarea {
  width: 100%;
  background-color: #ffffff;
  border: 1px solid var(--border-slate);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  resize: vertical;
  transition: var(--transition-smooth);
}

.form-textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
}

.form-helper-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

.url-input-row {
  display: flex;
  gap: 12px;
}

.url-input-row .form-input {
  flex: 1;
}

/* buttons */
.action-btn {
  background-color: var(--gold-primary);
  color: #fff;
  border: none;
  border-radius: var(--border-radius);
  padding: 10px 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.action-btn:hover {
  background-color: var(--gold-hover);
}

.secondary-btn {
  background: #f1f5f9;
  border: 1px solid var(--border-slate);
  color: var(--text-secondary);
  border-radius: var(--border-radius);
  padding: 10px 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.secondary-btn:hover {
  background: #e2e8f0;
  color: var(--text-primary);
}

.primary-btn {
  background-color: var(--gold-primary);
  border: none;
  color: #fff;
  border-radius: var(--border-radius);
  padding: 10px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(194, 154, 56, 0.25);
  transition: var(--transition-smooth);
}

.primary-btn:hover {
  background-color: var(--gold-hover);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--border-slate);
  padding-top: 20px;
  margin-top: 24px;
}

.form-divider {
  border: 0;
  height: 1px;
  background: var(--border-slate);
  margin: 24px 0;
}

.ingest-spinner-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Themes Segment Rows selector */
.themes-selector-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8fafc;
  padding: 14px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-slate);
}

.theme-select-row {
  display: grid;
  grid-template-columns: auto 1fr 100px 100px;
  align-items: center;
  gap: 12px;
}

.theme-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-primary);
  cursor: pointer;
}

.theme-check-input {
  cursor: pointer;
  accent-color: var(--gold-primary);
}

.time-range-input {
  width: 100%;
  background-color: #ffffff;
  border: 1px solid var(--border-slate);
  border-radius: 6px;
  color: var(--text-primary);
  padding: 6px 10px;
  font-size: 0.78rem;
  text-align: center;
}

.time-range-input:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.time-range-input-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: right;
}

/* Transcript preview items */
.transcript-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.transcript-source-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold-primary);
  background: var(--gold-glow);
  padding: 2px 8px;
  border-radius: 12px;
}

.transcript-lines-preview-box {
  background: #f8fafc;
  border: 1px solid var(--border-slate);
  border-radius: var(--border-radius);
  padding: 12px;
  max-height: 250px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.editor-line-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 10px;
  align-items: center;
}

.editor-line-time {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
}

.editor-line-input {
  background: #ffffff;
  border: 1px solid var(--border-slate);
  color: var(--text-primary);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.82rem;
  width: 100%;
}

.editor-line-input:focus {
  outline: none;
  border-color: var(--gold-primary);
}

/* Responsive Grid Breakpoints */
@media (max-width: 1100px) {
  .video-workspace-grid {
    flex-direction: column;
  }
  .player-aspect-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
  .active-video-details-card {
    width: 100%;
  }
  .transcript-workspace-section {
    padding: 0 24px 24px 24px;
  }
}

@media (max-width: 850px) {
  .campaign-header {
    height: auto;
    padding: 16px;
  }
  .header-container {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  .header-nav {
    flex-wrap: wrap;
    gap: 12px;
  }
  .header-right {
    width: 100%;
    justify-content: space-between;
  }
  .dashboard-wrapper {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }
  .sidebar-pane {
    width: 100%;
    height: 400px;
    border-right: none;
    border-bottom: 1px solid var(--border-slate);
  }
  .main-workspace-pane {
    overflow-y: visible;
  }
}

/* ==========================================================================
   NESTED VIDEO GROUPS & NESTED CLIP HIGHLIGHTS (Sidebar Refinement)
   ========================================================================== */
.video-group-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.nested-clips-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-left: 20px;
  padding-left: 14px;
  border-left: 2px dashed rgba(255, 255, 255, 0.15);
}

.clip-card-nested {
  background: rgba(12, 21, 39, 0.25);
  padding: 12px;
  gap: 6px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
}

.clip-card-nested:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.clip-card-nested.active {
  background: rgba(194, 154, 56, 0.12);
  border-color: var(--gold-primary);
  border-style: solid;
}

.clip-card-nested .card-title {
  font-size: 0.8rem;
  font-weight: 550;
}

.clip-card-nested .card-desc {
  font-size: 0.74rem;
  -webkit-line-clamp: 1; /* Clamp to single line for cleaner nested view */
}

.clip-card-nested .card-theme-label {
  font-size: 0.62rem;
}

.clip-card-nested .card-type-badge {
  font-size: 0.62rem;
  padding: 1px 6px;
}

.clip-card-nested .card-duration-badge {
  font-size: 0.66rem;
  padding: 1px 6px;
}

/* ==========================================================================
   CLEAR BUTTON & POPUP TOPICS FILTER DIALOG STYLING
   ========================================================================== */
.clear-search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.15rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 5;
}

.clear-search-btn:hover {
  color: var(--text-primary);
  background-color: #f1f5f9;
}

/* Sidebar filter trigger button */
.topic-filter-trigger-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius);
  color: #ffffff;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.topic-filter-trigger-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.topic-filter-trigger-btn.filter-active {
  background: linear-gradient(135deg, var(--gold-primary) 0%, #9b7925 100%);
  border-color: transparent;
  box-shadow: 0 4px 12px var(--gold-glow);
  padding-right: 38px;
}

.topic-filter-trigger-btn.filter-active .filter-btn-arrow {
  display: none;
}

.topic-filter-btn-wrapper {
  position: relative;
  width: 100%;
}

.clear-topic-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 5;
}

.clear-topic-btn:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.2);
}


.filter-btn-icon {
  margin-right: 8px;
  font-size: 1rem;
}

.filter-btn-label {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-btn-arrow {
  font-size: 0.65rem;
  opacity: 0.8;
  margin-left: 8px;
}

/* Topics Popup Modal Card size adjustment */
.topics-modal-card {
  max-width: 480px;
  width: 100%;
}

.topics-selection-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

.topic-selection-item {
  width: 100%;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topic-selection-item:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateX(2px);
}

.topic-selection-item.selected {
  background-color: var(--gold-glow);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  font-weight: 700;
}

.topic-selection-item.selected::after {
  content: "✓";
  font-weight: bold;
  color: var(--gold-primary);
  font-size: 0.9rem;
}

/* Card tag lists and tags badges */
.card-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.card-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: capitalize;
}

.video-card.active .card-tag {
  border-color: rgba(194, 154, 56, 0.3);
  background: rgba(194, 154, 56, 0.08);
  color: var(--gold-primary);
}

.clip-card-nested .card-tag {
  font-size: 0.65rem;
  padding: 1px 6px;
}
