/* ==========================================================================
   DESIGN SYSTEM & CUSTOM PROPERTIES
   ========================================================================== */
:root {
  /* Color Palette */
  --app-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --border-light: #f1f3f7;
  --border-medium: #e2e8f0;
  --border-active: #1e293b;

  /* Brand/Active state - Solid Black */
  --brand-primary: #000000;
  --brand-active: #000000;
  --brand-active-light: #f1f5f9;

  /* Layout Tokens */
  --sidebar-width: 85px;
  --header-height: 70px;
  --radius-sm: 8px;

  /* Font Stack */
  --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ==========================================================================
   GLOBAL RESETS
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--app-bg);
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ==========================================================================
   MAIN APP WRAPPER (FULL SCREEN)
   ========================================================================== */
.app-container {
  width: 100vw;
  height: 100vh;
  background: var(--app-bg);
  display: flex;
  overflow: hidden;
  position: relative;
}

/* ==========================================================================
   SIDEBAR COMPONENT
   ========================================================================== */
.sidebar {
  width: var(--sidebar-width);
  height: 100%;
  background: var(--app-bg);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  z-index: 10;
}

/* Logo icon styling */
.sidebar-top {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
}

.logo-btn {
  color: var(--brand-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.logo-btn:hover {
  background: #f8fafc;
  color: var(--brand-active);
  transform: rotate(45deg);
}

/* Sidebar Nav Stack */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-bottom: auto;
}

.nav-item {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 46px;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  outline: none;
  transition: color 0.2s, background-color 0.2s;
}

.nav-item svg {
  width: 20px;
  height: 20px;
}

.nav-item:hover {
  color: var(--brand-active);
}

.nav-item.active {
  color: var(--brand-active);
}

.nav-item.active svg {
  stroke: var(--brand-active);
}

/* Custom Tooltips for Navigation Icons */
.nav-item,
.sidebar-icon-btn,
.user-avatar {
  position: relative;
}

/* Tooltip container pseudo-element */
.nav-item::after,
.sidebar-icon-btn::after,
.user-avatar::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) scale(0.9);
  background: #1e293b;
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-family: var(--font-body);
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1), transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  z-index: 1000;
  letter-spacing: 0.2px;
}

/* Tooltip arrow pseudo-element */
.nav-item::before,
.sidebar-icon-btn::before,
.user-avatar::before {
  content: '';
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  border-width: 4px 6px 4px 0;
  border-style: solid;
  border-color: transparent #1e293b transparent transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 1000;
}

/* Show tooltip on hover */
.nav-item:hover::after,
.sidebar-icon-btn:hover::after,
.user-avatar:hover::after {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.nav-item:hover::before,
.sidebar-icon-btn:hover::before,
.user-avatar:hover::before {
  opacity: 1;
}

/* Premium Icon Micro-Animations on Hover */
.nav-item svg,
.sidebar-icon-btn svg,
.user-avatar,
.logo-btn svg {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.2s, background-color 0.2s;
}

.nav-item:hover svg,
.sidebar-icon-btn:hover svg {
  transform: scale(1.18) translateY(-1px);
}

/* Specific item animations */
/* Settings Gear Spin */
.sidebar-icon-btn[data-tooltip="Settings"]:hover svg {
  transform: rotate(60deg) scale(1.15);
}

/* Logo Rotate */
.logo-btn:hover svg {
  transform: rotate(45deg) scale(1.05);
}

/* active notch - Solid Black */
.nav-item .active-indicator {
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 3px;
  background: var(--brand-active);
  border-radius: 0 4px 4px 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item.active .active-indicator {
  transform: scaleX(1);
}

/* Sidebar Bottom utilities */
.sidebar-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.sidebar-icon-btn {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
}

.sidebar-icon-btn svg {
  width: 20px;
  height: 20px;
}

.sidebar-icon-btn:hover {
  background: #f8fafc;
  color: var(--brand-active);
}

/* User avatar */
.user-avatar-wrapper {
  margin-top: 4px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-active);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--border-medium);
  cursor: pointer;
}

/* ==========================================================================
   MAIN CONTENT AREA LAYOUT
   ========================================================================== */
.main-content {
  flex-grow: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
}

/* ==========================================================================
   TOP HEADER BAR
   ========================================================================== */
.top-header {
  height: var(--header-height);
  padding: 0 32px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  z-index: 5;
}

/* Header Left: Model selection dropdown */
.model-dropdown-wrapper {
  position: relative;
}

.model-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.model-btn:hover {
  background: #f8fafc;
  border-color: var(--border-active);
}

.model-btn .spark-icon {
  color: var(--brand-active);
}

.model-btn .chevron-icon {
  color: var(--text-light);
  transition: transform 0.2s ease;
}

.model-dropdown-wrapper.open .chevron-icon {
  transform: rotate(180deg);
}

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

/* Button UI Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.btn-primary {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
}

.btn-primary:hover {
  background: #1e293b;
  border-color: #1e293b;
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border-color: var(--border-medium);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: var(--border-active);
}

.btn-icon-text {
  background: #ffffff;
  color: var(--text-main);
  border-color: var(--border-medium);
}

.btn-icon-text svg {
  color: var(--text-light);
}

.btn-icon-text:hover {
  background: #f8fafc;
  border-color: var(--border-active);
}

/* Dropdown Menu Overlay box */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 100;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s;
}

.dropdown-item strong {
  font-size: 13.5px;
  color: var(--text-main);
  margin-bottom: 2px;
}

.dropdown-item span {
  font-size: 11px;
  color: var(--text-muted);
}

.dropdown-item:hover {
  background: #f1f5f9;
}

.dropdown-item.selected {
  background: var(--brand-active-light);
}

.dropdown-item.selected strong {
  color: var(--brand-active);
}

/* ==========================================================================
   VIEWS WRAPPER (TAB VIEWS)
   ========================================================================== */
.views-wrapper {
  flex-grow: 1;
  position: relative;
  overflow-y: auto;
  height: 100%;
}

.tab-view {
  display: none;
  width: 100%;
}

.tab-view.active {
  display: block;
}

#view-projects.active.empty-state {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

/* Empty State Styling */
.empty-state-container {
  display: none;
  text-align: center;
  max-width: 420px;
  padding: 40px 24px;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

#view-projects.empty-state .empty-state-container {
  display: flex;
}

.empty-state-icon {
  color: var(--text-light);
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
}

.empty-state-icon svg {
  width: 100%;
  height: 100%;
}

.empty-state-title {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 20px;
  color: var(--text-muted);
}

.empty-state-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-light);
}

/* Projects Directory List Styling */
.projects-list-container {
  padding: 32px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.projects-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.projects-header-bar h2 {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 500;
  color: var(--text-main);
}

.personas-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.personas-header-bar h2 {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 500;
  color: var(--text-main);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.project-card {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 170px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  border-color: #000000;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.project-card-header h3 {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
}

.badge-channel {
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--border-medium);
  background: #f8fafc;
  color: #475569;
  padding: 3px 10px;
  border-radius: 20px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4.5px;
}

.channel-pill-icon {
  width: 11px;
  height: 11px;
  stroke: #64748b;
  display: inline-block;
  flex-shrink: 0;
}

.project-card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: -14px;
  margin-bottom: 20px;
  font-size: 11px;
  color: var(--text-muted);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.meta-icon {
  width: 12px;
  height: 12px;
  stroke: var(--text-light);
  display: inline-block;
  flex-shrink: 0;
}

.project-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.project-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: auto;
}

.project-card-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.btn-card-open {
  background: none;
  border: none;
  font-size: 13.5px;
  font-weight: 600;
  color: #000000;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: transform 0.2s, background-color 0.15s, color 0.15s;
}

.btn-card-open:hover {
  background: #f1f5f9;
  transform: translateX(3px);
}

/* Modal Dialog Component */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(2px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  z-index: 1000;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #ffffff;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  transform: translateY(15px);
  transition: transform 0.25s ease-out;
  border: 1px solid var(--border-light);
}

.modal-overlay.show .modal-card {
  transform: translateY(0);
}

.modal-header {
  padding: 24px 24px 16px 24px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.close-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.close-btn:hover {
  color: var(--text-main);
  background: #f1f5f9;
}

.create-project-form {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.form-group.no-border {
  border: none;
  padding: 4px 0;
}

.form-group .section-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* Inset card field style matching the Customize ChatGPT popup */
.inset-card-field {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.inset-card-field:focus-within {
  border-color: #000000;
  box-shadow: 0 0 0 1px #000000;
}

.inset-card-field label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0;
}

.inset-card-field input {
  width: 100%;
  border: none !important;
  outline: none !important;
  padding: 0 !important;
  font-size: 14px;
  color: var(--text-main);
  background: transparent;
}

/* Selection Chips style matching traits list in Customize ChatGPT */
.channels-chips-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.chip-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-medium);
  background: #ffffff;
  font-size: 13px;
  color: var(--text-main);
  cursor: pointer;
  font-weight: 500;
  user-select: none;
  transition: all 0.2s ease;
}

.chip-checkbox:hover {
  border-color: var(--text-muted);
}

.chip-checkbox.active {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.chip-checkbox.disabled {
  color: var(--text-light);
  background: #fafafa;
  border-style: dashed;
  cursor: not-allowed;
  opacity: 0.65;
}

.chip-checkbox.disabled:hover {
  border-color: var(--border-medium);
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #f1f5f9;
  background: #fafafa;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin: 0 -24px -20px -24px;
}

.modal-footer .btn-primary {
  background: #000000;
  color: #ffffff;
  border-radius: 20px;
  padding: 8px 18px;
  font-weight: 500;
  border: none;
  cursor: pointer;
}

.modal-footer .btn-primary:hover {
  background: #2e2e2e;
}

.modal-footer .btn-secondary {
  border-radius: 20px;
  padding: 8px 18px;
  font-weight: 500;
  border: 1px solid var(--border-medium);
  background: #ffffff;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-footer .btn-secondary:hover {
  background: #f8fafc;
  border-color: var(--text-light);
}

/* Persona Differentiation and Actions */
.badge-persona-type {
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: none;
  letter-spacing: 0;
}

.badge-persona-type.system {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.badge-persona-type.custom {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.card-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.delete-persona-btn {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}

.delete-persona-btn:hover {
  background: #fee2e2;
  color: #ef4444;
}

.delete-persona-btn svg {
  width: 14px;
  height: 14px;
}

/* Search & Filter Row styling */
.search-filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.search-input-wrapper {
  position: relative;
  flex-grow: 1;
  max-width: 400px;
}

.search-input-wrapper svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-light);
  pointer-events: none;
}

.search-input-wrapper input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border-radius: 20px;
  border: 1px solid var(--border-medium);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input-wrapper input:focus {
  border-color: #000000;
  box-shadow: 0 0 0 1px #000000;
}

.category-filters {
  display: flex;
  gap: 8px;
}

.category-btn {
  background: none;
  border: 1px solid var(--border-medium);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-btn:hover {
  border-color: var(--text-light);
  color: var(--text-main);
}

.category-btn.active {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
}

/* Compact Audience Cards */
.audience-card {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.audience-card:hover {
  border-color: #000000;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.audience-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.audience-card-header h3 {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
}

.audience-card-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
}

.audience-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: auto;
}

.workspace-panel {
  border-top: 1px solid var(--border-medium);
  padding: 32px 0 0 0;
  margin-top: 8px;
}

/* Placeholder tabs content style */
.placeholder-view {
  display: none;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.placeholder-view.active {
  display: flex;
}

.placeholder-content {
  text-align: center;
  max-width: 400px;
  padding: 40px;
}

.placeholder-content .icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.placeholder-content h2 {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 22px;
  color: var(--text-main);
  margin-bottom: 8px;
}

.placeholder-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   PROJECT DETAIL VIEW & SIMULATION WORKSPACE
   ========================================================================== */
.detail-header-nav {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

.back-link-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.back-link-btn:hover {
  background: #f1f5f9;
  color: var(--text-main);
}

.back-link-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.back-link-btn:hover svg {
  transform: translateX(-3px);
}

.project-details-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 20px;
  gap: 16px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-grow: 1;
}

.project-title-desc-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
}

.title-edit-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.title-edit-container h2 {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
  margin: 0;
}

.inline-edit-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.65;
  transition: all 0.2s ease;
}

.inline-edit-btn:hover {
  opacity: 1 !important;
  background: #f1f5f9;
  color: var(--text-main);
}

.inline-edit-btn svg {
  width: 13px;
  height: 13px;
}

.title-edit-container:hover .inline-edit-btn,
.desc-edit-container:hover .inline-edit-btn {
  opacity: 0.9;
}

.inline-edit-input {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
  border: none;
  border-bottom: 2px solid #000000;
  outline: none;
  padding: 2px 0;
  width: 100%;
  max-width: 400px;
  background: transparent;
}

.desc-edit-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.desc-edit-container p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.inline-edit-textarea {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-main);
  border: none;
  border-bottom: 2px solid #000000;
  outline: none;
  padding: 2px 0;
  width: 100%;
  max-width: 400px;
  resize: vertical;
  background: transparent;
  line-height: 1.4;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.channel-tabs-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid var(--border-medium);
  padding: 4px 8px 4px 14px;
  border-radius: 24px;
}

.dropdown-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.channel-tabs-container {
  display: inline-flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 20px;
  gap: 2px;
  border: 1px solid var(--border-light);
}

.channel-tab-btn {
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  outline: none;
}

.channel-tab-btn:hover {
  color: var(--text-main);
}

.channel-tab-btn.active {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  font-weight: 600;
}

.delete-project-btn {
  background: none;
  border: 1px solid #fee2e2;
  color: #ef4444;
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.delete-project-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

.delete-project-btn svg {
  width: 13px;
  height: 13px;
}

/* Dynamic Channel Fields styles */
.channel-field-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.channel-field-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.channel-field-input,
.channel-field-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-medium);
  border-radius: 10px;
  font-size: 13.5px;
  font-family: var(--font-body);
  color: var(--text-main);
  background: #ffffff;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
  transition: all 0.2s ease;
}

.channel-field-input:focus,
.channel-field-textarea:focus {
  border-color: #000000;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02), 0 0 0 3px rgba(0,0,0,0.05);
}

/* Email Preview & Toggle styles */
.email-preview-toggle-bar {
  display: flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 8px;
  align-self: flex-start;
  width: fit-content;
}

.preview-toggle-btn {
  background: none;
  border: none;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.preview-toggle-btn.active {
  background: #ffffff;
  color: var(--text-main);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  font-weight: 600;
}

.email-preview-header {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid var(--border-medium);
  border-bottom: none;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  padding: 10px 14px;
}

.preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.preview-dot.red { background-color: #ef4444; }
.preview-dot.yellow { background-color: #f59e0b; }
.preview-dot.green { background-color: #10b981; }

.preview-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 6px;
}

.email-preview-frame-wrapper {
  border: 1px solid var(--border-medium);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  background: #ffffff;
  min-height: 250px;
  overflow: auto;
}

.email-preview-frame {
  padding: 20px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #333333;
}

/* Simulation Workspace Layout */
.simulation-workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .simulation-workspace {
    grid-template-columns: 1fr;
  }
}

.simulation-section {
  display: flex;
  flex-direction: column;
}

.section-title {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 16px;
}

/* Upload Options Tabs selector */
.upload-options-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 0;
}

.upload-tab-btn {
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.upload-tab-btn:hover {
  color: var(--text-main);
  background: #f1f5f9;
}

.upload-tab-btn.active {
  background: #000000;
  color: #ffffff;
}

.upload-pane {
  display: none;
}

.upload-pane.active {
  display: block;
}

/* File drag/drop pad zone */
.file-drag-zone {
  border: 2px dashed var(--border-medium);
  border-radius: 12px;
  background: #ffffff;
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 150px;
}

.file-drag-zone:hover,
.file-drag-zone.dragover {
  border-color: #000000;
  background: #fafafa;
}

.zone-icon {
  width: 32px;
  height: 32px;
  color: var(--text-light);
  margin-bottom: 12px;
  transition: transform 0.2s ease;
}

.file-drag-zone:hover .zone-icon {
  transform: translateY(-2px);
}

.zone-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.upload-link {
  color: #000000;
  font-weight: 600;
  text-decoration: underline;
}

/* Selected File indicators */
.selected-file-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border: 1px solid var(--border-medium);
  padding: 6px 12px;
  border-radius: 20px;
  margin-top: 12px;
  max-width: 90%;
}

.file-name {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remove-file-btn {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.remove-file-btn:hover {
  color: #ef4444;
}

/* Dropdown Custom Select Overrides */
.select-custom-wrapper {
  position: relative;
  width: 100%;
}

.select-custom-wrapper select {
  width: 100%;
  padding: 10px 14px;
  font-size: 13.5px;
  border-radius: 8px;
  border: 1px solid var(--border-medium);
  background: #ffffff;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.select-custom-wrapper select:focus {
  border-color: #000000;
}

.select-custom-wrapper::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-top-color: var(--text-light);
  pointer-events: none;
  transition: transform 0.2s ease;
}

/* Run actions button list */
.run-simulation-footer {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  justify-content: flex-end;
}

.btn-run-simulation {
  background: #000000;
  color: #ffffff;
  border-radius: 20px;
  padding: 10px 24px;
  font-weight: 500;
  font-size: 14px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-run-simulation:hover {
  background: #2e2e2e;
}

.run-btn-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.btn-run-simulation:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #475569;
}

/* Simulation Results Panel Cards */
.simulation-results-section {
  width: 100%;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--border-medium);
  margin: 32px 0;
}

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

.results-header h3 {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
}

.simulation-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}

.status-text {
  font-size: 11px;
  font-weight: 600;
  color: #15803d;
  text-transform: uppercase;
}

.results-score-card {
  display: flex;
  align-items: center;
  gap: 32px;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  padding: 24px;
  border-radius: 14px;
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  .results-score-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

.score-radial {
  position: relative;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

.progress-ring-fill {
  transition: stroke-dashoffset 0.6s ease;
  transform: rotate(-90deg);
  transform-origin: 50px 50px;
}

.score-display {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.score-num {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
}

.score-total {
  font-size: 12px;
  color: var(--text-light);
}

.score-text-details h4 {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.score-text-details p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Feedback lists cards */
.results-feedback-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .results-feedback-grid {
    grid-template-columns: 1fr;
  }
}

.feedback-card {
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border-medium);
}

.feedback-card.positive {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.feedback-card.friction {
  background: #fef2f2;
  border-color: #fca5a5;
}

.feedback-card h5 {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feedback-card.positive h5 {
  color: #15803d;
}

.feedback-card.friction h5 {
  color: #b91c1c;
}

.feedback-card ul {
  padding-left: 20px;
  margin: 0;
}

.feedback-card li {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.feedback-card li:last-child {
  margin-bottom: 0;
}

.feedback-card.positive li {
  color: #166534;
}

.feedback-card.friction li {
  color: #991b1b;
}

/* Loading Spinners State styles */
.simulation-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  gap: 16px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f1f5f9;
  border-top-color: #000000;
  border-radius: 50%;
  animation: spin-anim 1s linear infinite;
}

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

.simulation-loading-state p {
  font-size: 13.5px;
  color: var(--text-muted);
}

/* Channel tabs workspace */
.channel-workspace-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border-medium);
  margin-top: 24px;
}

.channel-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: -1px;
}

.channel-tab:hover {
  color: var(--text-main);
}

.channel-tab.active {
  color: var(--text-main);
  border-bottom-color: #000000;
  font-weight: 600;
}

/* Campaign content mode selection header */
.content-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 8px;
}

.content-mode-selector {
  display: flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
}

.mode-btn {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-btn:hover {
  color: var(--text-main);
}

.mode-btn.active {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.06);
}

/* Copy variations tabs styling */
.variation-tabs-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
}

.variant-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid var(--border-medium);
  padding: 6px 12px;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.variant-tab-btn:hover {
  background: #f1f5f9;
  color: var(--text-main);
  border-color: var(--text-muted);
}

.variant-tab-btn.active {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.variant-delete-btn {
  background: none;
  border: none;
  color: inherit;
  font-size: 10px;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
  line-height: 1;
}

.variant-delete-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.variant-tab-btn:not(.active) .variant-delete-btn:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.add-variant-btn {
  background: none;
  border: 1px dashed var(--border-medium);
  color: var(--brand-primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.add-variant-btn:hover {
  background: #f8fafc;
  border-color: #000000;
}

/* Premium target audience custom selector button */
.audience-select-placeholder-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.audience-select-placeholder-btn:hover {
  border-color: #000000;
  background: #fafafa;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.selected-audience-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.audience-card-icon {
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #f1f5f9;
  border-radius: 50%;
}

.audience-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.audience-card-text strong {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.audience-card-text p {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.chevron-icon {
  width: 18px;
  height: 18px;
  color: var(--text-light);
  transition: transform 0.2s;
}

.audience-select-placeholder-btn:hover .chevron-icon {
  color: var(--text-main);
}

.text-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Audience Selection Modal Grid */
.select-audience-modal-card {
  max-width: 600px;
}

.audience-selection-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
  padding: 4px;
}

.audience-select-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.audience-select-card:hover {
  border-color: #000000;
  background: #fafafa;
}

.audience-select-card.selected {
  border-color: #000000;
  background: #fafafa;
  box-shadow: inset 0 0 0 1px #000000;
}

.audience-select-card .card-select-indicator {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border-medium);
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.audience-select-card.selected .card-select-indicator {
  border-color: #000000;
  background: #000000;
}

.audience-select-card.selected .card-select-indicator::after {
  content: '';
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
}

.audience-select-card-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.audience-select-card-details h4 {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.audience-select-card-details p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.close-modal-btn {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* Dynamic content element testing segmented pills */
.content-element-row {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.content-element-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.element-pill-btn {
  background: #f1f5f9;
  border: 1px solid transparent;
  padding: 6px 12px;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.element-pill-btn:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.element-pill-btn.active {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

/* Goal selection card list styles */
.goal-selection-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.goal-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.goal-card:hover {
  border-color: #000000;
  background: #fafafa;
}

.goal-card.selected {
  border-color: #000000;
  background: #fafafa;
  box-shadow: inset 0 0 0 1px #000000;
}

.goal-card .card-select-indicator {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border-medium);
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.goal-card.selected .card-select-indicator {
  border-color: #000000;
  background: #000000;
}

.goal-card.selected .card-select-indicator::after {
  content: '';
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
}

.goal-card-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.goal-card-details strong {
  font-family: var(--font-title);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
}

.goal-card-details p {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* Chevron Progress Bar */
.chevron-steps {
  display: flex;
  background: #f8fafc;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid var(--border-medium);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.chevron-step {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: #f8fafc;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
  clip-path: polygon(0% 0%, calc(100% - 12px) 0%, 100% 50%, calc(100% - 12px) 100%, 0% 100%, 12px 50%);
  text-align: center;
}

.chevron-step:first-child {
  clip-path: polygon(0% 0%, calc(100% - 12px) 0%, 100% 50%, calc(100% - 12px) 100%, 0% 100%);
  padding-left: 16px;
}

.chevron-step:last-child {
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 12px 50%);
  padding-right: 16px;
}

.chevron-step:hover {
  background: #f1f5f9;
  color: var(--text-main);
}

.chevron-step.active {
  background: #000000;
  color: #ffffff;
  font-weight: 600;
}

.chevron-step.completed {
  background: #e2e8f0;
  color: var(--text-main);
  font-weight: 500;
}

.chevron-step.completed:hover {
  background: #cbd5e1;
}

/* Wizard Cards */
.wizard-card {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.wizard-card-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-main);
}

.wizard-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.wizard-footer .btn-primary {
  margin-left: auto; /* Push primary button to right if only one */
}

/* Audience Description Callout */
.audience-desc-callout {
  background: #f8fafc;
  border-left: 3px solid #000000;
  border-radius: 6px;
  padding: 16px;
  margin-top: 16px;
}

.audience-desc-callout h5 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.audience-desc-callout p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Review Grid & Items */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.review-item {
  background: #f8fafc;
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.review-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.review-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.review-content-preview {
  margin-top: 20px;
}

.preview-box {
  background: #fafafa;
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 16px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-main);
  max-height: 150px;
  overflow-y: auto;
  font-family: var(--font-body);
  white-space: pre-wrap;
}

/* Audience Transfer List Layout */
.audience-transfer-container {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}

.transfer-list-box {
  flex: 1;
  border: 1px solid var(--border-medium);
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 250px;
}

.transfer-list-header {
  background: #f8fafc;
  border-bottom: 1px solid var(--border-medium);
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.transfer-list-items {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.transfer-item {
  padding: 8px 16px;
  font-size: 13.5px;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.transfer-item:hover {
  background: #f1f5f9;
}

.transfer-item.selected-item {
  background: #e2e8f0;
  font-weight: 500;
}

.transfer-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.transfer-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.transfer-btn:hover {
  border-color: #000000;
  background: #000000;
  color: #ffffff;
}

.transfer-btn svg {
  width: 16px;
  height: 16px;
}

/* Custom Goals list builder items */
.goal-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.goal-list-item:hover {
  background: #f1f5f9;
}

.goal-list-item-text {
  flex-grow: 1;
  line-height: 1.4;
}

.goal-list-item-delete {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  margin-left: 8px;
}

.goal-list-item-delete:hover {
  color: #ef4444;
}

/* Results score circular styles */
.results-score-circular {
  position: relative;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

.score-ring {
  width: 100px;
  height: 100px;
}

.score-ring-bg {
  fill: none;
  stroke: #f1f5f9;
  stroke-width: 8;
}

.score-ring-progress {
  fill: none;
  stroke: #0f172a; /* Sleek dark slate color */
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 263.89;
  stroke-dashoffset: 263.89;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 0.6s ease;
}

.score-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-main);
}

/* ==========================================================================
   SETTINGS STYLING
   ========================================================================== */
.settings-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  min-height: 450px;
}

.settings-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid var(--border-light);
  padding-right: 16px;
}

.settings-tab-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.settings-tab-btn svg {
  color: var(--text-light);
  transition: color 0.2s ease;
}

.settings-tab-btn:hover {
  background: var(--brand-active-light);
  color: var(--brand-active);
}

.settings-tab-btn:hover svg {
  color: var(--brand-active);
}

.settings-tab-btn.active {
  background: var(--brand-active-light);
  color: var(--brand-active);
  font-weight: 600;
}

.settings-tab-btn.active svg {
  color: var(--brand-active);
}

.settings-content {
  flex-grow: 1;
}

.settings-pane {
  display: none;
  animation: fadeInSettings 0.25s ease;
}

.settings-pane.active {
  display: block;
}

@keyframes fadeInSettings {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Switch Toggle Component */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-medium);
  transition: .25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 24px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.switch-toggle input:checked + .switch-slider {
  background-color: #000000;
}

body.dark-theme .switch-toggle input:checked + .switch-slider {
  background-color: #ffffff;
}

body.dark-theme .switch-slider:before {
  background-color: #0f172a;
}

.switch-toggle input:checked + .switch-slider:before {
  transform: translateX(20px);
}

/* Dark Mode Variables and Overrides */
body.dark-theme {
  --app-bg: #0b0f19;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-light: #64748b;

  --border-light: #161f30;
  --border-medium: #223049;
  --border-active: #ffffff;

  --brand-primary: #ffffff;
  --brand-active: #ffffff;
  --brand-active-light: #162238;
}

body.dark-theme select,
body.dark-theme input,
body.dark-theme textarea {
  color: var(--text-main) !important;
}

body.dark-theme select option {
  background-color: #0b0f19;
  color: var(--text-main);
}

/* Custom Overrides for Dark Mode */
body.dark-theme .wizard-card,
body.dark-theme .project-card,
body.dark-theme .audience-card,
body.dark-theme .modal-card,
body.dark-theme .transfer-container {
  background: #111827; /* Gray 900 */
  border-color: var(--border-medium);
}

body.dark-theme .project-card:hover {
  background: #1f2937 !important;
}

body.dark-theme .sidebar-icon-btn:hover {
  background: #162238;
}

body.dark-theme .btn-primary {
  background: #ffffff;
  color: #000000;
}

body.dark-theme .btn-primary:hover {
  background: #cbd5e1;
}

body.dark-theme .btn-secondary {
  background: #1f2937;
  color: #f8fafc;
  border-color: #374151;
}

body.dark-theme .btn-secondary:hover {
  background: #374151;
}

body.dark-theme .inset-card-field {
  background: #1f2937;
  border-color: #374151;
}

body.dark-theme .inset-card-field input,
body.dark-theme .inset-card-field textarea,
body.dark-theme .inset-card-field select {
  background: transparent;
  color: #f8fafc;
}

body.dark-theme .transfer-btn {
  background: #1f2937;
  border-color: #374151;
  color: #f8fafc;
}

body.dark-theme .transfer-btn:hover {
  background: #ffffff;
  color: #000000;
}

body.dark-theme .transfer-item {
  color: var(--text-muted);
}

body.dark-theme .transfer-item:hover {
  background: #1f2937;
}

body.dark-theme .transfer-item.selected-item {
  background: #374151;
  color: #ffffff;
}

body.dark-theme .score-ring-bg {
  stroke: #1f2937;
}

body.dark-theme .score-ring-progress {
  stroke: #ffffff;
}

body.dark-theme .goal-list-item {
  background: #1f2937;
  border-color: #374151;
}

body.dark-theme .goal-list-item:hover {
  background: #374151;
}

body.dark-theme .active-indicator {
  background: #ffffff;
}

body.dark-theme .channel-tab.active {
  border-color: #ffffff;
  color: #ffffff;
}

body.dark-theme .workspace-panel {
  border-color: var(--border-medium);
}

/* Extra overrides for text readability in Dark Mode */
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme h5 {
  color: #ffffff;
}

body.dark-theme .sidebar-icon-btn.active {
  background: var(--brand-active-light);
  color: var(--brand-active);
}

body.dark-theme .empty-state-container {
  background: transparent;
  border-color: var(--border-medium);
}

body.dark-theme .sidebar {
  border-right-color: var(--border-light);
}

body.dark-theme .logo-btn {
  color: #ffffff;
}