/* WDR Aspen Theme for Igniton Client */
/* Professional, clean design matching WDR Aspen's branding */

:root {
  --wdr-navy: #1a365d;
  --wdr-dark-blue: #2d3748;
  --wdr-light-blue: #4299e1;
  --wdr-gray: #718096;
  --wdr-light-gray: #f7fafc;
  --wdr-white: #ffffff;
  --wdr-accent: #3182ce;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--wdr-dark-blue);
  background: var(--wdr-light-gray);
  font-size: 16px;
}

/* Header styling */
.header {
  background: var(--wdr-navy);
  padding: 20px 30px;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  position: relative;
}

/* Logo container (if logos are configured in theme) */
.header-logos {
  position: absolute;
  top: 20px;
  right: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 10;
}

/* Logo styling */
.header-logo {
  object-fit: contain;
}

.header-logo-center {
  order: 1;
}

.breadcrumb {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 500;
}

.breadcrumb a {
  color: var(--wdr-white);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
}

#page-title {
  color: var(--wdr-white);
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

/* Main content area */
.persona-overview {
  padding: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Professional card styling */
.persona-details-report {
  background: var(--wdr-white);
  border-radius: 8px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  overflow: hidden;
  margin-bottom: 24px;
}

.persona-header {
  background: linear-gradient(135deg, var(--wdr-accent) 0%, var(--wdr-light-blue) 100%);
  padding: 30px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 24px;
}

.persona-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--wdr-light-blue);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.persona-image:hover {
  transform: scale(1.05);
}

.persona-archetype-name {
  color: var(--wdr-white);
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
}

.persona-individual-name {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  font-weight: 500;
  margin: 4px 0 0 0;
}

/* Accordion styling */
.accordion {
  background: var(--wdr-white);
}

.accordion-header {
  background: var(--wdr-white);
  border: none;
  border-bottom: 1px solid #e2e8f0;
  padding: 20px 30px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--wdr-navy);
  text-align: left;
  width: 100%;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-header:hover {
  background: #f8fafc;
  color: var(--wdr-accent);
}

.accordion-header.active {
  background: var(--wdr-navy);
  color: var(--wdr-white);
}

.accordion-header.active .category-kpis .kpi-metric {
  color: var(--wdr-white);
}

.accordion-header.active .category-kpis .kpi-metric i {
  color: var(--wdr-white);
}

/* KUBAA Stage KPI styling for active accordion headers */
.accordion-header.active .kubaa-stage-kpis .kpi-metric {
  color: var(--wdr-white);
}

.accordion-header.active .kubaa-stage-kpis .kpi-metric i {
  color: var(--wdr-white);
}

.accordion-header::after {
  content: '+';
  color: var(--wdr-accent);
  font-size: 1.5rem;
  font-weight: 600;
}

.accordion-header.active::after {
  content: '-';
  color: var(--wdr-white);
}

/* Progress bars in main accordion headers (Progression Layer, etc.) */
.accordion-header .section-progress {
  margin-left: auto;
  margin-right: 50px; /* Extra space for the + button */
  min-width: 220px;
  flex-shrink: 0;
}

.accordion-header .section-progress-bar {
  width: 120px;
}

.accordion-header .section-progress-text {
  font-size: 0.8rem;
  min-width: 70px;
}

/* Category header sections */
.category-title-section {
  flex: 1;
  font-weight: 600;
  font-size: 1.125rem;
}

.category-metrics-section {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.category-kpis .kpi-display {
  gap: 16px;
}

/* Category progress bars (Solution Explanations, etc.) */
.category-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 30px; /* Space for the + button */
  min-width: 180px;
  flex-shrink: 0;
}

.category-progress .progress-bar {
  width: 100px;
  height: 6px;
}

.category-progress .progress-text {
  font-size: 0.75rem;
  min-width: 50px;
}

/* Specific styling for category progress within accordion headers */
.accordion-header .category-progress {
  margin-left: auto;
  margin-right: 30px; /* Space for the + button */
  min-width: 140px;
  flex-shrink: 0;
}

.accordion-header .category-progress .progress-bar {
  width: 80px;
  height: 4px;
}

.accordion-header .category-progress .progress-text {
  font-size: 0.7rem;
  min-width: 40px;
  color: var(--wdr-gray);
}

.accordion-content {
  display: none;
  padding: 30px;
  background: var(--wdr-white);
  border-bottom: 1px solid #e2e8f0;
}

.accordion-content.show {
  display: block;
}

/* Progress bars - Fixed layout */
.section-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  margin-right: 30px; /* Space for the + button */
  min-width: 280px; /* Fixed total width to prevent shifting */
}

.section-progress-bar {
  width: 160px; /* Fixed bar width */
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0; /* Prevent bar from shrinking */
}

.progress-bar {
  width: 120px;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.progress-bar .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--wdr-accent), var(--wdr-light-blue));
  border-radius: 3px;
  transition: width 0.3s ease;
  min-width: 2px; /* Ensure some visibility even at 0% */
}

.section-progress-bar .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--wdr-accent), var(--wdr-light-blue));
  transition: width 0.3s ease;
  min-width: 2px; /* Ensure some visibility even at 0% */
}

.section-progress-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--wdr-navy);
  white-space: nowrap;
  min-width: 80px;
  text-align: right;
}

.progress-text {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--wdr-gray);
  white-space: nowrap;
  min-width: 35px;
}

/* Section header with progress styling */
.section-header-with-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-header-with-progress .section-title {
  margin-bottom: 0;
  flex: 1;
}

/* Section title with inline progress */
.section-title-with-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 2px solid var(--wdr-accent);
  margin-bottom: 20px;
}

.section-title-with-progress .section-title {
  margin: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 0 15px 0;
  border-bottom: none !important;
}

.section-progress-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Professional buttons */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.btn-primary {
  background: var(--wdr-accent);
  color: var(--wdr-white);
  border: 2px solid var(--wdr-accent);
}

.btn-primary:hover {
  background: var(--wdr-light-blue);
  border-color: var(--wdr-light-blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(49, 130, 206, 0.3);
}

.btn-success {
  background: #48bb78;
  color: var(--wdr-white);
  border: 2px solid #48bb78;
}

.btn-success:hover {
  background: #38a169;
  border-color: #38a169;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(72, 187, 120, 0.3);
}

.btn-secondary {
  background: var(--wdr-white);
  color: var(--wdr-gray);
  border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
  background: #f7fafc;
  border-color: var(--wdr-gray);
  color: var(--wdr-dark-blue);
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-todo {
  background: #fef5e7;
  color: #c05621;
  border: 1px solid #fed7aa;
}

.status-published {
  background: #f0fff4;
  color: #276749;
  border: 1px solid #9ae6b4;
}

.status-in_progress {
  background: #ebf8ff;
  color: #2c5282;
  border: 1px solid #90cdf4;
}

/* Content sections */
.persona-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.info-section {
  background: #f8fafc;
  padding: 20px;
  border-radius: 6px;
  border-left: 4px solid var(--wdr-accent);
}

/* ClickUp-inspired styling for content items */
.info-section.content-item {
  background: var(--wdr-white);
  border: 1px solid #f1f5f9;
  border-radius: 6px;
  margin-bottom: 2px;
  padding: 0;
  transition: all 0.2s ease;
  border-left: 1px solid #f1f5f9;
  cursor: pointer;
}

.info-section.content-item:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.content-item .content-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  min-height: 48px;
  transition: background 0.2s ease;
}

.content-item .content-item-header:hover {
  background: rgba(49, 130, 206, 0.02);
}

.content-item-title-section {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  margin-right: 16px;
}

.content-item-title-section h3 {
  color: #9ca3af;
  font-size: 1.0rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
}

.content-item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* KPI Display Component */
.kpi-display {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Legacy content item KPIs wrapper */
.content-item-kpis {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 8px;
}

/* Size variants for KPI display */
.kpi-display-sm .kpi-metric {
  font-size: 0.75rem;
}

.kpi-display-sm .kpi-metric i {
  font-size: 0.8rem;
}

.kpi-display-md .kpi-metric {
  font-size: 0.85rem;
}

.kpi-display-md .kpi-metric i {
  font-size: 0.9rem;
}

.kpi-display-lg .kpi-metric {
  font-size: 1rem;
}

.kpi-display-lg .kpi-metric i {
  font-size: 1.1rem;
}

/* Problem-level KPIs styling */
.section-metrics-and-progress {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.problem-level-kpis {
  flex-shrink: 0;
}

.problem-level-kpis .kpi-display {
  gap: 20px;
}

.section-progress-inline {
  flex-shrink: 0;
}

/* Problem cards in cognitive-profile - single line layout */
.problem-single-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.problem-title-and-description {
  flex: 1;
  min-width: 0; /* Allow text to truncate if needed */
}

.problem-title-and-description h3 {
  margin: 0 0 4px 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

.problem-title-and-description p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--wdr-gray);
  line-height: 1.3;
}

.problem-metrics-and-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.problem-kpis {
  flex-shrink: 0;
}

.problem-kpis .kpi-display {
  gap: 12px;
}

.problem-progress {
  flex-shrink: 0;
}

/* KUBAA Stage metrics and progress layout */
.kubaa-stage-metrics-and-progress {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 20px;
  flex-shrink: 0;
}

.kubaa-stage-kpis {
  flex-shrink: 0;
}

.kubaa-stage-kpis .kpi-display {
  gap: 12px;
}

.kubaa-stage-metrics-and-progress .section-progress {
  flex-shrink: 0;
}

.kubaa-stage-title-section {
  flex-shrink: 0;
}

/* Persona Header Layout with KPIs */
.persona-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.persona-header-info {
  flex: 1;
}

.persona-header-kpis {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 420px;
}

.persona-kpi-header-title {
  color: var(--wdr-white);
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  text-align: center;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.persona-kpi-header-display {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.persona-kpi-header-display .kpi-display {
  gap: 24px;
}

.persona-kpi-header-display .kpi-metric {
  color: var(--wdr-white);
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.persona-kpi-header-display .kpi-metric i {
  color: var(--wdr-accent);
  text-shadow: 0 0 8px rgba(255, 202, 58, 0.3);
}

/* JTBD Card Layout - maintain original layout but add space for KPIs */
.persona-jtbd-card {
  position: relative;
}

.persona-jtbd-card .persona-header-kpis {
  position: absolute;
  top: 20px;
  right: 20px;
}

.jtbd-quote {
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.4;
  margin: 20px 0 0 0;
  padding: 0;
  border: none;
  font-weight: 400;
}

/* Content Type Accordion Header */
.content-type-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.content-type-header-row:hover {
  background: #f1f5f9;
  border-color: var(--wdr-light-blue);
}

.content-type-title-section {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.content-type-header {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--wdr-dark-blue);
  line-height: 1.2;
}

.content-type-count {
  font-size: 0.8rem;
  color: var(--wdr-gray);
  font-weight: 400;
  line-height: 1.2;
  margin-top: 1px;
}

.content-type-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.content-type-kpis .kpi-display {
  gap: 16px;
}

.accordion-toggle {
  color: var(--wdr-gray);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.content-type-header-row:hover .accordion-toggle {
  color: var(--wdr-light-blue);
}

/* Content Type Items Container */
.content-type-items {
  padding: 0 16px 16px;
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 0 0 6px 6px;
  margin-top: -1px;
  background: #fff;
}

.kpi-metric {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--wdr-dark-blue);
  line-height: 1;
}

.kpi-metric i {
  font-size: 0.8rem;
  margin-right: 2px;
}

/* Colored icons with dark text - no boxes */
.kpi-metric.kpi-users i {
  color: #4f46e5;
}

.kpi-metric.kpi-sessions i {
  color: #059669;
}

.kpi-metric.kpi-duration i {
  color: #dc2626;
}

.kpi-metric.kpi-events i {
  color: #7c3aed;
}

.kpi-metric.kpi-avg-events i {
  color: #dc2626;
}

.kpi-metric.kpi-empty {
  opacity: 0.6;
}

.kpi-metric.kpi-empty i {
  color: var(--wdr-gray);
  opacity: 0.7;
}

.status-badge {
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.status-badge.status-published {
  background: #dcfce7;
  color: #166534;
}

.status-badge.status-todo {
  background: #f3f4f6;
  color: #6b7280;
}

.info-section h3 {
  color: var(--wdr-navy);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 12px;
  padding-left: 0;
}

.info-section p {
  color: var(--wdr-dark-blue);
  line-height: 1.6;
  margin-bottom: 0;
}

.info-section ul {
  list-style-type: disc;
  margin-left: 20px;
  color: var(--wdr-dark-blue);
  line-height: 1.6;
}

.info-section ul li {
  margin-bottom: 5px;
}

.info-section strong {
  color: var(--wdr-navy);
  font-weight: 600;
}

/* Persona sections */
.persona-section {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}

.persona-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.section-title {
  color: var(--wdr-navy);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
  padding: 0 0 8px 20px;
  border-bottom: 1px solid rgba(49, 130, 206, 0.5);
}

.persona-section .section-title {
  color: var(--wdr-navy);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  padding: 0 0 10px 20px;
  border-bottom: 2px solid var(--wdr-accent);
}

.persona-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding-left: 20px;
}

/* Problem cards */
.problem-card-clickable {
  grid-column: 1 / -1;
  transition: all 0.3s ease;
  cursor: pointer;
}

.problem-card-clickable:hover {
  background: rgba(49, 130, 206, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(49, 130, 206, 0.1);
}

/* Content types grid and styling */
.content-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.content-type-card {
  background: var(--wdr-white);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

.content-type-card:hover {
  box-shadow: 0 4px 12px rgba(49, 130, 206, 0.08);
  transform: translateY(-1px);
}

.type-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.type-title {
  color: var(--wdr-navy);
  font-weight: 600;
  font-size: 1.1rem;
  background: linear-gradient(135deg, rgba(49, 130, 206, 0.1), rgba(66, 153, 225, 0.05));
  padding: 8px 12px;
  border-radius: 6px;
  border-left: 3px solid var(--wdr-accent);
}

.type-progress {
  background: linear-gradient(135deg, var(--wdr-accent), var(--wdr-light-blue));
  color: var(--wdr-white);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 50px;
  text-align: center;
}

.item-brief {
  background: rgba(49, 130, 206, 0.1);
  color: var(--wdr-accent);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  display: inline-block;
}

.content-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.content-item-row {
  background: var(--wdr-white);
  border: 1px solid #f1f5f9;
  border-radius: 6px;
  margin-bottom: 2px;
  transition: all 0.2s ease;
  overflow: hidden;
  position: relative;
}

.content-item-row:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.content-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s ease;
  width: 100%;
  min-height: 48px;
}

.content-item-header:hover {
  background: rgba(49, 130, 206, 0.02);
}


.item-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  margin-right: 16px;
}

.item-title {
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
}

.item-brief {
  background: #f3f4f6;
  color: #6b7280;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.item-status {
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
  margin-right: 12px;
}

.item-status.published {
  background: #dcfce7;
  color: #166534;
}

.item-status.todo {
  background: #f3f4f6;
  color: #6b7280;
}

.content-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  margin-top: 0;
}

.content-details.expanded {
  max-height: 1000px;
  margin-top: 0;
}

.content-brief, .seo-considerations, .published-url-section {
  margin: 15px 20px;
  padding: 15px;
  background: #f8fafc;
  border-radius: 6px;
  border-left: 3px solid var(--wdr-accent);
}

.content-brief h4, .seo-considerations h4 {
  color: var(--wdr-navy);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.content-brief p, .seo-considerations p {
  color: var(--wdr-dark-blue);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

.published-url-section strong {
  color: var(--wdr-navy);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.published-url-section p {
  color: var(--wdr-dark-blue);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

.published-url-section .published-url-link {
  color: var(--wdr-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.published-url-section .published-url-link:hover {
  color: var(--wdr-light-blue);
  text-decoration: underline;
}

/* Content actions alignment */
.content-actions {
  margin: 15px 20px;
  display: flex;
  gap: 12px;
  justify-content: flex-start;
}

/* Image Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

/* Other Modals */
.publish-url-modal, 
.ai-content-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 54, 93, 0.75);
  backdrop-filter: blur(4px);
}

/* Image Modal Content */
.modal .modal-content {
  margin: auto;
  display: block;
  width: 90%;
  max-width: 800px;
  position: relative;
}

.modal-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(49, 130, 206, 0.3);
}

.close {
  position: absolute;
  top: -50px;
  right: 0;
  color: var(--wdr-accent);
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close:hover,
.close:focus {
  color: var(--wdr-white);
}

.modal-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: var(--wdr-white);
  padding: 20px 0;
  font-size: 1.1rem;
  font-weight: 500;
}

/* Other Modal Content */
.publish-url-modal-content,
.ai-content-modal-content {
  background: var(--wdr-white);
  margin: 5% auto;
  padding: 0;
  border: 2px solid var(--wdr-accent);
  border-radius: 8px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(49, 130, 206, 0.3);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-header,
.publish-url-modal-header {
  padding: 24px 30px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--wdr-navy);
  color: var(--wdr-white);
  border-radius: 8px 8px 0 0;
}

.ai-content-modal-header {
  background: linear-gradient(135deg, var(--wdr-navy), var(--wdr-dark-blue));
  padding: 20px 25px;
  border-bottom: 2px solid var(--wdr-accent);
  border-radius: 6px 6px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title,
.publish-url-modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.ai-content-modal-title {
  color: var(--wdr-white);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.close,
.publish-url-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--wdr-white);
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.ai-content-modal-close {
  color: var(--wdr-accent);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
}

.close:hover,
.publish-url-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.ai-content-modal-close:hover {
  color: var(--wdr-white);
}

.modal-body,
.publish-url-modal-body {
  padding: 30px;
}

.ai-content-modal-body {
  padding: 25px;
  overflow-y: auto;
  flex-grow: 1;
}

/* AI Content Display */
.ai-content-display {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--wdr-dark-blue);
  word-wrap: break-word;
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.ai-content-display h1 {
  color: var(--wdr-navy);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 20px 0;
  border-bottom: 2px solid var(--wdr-accent);
  padding-bottom: 10px;
}

.ai-content-display h2 {
  color: var(--wdr-navy);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 25px 0 15px 0;
}

.ai-content-display h3 {
  color: var(--wdr-navy);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 20px 0 10px 0;
}

.ai-content-display p {
  margin: 0 0 15px 0;
  color: var(--wdr-dark-blue);
}

.ai-content-display strong {
  color: var(--wdr-navy);
  font-weight: 600;
}

.ai-content-display em {
  color: var(--wdr-accent);
  font-style: italic;
}

.ai-content-display code {
  background: rgba(49, 130, 206, 0.15);
  color: var(--wdr-accent);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.85rem;
}

.ai-content-display pre {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 15px;
  margin: 15px 0;
  overflow-x: auto;
}

.ai-content-display pre code {
  background: none;
  color: var(--wdr-dark-blue);
  padding: 0;
  font-size: 0.9rem;
}

.ai-content-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 15px;
  border-top: 1px solid #e2e8f0;
}

/* Problem Detail Specific Styles */
.content-type-section {
  width: 100%;
  margin-bottom: 20px;
}

.content-type-header {
  color: var(--wdr-navy);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 10px 0;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(49, 130, 206, 0.3);
}

/* Form inputs */
.url-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.2s ease;
}

.url-input:focus {
  outline: none;
  border-color: var(--wdr-accent);
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

/* JTBD View Styles */
.jtbd-list-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px;
  background: var(--wdr-white);
}

.jtbd-section {
  margin-bottom: 40px;
  padding: 30px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.jtbd-section-title {
  color: var(--wdr-navy);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--wdr-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.jtbd-category-title {
  color: var(--wdr-navy);
  font-weight: 600;
  font-size: 1.3rem;
  padding: 12px 20px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--wdr-white), #f1f5f9);
  margin-bottom: 16px;
  border-left: 6px solid var(--wdr-accent);
  box-shadow: 0 2px 6px rgba(26, 54, 93, 0.08);
  position: relative;
}

.jtbd-subcategory-title {
  color: var(--wdr-dark-blue);
  font-weight: 500;
  font-size: 1.05rem;
  padding: 10px 16px;
  border-radius: 6px;
  background: rgba(49, 130, 206, 0.05);
  margin-bottom: 12px;
  margin-left: 24px;
  border-left: 4px solid var(--wdr-light-blue);
  position: relative;
}

.inactive-jtbd {
  opacity: 0.8;
  background: var(--wdr-white);
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  margin-bottom: 12px;
  margin-left: 40px;
  padding: 16px 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.inactive-jtbd:hover {
  opacity: 1;
  border-color: var(--wdr-accent);
  box-shadow: 0 6px 16px rgba(49, 130, 206, 0.12);
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--wdr-white), rgba(49, 130, 206, 0.02));
}

.stage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}

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

.stage-name {
  color: var(--wdr-navy);
  font-weight: 500;
  font-size: 0.95rem;
}

.stage-count {
  background: linear-gradient(135deg, var(--wdr-accent), var(--wdr-light-blue));
  color: var(--wdr-white);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

/* Stage row hover effects for inactive JTBDs */
.stage-row {
  transition: background 0.3s ease;
  padding: 8px 0;
  border-radius: 4px;
}

.stage-row:hover {
  background: rgba(49, 130, 206, 0.05);
}

/* Active JTBD Card Styles */
.persona-jtbd-card {
  background: linear-gradient(135deg, var(--wdr-accent) 0%, var(--wdr-light-blue) 100%);
  border: 1px solid var(--wdr-accent);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--wdr-white);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.persona-info-display {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 16px;
}

.persona-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--wdr-white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.persona-names {
  display: flex;
  flex-direction: column;
  gap: 4px;
}


.active-jtbd-item {
  padding-top: 16px;
}

.active-jtbd-item .item-title {
  color: var(--wdr-white);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.persona-jtbd-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease;
}

.persona-jtbd-card-link:hover {
  transform: translateY(-2px);
}

.persona-jtbd-card-link:hover .persona-jtbd-card {
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.stage-item-title {
  color: var(--wdr-white);
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 1rem;
}

.stage-item-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  line-height: 1.5;
}

.type-progress {
  margin-top: 12px;
}

/* Content items preview in JTBD cards */
.content-items-preview {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-left: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.content-items-preview p {
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* Content item styling */
.content-item {
  border-left: 4px solid var(--wdr-white);
  background: rgba(255, 255, 255, 0.08);
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 0 4px 4px 0;
}

.content-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(4px);
}

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

.stage-status {
  min-width: 80px;
  text-align: right;
}


/* Responsive design */
@media (max-width: 768px) {
  .header {
    padding: 16px 20px;
  }
  
  .header::before {
    width: 80px;
    height: 24px;
    top: 16px;
    right: 120px;
  }

  .header::after {
    width: 80px;
    height: 24px;
    top: 16px;
    right: 20px;
  }
  
  #page-title {
    font-size: 1.75rem;
    padding-right: 220px;
  }
  
  .persona-overview {
    padding: 20px;
  }
  
  .persona-info-grid {
    grid-template-columns: 1fr;
  }
  
  .accordion-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .section-progress {
    align-self: flex-end;
  }
}

/* KUBAA Accordion Visual Hierarchy */

/* KUBAA Stage Level - Light background to distinguish from categories */
.kubaa-stage-content {
  background-color: #f8f9fb;
  border-left: 3px solid #e1e6ef;
  margin-left: 8px;
}

.kubaa-categories-container {
  background-color: transparent;
}

/* Category Level - Slightly darker background and border */
.kubaa-category-content {
  background-color: #ffffff;
  border: 1px solid #e1e6ef;
  border-radius: 6px;
  margin: 8px 0;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.category-description-section {
  background-color: #f8f9fb;
  border-radius: 4px;
  padding: 12px;
  margin-bottom: 16px;
  border-left: 2px solid #3b82f6;
}

.category-description-section h3 {
  color: #1e40af;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* Content Types Container - Clear separation */
.content-types-container {
  background-color: #ffffff;
  border-radius: 4px;
  padding: 8px 0;
}

/* Content Type Sections - Keep existing styling but add subtle border */
.content-type-section {
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 8px;
  padding-bottom: 8px;
}

.content-type-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}