/* ANKETOR - Modern Professional Light Theme Design System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Surfaces & Backgrounds */
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-input: #ffffff;

  /* Borders */
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  --border-focus: #4f46e5;
  --border-subtle: #f1f5f9;

  /* Primary Brand (Indigo) */
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #6366f1;
  --primary-soft: #eef2ff;
  --primary-border: #c7d2fe;
  --primary-glow: rgba(79, 70, 229, 0.18);

  /* Accents */
  --accent-emerald: #059669;
  --accent-emerald-soft: #ecfdf5;
  --accent-emerald-border: #a7f3d0;

  --accent-amber: #d97706;
  --accent-amber-soft: #fffbeb;
  --accent-amber-border: #fde68a;

  --accent-rose: #e11d48;
  --accent-rose-soft: #fff1f2;
  --accent-rose-border: #fecdd3;

  --accent-violet: #7c3aed;
  --accent-violet-soft: #f5f3ff;
  --accent-violet-border: #ddd6fe;

  --accent-cyan: #0284c7;
  --accent-cyan-soft: #f0f9ff;
  --accent-cyan-border: #bae6fd;

  /* Typography / Text colors */
  --text-main: #0f172a;       /* slate-900 */
  --text-body: #334155;       /* slate-700 */
  --text-muted: #64748b;      /* slate-500 */
  --text-dim: #94a3b8;        /* slate-400 */

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.06), 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-body);
  min-height: 100vh;
  line-height: 1.5;
  background-image: 
    radial-gradient(circle at 12% 8%, rgba(79, 70, 229, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 88% 85%, rgba(124, 58, 237, 0.03) 0%, transparent 45%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ================= HEADER ================= */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
}

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

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

/* Büyük Geri Butonu (Header'da Sabit, Yazısız, Belirgin İkon) */
.btn-header-back {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  user-select: none;
  padding: 0;
}

.btn-header-back .back-arrow-icon {
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  display: inline-block;
  transition: transform var(--transition-fast);
}

.btn-header-back:hover {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary-border);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.2);
}

.btn-header-back:hover .back-arrow-icon {
  transform: translateX(-3px);
}

.btn-header-back:active {
  transform: scale(0.95);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  user-select: none;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.brand-badge {
  font-size: 11px;
  padding: 2px 8px;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-full);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.brand-subline {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}

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

/* Header Buttons */
.btn-header-new {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
}

.btn-header-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  background: #ffffff;
  color: #e11d48;
  border: 1px solid #fecdd3;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-header-logout:hover {
  background: #fff1f2;
  border-color: #fda4af;
  color: #be123c;
}

/* ================= NAVIGATION BAR ================= */
.nav-bar {
  position: sticky;
  top: var(--header-h, 73px);
  z-index: 45;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
}

.nav-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  flex-wrap: wrap;
}

.nav-brand-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-main-heading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--primary-border);
}

.nav-heading-icon {
  font-size: 16px;
}

.breadcrumb-current-badge {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--primary-border);
  max-width: 450px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
}

.nav-bar-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.network-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.network-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.admin-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--text-body);
  font-weight: 600;
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  font-family: inherit;
  line-height: 1.25;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(79, 70, 229, 0.3);
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-body);
  border-color: var(--border-color);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover {
  background: #f8fafc;
  border-color: var(--border-hover);
  color: var(--text-main);
  transform: translateY(-1px);
}

.btn-success {
  background: var(--accent-emerald);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(5, 150, 105, 0.3);
}
.btn-success:hover {
  background: #047857;
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--accent-rose-soft);
  color: var(--accent-rose);
  border-color: var(--accent-rose-border);
}
.btn-danger:hover {
  background: var(--accent-rose);
  color: #ffffff;
  border-color: var(--accent-rose);
}

.btn-simulator {
  background: var(--accent-violet);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(124, 58, 237, 0.3);
}
.btn-simulator:hover {
  background: #6d28d9;
  box-shadow: 0 4px 10px rgba(124, 58, 237, 0.35);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn-icon {
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  font-size: 13px;
}
.btn-icon:hover {
  color: var(--text-main);
  background: #f8fafc;
  border-color: var(--border-hover);
}

/* ================= MAIN CONTENT ================= */
.main-content {
  padding: 28px 0 64px 0;
}

.view-section {
  display: none;
  animation: fadeIn 0.25s ease;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.builder-sticky-header {
  position: sticky;
  top: calc(var(--header-h, 73px) + var(--navbar-h, 46px));
  z-index: 40;
  background: rgba(248, 250, 252, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 14px 16px;
  margin: -14px -16px 20px -16px;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 10px -2px rgba(15, 23, 42, 0.04);
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.section-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.card:hover {
  border-color: var(--border-hover);
}

/* Section Toolbar Card */
.section-toolbar-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 280px;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

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

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  padding-left: 36px !important;
  font-size: 13px !important;
}

.filter-select {
  width: auto !important;
  font-size: 13px !important;
  padding: 9px 14px !important;
}

/* Simulator Callout Banner */
.simulator-banner {
  background: linear-gradient(135deg, #f5f3ff 0%, #eef2ff 100%);
  border: 1px solid var(--accent-violet-border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.simulator-banner::after {
  content: '⚡';
  position: absolute;
  right: 12px;
  bottom: -25px;
  font-size: 120px;
  opacity: 0.05;
  pointer-events: none;
}

.banner-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-violet);
  background: rgba(124, 58, 237, 0.1);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.banner-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.banner-desc {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.5;
}

.banner-actions {
  flex-shrink: 0;
}

.surveys-count-pill {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  background: #f1f5f9;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

/* ================= SURVEYS GRID ================= */
.surveys-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

.survey-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.survey-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
}

.survey-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-lg);
}

/* Card Top Metadata */
.survey-card-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.survey-badge-id {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  background: var(--primary);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 1px 3px rgba(79, 70, 229, 0.3);
}

.survey-link-pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: #f8fafc;
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
}
.survey-link-pill:hover {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary-border);
}

.survey-card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 6px;
}

.survey-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

/* 3-Column Stats Row */
.survey-card-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  text-align: center;
}

.card-stat-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card-stat-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.card-stat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Badges */
.badge {
  font-size: 12px;
  padding: 4px 9px;
  border-radius: var(--radius-full);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-primary {
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.badge-success {
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
  border: 1px solid var(--accent-emerald-border);
}

.badge-purple {
  background: var(--accent-violet-soft);
  color: var(--accent-violet);
  border: 1px solid var(--accent-violet-border);
}

.badge-gray {
  background: #f1f5f9;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

/* Primary Actions 2x2 Grid */
.survey-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 2px;
}

.btn-action-analytics {
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
}
.btn-action-analytics:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
  transform: translateY(-1px);
}

.btn-action-builder {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
  box-shadow: var(--shadow-xs);
}
.btn-action-builder:hover {
  background: #f8fafc;
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.btn-action-share {
  background: #ffffff;
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan-border);
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
  box-shadow: var(--shadow-xs);
}
.btn-action-share:hover {
  background: var(--accent-cyan-soft);
  border-color: var(--accent-cyan);
  transform: translateY(-1px);
}

.btn-action-simulate {
  background: var(--accent-violet-soft);
  color: var(--accent-violet);
  border: 1px solid var(--accent-violet-border);
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
}
.btn-action-simulate:hover {
  background: var(--accent-violet);
  color: #ffffff;
  border-color: var(--accent-violet);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
  transform: translateY(-1px);
}

/* Bottom Secondary Toolbar */
.survey-card-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  gap: 8px;
  margin-top: auto;
}

.btn-outline-preview {
  background: #ffffff;
  color: var(--accent-emerald);
  border: 1px solid var(--accent-emerald-border);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}
.btn-outline-preview:hover {
  background: var(--accent-emerald-soft);
  border-color: var(--accent-emerald);
}

.bottom-action-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-icon-label {
  background: #ffffff;
  color: var(--text-body);
  border: 1px solid var(--border-color);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-icon-label:hover {
  background: #f8fafc;
  border-color: var(--border-hover);
  color: var(--text-main);
}

.btn-danger-label {
  background: #ffffff;
  color: var(--accent-rose);
  border: 1px solid var(--accent-rose-border);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-danger-label:hover {
  background: var(--accent-rose-soft);
  border-color: var(--accent-rose);
}

/* ================= ANALYTICS VIEW ================= */
.analytics-control-bar {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.analytics-control-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 280px;
}

.control-label-group {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.control-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.analytics-select {
  flex: 1;
  max-width: 380px;
  font-size: 14px !important;
}

.analytics-control-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Stats Overview */
.stats-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.stat-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-main);
  line-height: 1.15;
}

.stat-hint {
  font-size: 12px;
  color: var(--text-dim);
}

/* Question Charts */
.chart-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.chart-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.chart-bars-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chart-bar-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chart-bar-info {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
}

.chart-bar-label {
  color: var(--text-main);
}

.chart-bar-count {
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}

.chart-bar-track {
  height: 10px;
  background: #f1f5f9;
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.chart-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--primary), #818cf8);
  transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.rating-stars {
  display: inline-flex;
  gap: 4px;
  color: #f59e0b;
}

/* ================= FORMS & INPUTS ================= */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}

.form-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-main);
  font-size: 14px;
  font-family: inherit;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 85px;
}

/* Question Builder Cards */
.question-item {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  position: relative;
  transition: all var(--transition-fast);
}

.question-item:hover {
  border-color: #cbd5e1;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.question-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.question-number-badge {
  font-size: 12px;
  font-weight: 700;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.option-pill-input {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

/* ================= MODALS ================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-normal);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  box-shadow: var(--shadow-xl);
  transform: scale(0.96) translateY(8px);
  transition: all var(--transition-normal);
  overflow: hidden;
}

.modal-overlay.open .modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  background: #ffffff;
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  border-radius: var(--radius-xs);
}
.modal-close:hover {
  color: var(--text-main);
  background: #f1f5f9;
}

.modal-body {
  padding: 22px 24px;
}

.modal-footer {
  padding: 14px 24px;
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ================= TOAST NOTIFICATION ================= */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.3s ease;
  min-width: 280px;
}

.toast-success {
  border-left: 4px solid var(--accent-emerald);
}
.toast-info {
  border-left: 4px solid var(--primary);
}
.toast-error {
  border-left: 4px solid var(--accent-rose);
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ================= DATA TABLE ================= */
.data-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: #ffffff;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.data-table th {
  background: #f8fafc;
  padding: 11px 16px;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}

.data-table tr:hover td {
  background: #f8fafc;
}

/* ================= WORD DROPZONE ================= */
.word-dropzone {
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 34px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.word-dropzone:hover, .word-dropzone.dragover {
  border-color: var(--primary);
  background: var(--primary-soft);
  transform: scale(1.005);
}

/* ================= RESPONSIVE ADJUSTMENTS ================= */
@media (max-width: 768px) {
  .surveys-grid {
    grid-template-columns: 1fr;
  }
  .simulator-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-toolbar-card {
    flex-direction: column;
    align-items: stretch;
  }
  .toolbar-left, .search-input-wrapper {
    max-width: 100%;
  }
  .analytics-control-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .analytics-control-left, .analytics-select {
    max-width: 100%;
  }
}

/* ================= SIMULATOR CONSTRAINTS ================= */
.sim-constraint-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: all var(--transition-fast);
}

.sim-constraint-card:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.sim-constraint-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sim-constraint-header select {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  background: #ffffff;
}

.btn-remove-constraint {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
  border-radius: var(--radius-sm);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.btn-remove-constraint:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
  transform: scale(1.05);
}

.sim-constraint-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}

.sim-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 500;
  border-radius: 20px;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: var(--text-main);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.sim-chip:hover {
  border-color: var(--primary);
  background: #f8fafc;
  transform: translateY(-1px);
}

.sim-chip.allowed {
  background: #f5f3ff;
  border-color: #c7d2fe;
  color: #4338ca;
}

.sim-chip.excluded {
  background: #fef2f2;
  border-color: #f87171;
  border-style: dashed;
  color: #b91c1c;
  text-decoration: line-through;
  opacity: 0.8;
}

.sim-chip.excluded:hover {
  background: #fee2e2;
  border-color: #ef4444;
  opacity: 1;
}

.sim-chip-icon {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.sim-empty-constraints {
  text-align: center;
  padding: 14px 10px;
  font-size: 12.5px;
  color: var(--text-muted);
  background: #f8fafc;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
}

/* ================= SIMULATOR WEIGHTS & SLIDERS ================= */
.sim-mode-switcher {
  display: flex;
  gap: 4px;
  background: #e2e8f0;
  padding: 2px;
  border-radius: var(--radius-sm);
  margin-top: 8px;
}

.sim-mode-tab {
  flex: 1;
  text-align: center;
  padding: 5px 8px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sim-mode-tab.active {
  background: #ffffff;
  color: var(--accent-violet);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.sim-presets-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.btn-sim-preset {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-sim-preset:hover {
  background: #f1f5f9;
  border-color: var(--accent-violet);
  color: var(--accent-violet);
}

.sim-weights-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}

.sim-weight-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
  transition: all var(--transition-fast);
}

.sim-weight-row:hover {
  border-color: #cbd5e1;
}

.sim-weight-label {
  flex: 1;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sim-weight-slider-wrap {
  flex: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sim-weight-slider {
  width: 100%;
  accent-color: var(--accent-violet);
  cursor: pointer;
  height: 6px;
}

.sim-weight-val {
  min-width: 44px;
  text-align: right;
  font-family: monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-violet);
}

.sim-weight-row.zero {
  opacity: 0.55;
  background: #fef2f2;
  border-color: #fecaca;
}

.sim-weight-row.zero .sim-weight-label {
  text-decoration: line-through;
  color: #991b1b;
}

.sim-weight-row.zero .sim-weight-val {
  color: #dc2626;
}

.sim-dist-bar-wrap {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sim-dist-bar {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: #e2e8f0;
}

.sim-dist-bar-seg {
  height: 100%;
  transition: width 0.2s ease;
}

/* ================= ANALYTICS VIEW SWITCHER ================= */
.analytics-view-switcher-card {
  margin-top: 24px;
  margin-bottom: 24px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.view-switcher-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.view-switcher-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.view-switcher-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.view-switcher-buttons {
  display: inline-flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  gap: 4px;
}

.btn-analytics-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-analytics-mode:hover {
  color: var(--text-main);
  background: rgba(255,255,255,0.6);
}

.btn-analytics-mode.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.35);
}

.btn-analytics-mode .mode-icon {
  font-size: 15px;
  line-height: 1;
}

/* ================= 3D PIE CHART STYLES ================= */
.pie-3d-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(280px, 1.2fr);
  gap: 24px;
  align-items: center;
  padding: 10px 0;
}

@media (max-width: 820px) {
  .pie-3d-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.pie-3d-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 210px;
}

.pie-3d-svg {
  width: 100%;
  max-width: 360px;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.06));
}

.pie-slice-group {
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: 170px 90px;
}

.pie-slice-group:hover,
.pie-slice-group.highlighted {
  transform: translateY(-6px) scale(1.02);
}

.pie-3d-top {
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.pie-3d-wall {
  transition: opacity 0.2s ease;
}

.pie-legend-wrapper {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
}

.pie-legend-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.pie-legend-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.pie-legend-total {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: #eef2ff;
  padding: 2px 8px;
  border-radius: 10px;
}

.pie-legend-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pie-legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pie-legend-item:hover,
.pie-legend-item.highlighted {
  border-color: var(--primary);
  background: #f5f3ff;
  transform: translateX(3px);
}

.pie-legend-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.pie-legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.pie-legend-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pie-legend-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pie-legend-count {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.pie-legend-badge {
  font-size: 12px;
  font-weight: 700;
  font-family: monospace;
  padding: 2px 7px;
  border-radius: 6px;
  min-width: 44px;
  text-align: center;
}

.pie-tooltip {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  animation: fadeIn 0.15s ease;
  z-index: 10;
}

/* ================= PAGE TRANSITION & DB LOADING OVERLAY ================= */
.page-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(248, 250, 252, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.24s ease;
}

.page-loading-overlay.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.page-loading-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 20px;
  padding: 32px 36px 28px 36px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(79, 70, 229, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 360px;
  width: 90%;
  transform: scale(0.92) translateY(8px);
  transition: transform 0.26s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.page-loading-overlay.active .page-loading-card {
  transform: scale(1) translateY(0);
}

.page-loading-spinner-wrap {
  position: relative;
  width: 68px;
  height: 68px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-ring-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #4f46e5;
  border-right-color: #8b5cf6;
  animation: spinOuter 1s linear infinite;
  filter: drop-shadow(0 0 6px rgba(79, 70, 229, 0.35));
}

.loading-ring-inner {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  border-bottom-color: #06b6d4;
  border-left-color: #6366f1;
  animation: spinInner 0.8s linear infinite reverse;
}

.loading-brand-icon {
  font-size: 24px;
  animation: pulseScale 1.6s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.page-loading-text-wrap {
  margin-bottom: 18px;
}

.page-loading-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
  letter-spacing: -0.2px;
}

.page-loading-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.4;
}

.page-loading-progress-bar {
  width: 100%;
  height: 4px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.page-loading-progress-indeterminate {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: linear-gradient(90deg, #4f46e5, #8b5cf6, #06b6d4);
  border-radius: 999px;
  width: 40%;
  animation: indeterminateBar 1.3s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
}

@keyframes spinOuter {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spinInner {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulseScale {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

@keyframes indeterminateBar {
  0% { left: -40%; width: 30%; }
  50% { left: 40%; width: 60%; }
  100% { left: 105%; width: 40%; }
}
