:root {
  --bg-body: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;

  --metric-blue: #2563eb;
  --metric-purple: #9333ea;
  --metric-green: #16a34a;
  --metric-orange: #ea580c;
  --metric-pink: #db2777;
  --metric-gold: #eab308;
}

body {
  font-family: sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  font-size: 0.85rem;
}

main {
  margin: 0 20px;
}

.analy-dashboard-container {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px;
  margin-top: 100px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  transition: all 0.3s ease;
}

.analy-dashboard-container:hover {
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}

.analytics-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 15px !important;
  height: 100%;
  color: #1e293b;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  overflow: hidden;
}

.analytics-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
  border-color: #3b82f6;
}

.card-header-live {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.activity-title,
.survey-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #001248;
}

.badge-live {
  background-color: #f0fdf4;
  color: #16a34a;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #bbf7d0;
}

.live-indicator-dot {
  width: 5px;
  height: 5px;
  background-color: #16a34a;
  border-radius: 50%;
  display: inline-block;
}

.border-end-slate {
  border-right: 1px solid #f1f5f9;
}

.divider-slate {
  border-top: 1px solid #f1f5f9;
  margin: 16px 0;
}

.analytics-stat-label {
  color: #001248;
  font-size: 0.72rem;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.stat-value {
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
}

.text-dark-slate {
  color: #0f172a;
}

.text-purple {
  color: #a855f7;
}

.text-green {
  color: #22c55e;
}

.text-orange {
  color: #f97316;
}

.text-blue {
  color: #3b82f6;
}

/* Table System */
.table-activity {
  vertical-align: middle;
  font-size: 0.8rem;
}

.table-header-row {
  font-size: 0.68rem;
  color: #64748b;
  border-bottom: 2px solid #f1f5f9;
}

.table-header-row th {
  padding: 6px 4px;
  font-weight: 600;
}

.table-border-row {
  border-bottom: 1px solid #f8fafc;
}

.table-activity td {
  padding: 8px 4px;
}

.text-details {
  color: #334155;
}

.text-subtext {
  font-size: 0.65rem;
  font-weight: 400;
  color: #64748b;
}

.text-time {
  font-family: var(--bs-font-monospace);
  color: #212529;
  font-size: 0.75rem;
}

.badge-points {
  font-size: 0.65rem;
  padding: 2px 6px;
  border: 1px solid #bbf7d0;
}

.card-header-title {
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* margin-bottom: 15px; */
  color: #001248;
}

.card-header-title span i {
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  margin-left: 4px;
}

.active-status {
  background-color: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  padding: 4px 12px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.8rem;
}

/* KPI Display Elements */
.kpi-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kpi-icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
}

.dash-title {
  color: #001248 !important;
  font-weight: 600;
}

#map {
  height: 50px !important;
  width: 50px !important;
}

/* Pure CSS Funnel Component */
.funnel-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
}

.funnel-tier {
  text-align: center;
  color: white;
  font-weight: 500;
  font-size: 0.72rem;
  padding: 6px 4px;
  margin: 0 auto;
}

.tier-1 {
  width: 100%;
  background: #3b82f6;
  clip-path: polygon(0 0, 100% 0, 92% 100%, 8% 100%);
}

.tier-2 {
  width: 84%;
  background: #a855f7;
  clip-path: polygon(0 0, 100% 0, 90% 100%, 10% 100%);
}

.tier-3 {
  width: 68%;
  background: #f97316;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%);
}

.tier-4 {
  width: 52%;
  background: #22c55e;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  border-radius: 0 0 4px 4px;
}

.social-matrix-item {
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 6px;
  text-align: center;
}

.geographic-map-vector {
  background-color: #edf2f7;
  height: 180px;
  border-radius: 8px;
  position: relative;
  border: 1px solid #cbd5e1;
  overflow: hidden;
}

.map-interactive-tooltip {
  position: absolute;
  background: #0f172a;
  color: white;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  top: 40%;
  left: 25%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dense-table th,
.dense-table td {
  padding: 5px 8px !important;
  font-size: 0.8rem;
}

/* Interactive tab styling */
.demographics-btn.active {
  background-color: #c6dafd !important;
  box-shadow: 0 2px 4px rgba(165, 196, 250);
  font-weight: 600;
  color: #1f38f2 !important;
}

.btn {
  --bs-btn-color: #615c5c !important;
}

.progress {
  height: 12px !important;
  border-radius: 4px;
}

.analytics-header-container {
  padding: 1rem;
  border-radius: 0.5rem;
}

.analytics-header-title {
  letter-spacing: -0.5px;
  color: #001248;
  max-width: 260px;
  white-space: nowrap;
}

.campaign-selector {
  width: auto;
  background-color: #f1f5f9;
}

.status-indicator-dot {
  font-size: 0.6rem;
}

.profile-avatar {
  width: 32px;
  height: 32px;
  object-fit: cover;
}

.profile-name-text {
  font-size: 0.8rem;
  max-width: 200px;
  white-space: nowrap;
}

.profile-role-text {
  font-size: 0.7rem;
}

/* KPI Cards & Badges */
.kpi-purple {
  background-color: var(--metric-purple);
}

.kpi-pink {
  background-color: var(--metric-pink);
}

.kpi-gold {
  background-color: var(--metric-gold);
}

.kpi-trend-badge {
  font-size: 0.7rem;
}

.kpi-comparison-text {
  font-size: 9px;
}

/* Card Headers & Metadata */
.card-header-flex {
  color: #001248;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header-info-icon {
  font-size: 0.8rem;
  color: #64748b;
}

.card-subheader-muted {
  font-size: 9px;
}

.funnel-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.funnel-step {
  text-align: center;
  color: white;
  font-weight: bold;
  font-size: 11px;
  padding: 6px 2px;
  margin: 0 auto;
}

.funnel-tier-1 {
  width: 100%;
  background: #3b82f6;
  clip-path: polygon(0 0, 100% 0, 92% 100%, 8% 100%);
}

.funnel-tier-2 {
  width: 84%;
  background: #a855f7;
  clip-path: polygon(0 0, 100% 0, 90% 100%, 10% 100%);
}

.funnel-tier-3 {
  width: 68%;
  background: #f97316;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%);
}

.funnel-tier-4 {
  width: 52%;
  background: #22c55e;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  border-radius: 0 0 4px 4px;
}

.funnel-tier-5 {
  width: 52%;
  background: #ff0000;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  border-radius: 0 0 4px 4px;
}

/* Funnel Metrics */
.metric-label-small {
  font-size: 12px;
  font-weight: 500;
}

.metric-value-large {
  font-size: 1.4rem;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.metric-ring-wrapper {
  width: 75px;
  height: 75px;
}

.metric-value-medium {
  font-size: 1.1rem;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

/* Sharing & Social Component */
.social-donut-wrapper {
  width: 120px;
  height: 120px;
}

.social-donut-icon {
  pointer-events: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.social-donut-icon i {
  font-size: 1.4rem;
}

.social-shares-counter {
  font-size: 1.5rem;
  line-height: 1.1;
}

.social-shares-label {
  font-size: 12px;
  font-weight: bold;
  line-height: 1.2;
  color: #001248 !important;
}

.points-badge-box {
  background-color: #ffffff;
  min-height: 74px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.points-label-small {
  font-size: 10px;
  color: #001248 !important;
  font-weight: 600 !important;
}

.points-value-medium {
  font-size: 1.25rem;
  line-height: 1;
}

.points-subtext {
  font-size: 11px;
  color: #001248;
  font-weight: bold;
}

.social-platforms-title {
  font-size: 15px;
  color: #001248;
  text-align: center;
  font-weight: 600;
}

.platform-col {
  flex: 1;
}

.platform-col a {
  text-decoration: none;
}

.platform-icon-fb {
  font-size: 1.3rem;
}

.platform-icon-ig {
  font-size: 1.3rem;
  color: #0A66C2;
}

.platform-icon-wa {
  font-size: 1.3rem;
}

.platform-icon-x {
  font-size: 1.3rem;
}

.platform-icon-tk {
  font-size: 1.3rem;
}

.platform-count-text {
  font-size: 0.75rem;
  text-decoration: none;
}

.social-footer-bar {
  background-color: #f1f5f9;
  font-size: 13px;
  font-weight: 600;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  text-align: center;
  display: flex;
  color: #000;
  border-radius: 5px;
  padding: 3px 5px;
}

/* Giveaway Module */
.giveaway-card-custom {
  padding: 10px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  height: 100%;
}

.giveaway-header-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #001248;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.giveaway-info-icon {
  font-size: 0.85rem;
  color: #94a3b8;
}

.giveaway-metrics-hero {
  background-color: #f5faf7;
}

.giveaway-hero-icon {
  font-size: 1.35rem;
  line-height: 1.1;
}

.giveaway-hero-label {
  color: #001248;
  font-size: 13px;
  display: block;
  margin-bottom: 0px;
  font-weight: 500;
}

.giveaway-prize-value {
  color: #059669;
  font-weight: 700;
  font-size: 11px;
}

.giveaway-winners-value {
  color: #0f172a;
  font-weight: 700;
  font-size: 0.95rem;
}

.giveaway-donut-wrapper {
  width: 120px;
  height: 120px;
}

.giveaway-table-wrapper {
  margin-top: 32px;
}

.giveaway-table {
  font-size: 0.9rem;
  width: 100%;
}

.giveaway-td-label {
  padding: 6px 0;
  color: #001248;
  font-weight: 500;
}

.giveaway-td-value {
  padding: 6px 0;
  text-align: right;
  font-weight: 700;
  color: #0f172a;
}

.giveaway-total-row {
  border-top: 1px solid #e2e8f0;
}

.giveaway-td-total-label {
  padding: 12px 0 0 0;
  color: #0f172a;
  font-weight: 700;
}

.giveaway-td-total-value {
  padding: 12px 0 0 0;
  text-align: right;
  font-weight: 700;
  color: #059669;
  font-size: 1rem;
}

/* Demographics & Peripheral Panels */
.demographics-tabs-group {
  font-size: 0.75rem;
}

.time-panel-average-label {
  font-size: 0.7rem;
}

.time-panel-stats-list {
  font-size: 0.75rem;
}

.time-panel-total-box {
  font-size: 0.65rem;
}

.geo-map-overlay-container {
  font-size: 0.75rem;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.12) 20%, rgba(241, 245, 249, 1) 80%);
}

.device-legend-container {
  font-size: 15px;
}

.os-breakdown-title {
  font-size: 13px;
}

.os-breakdown-label {
  font-size: 13px;
}

.referrals-list-container {
  font-size: 0.75rem;
}

.campaign-selector {
  min-width: 260px;
  padding-right: 2rem !important;
}

#map {
  width: 100% !important;
  height: 500px !important;
}

/* voters analytics */

.dashboard-title-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #f0f2f5;
  padding-bottom: 15px;
}

.dashboard-title {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
}

.chart-box {
  min-height: 220px;
}

/* Static KPI Cards for Sentiment Breakdown */
.kpi-container {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.kpi-card {
  flex: 1;
  border-radius: 8px;
  text-align: center;
  padding: 15px 10px;
  max-width: 100px;
}

.kpi-positive {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

.kpi-neutral {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
}

.kpi-negative {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.kpi-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.kpi-label {
  font-size: 11px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}

.kpi-value {
  font-size: 18px;
  font-weight: 700;
}

.divider-left {
  border-left: 1px solid #f0f2f5;
}

.card-trend {
  padding: 24px;
  height: 100%;
}

.card-sentiment {
  border: 0 !important;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  border-radius: 0.5rem;
  padding: 1.5rem;
  background-color: #ffffff;
  margin-top: 15px;
}

.trend-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.sentiment-section-title {
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
}

.info-icon {
  font-size: 0.875rem;
  color: #64748b;
  cursor: pointer;
}

.trend-legend {
  font-size: 0.75rem;
  font-weight: 600;
}

.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

.bg-views {
  background: #3b82f6;
}

.bg-engaged {
  background: #a855f7;
}

.bg-completed {
  background: #22c55e;
}

.bg-shared {
  background: #f97316;
}

.select-trend {
  width: auto;
  font-size: 0.78rem;
  font-weight: 500;
  background-color: #f8fafc;
  border-color: #e2e8f0;
  border-radius: 6px;
  min-width: 130px;
}

.select-sentiment {
  width: 140px;
  font-size: 0.8rem;
  border-color: var(--bs-border-color-translucent);
}

.chart-container-trend {
  width: 100%;
  height: auto;
}

.chart-container-voter {
  height: 240px;
  width: 100%;
}

.kpi-card {
  border-radius: 0.5rem;
  flex-grow: 1;
  border: 1px solid;
  max-width: 85px;
  padding: 6px 0;
}

.kpi-label {
  font-weight: 600;
  color: #64748b;
  font-size: 0.7rem;
}

.kpi-value {
  font-weight: 700;
  font-size: 1.1rem;
}

.kpi-positive {
  background-color: #f0fdf4;
  border-color: #bbf7d0 !important;
}

.kpi-neutral {
  background-color: #f8fafc;
  border-color: #e2e8f0 !important;
}

.kpi-negative {
  background-color: #fef2f2;
  border-color: #fecaca !important;
}

.text-green-dark {
  color: #15803d;
}

.text-slate-dark {
  color: #475569;
}

.text-red-dark {
  color: #b91c1c;
}

.click-cursor {
  cursor: pointer;
}

.points-badge-box .points-value-medium {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.demographics-tabs-group {
  padding: 0.25rem !important;
}

/* --- Global Extensions & Header Elements --- */
.header-title-text {
  font-size: 0.95rem;
}

.header-info-icon {
  font-size: 0.85rem;
  cursor: pointer;
}

.interactive-info-icon {
  cursor: pointer;
}

.survey-time-sidebar {
  border-right: 1px solid #dee2e6;
  padding-right: 1rem;
}

.progress-ring-wrapper {
  width: 120px;
  height: 120px;
}

.progress-ring-svg {
  transform: rotate(-90deg);
  filter: drop-shadow(0px 4px 8px rgba(0, 123, 255, 0.15));
}

.progress-ring-bg {
  stroke: #e6f0ff;
}

.progress-ring-fill {
  stroke: #007bff;
}

.progress-ring-content {
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.progress-time-display {
  font-size: 1.35rem;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.progress-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.progress-ring-ticks {
  pointer-events: none;
  opacity: 0.6;
}

.tick-mark {
  position: absolute;
  background: #007bff;
}

.tick-top {
  width: 2px;
  height: 6px;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
}

.tick-right {
  width: 6px;
  height: 2px;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.tick-bottom {
  width: 2px;
  height: 6px;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
}

.tick-left {
  width: 6px;
  height: 2px;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.stats-metrics-list {
  font-size: 0.75rem;
}

.metric-icon-box {
  width: 32px;
  height: 32px;
}

.icon-box-gray {
  background-color: #f1f5f9;
  color: #475569;
}

.icon-box-green {
  background-color: #eafaf1;
  color: #1a7f37;
}

.icon-box-red {
  background-color: #ffebe9;
  color: #cf222e;
}

.metric-label {
  font-size: 0.65rem;
  line-height: 1.2;
}

.metric-value {
  font-size: 0.85rem;
}

.total-time-icon-box {
  width: 34px;
  height: 34px;
  background-color: #f1f5f9;
  color: #334155;
}

.total-time-label {
  font-size: 0.65rem;
  line-height: 1.2;
}

.total-time-value {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.total-time-format {
  font-size: 0.55rem;
  opacity: 0.7;
  font-weight: 600;
}

.geographic-map-card {
  padding: 24px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  height: 100%;
}

.map-info-icon {
  font-size: 0.85rem;
  color: #94a3b8;
  cursor: pointer;
}

.map-viewport {
  width: 100%;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  background-color: #f8fafc;
  border: 1px solid #f1f5f9;
}

.map-interactive-tooltip {
  display: none;
  top: 15px;
  left: 15px;
  z-index: 10;
  background: rgba(15, 23, 42, 0.95);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
  line-height: 1.45;
}

.tooltip-state-title {
  font-size: 0.85rem;
  color: #3b82f6;
  display: block;
  margin-bottom: 2px;
}

.tooltip-row {
  display: block;
  opacity: 0.9;
}

.tooltip-label {
  color: #cbd5e1;
}

.device-donut-chart {
  width: 100%;
  height: 110px;
}

.device-legend-list {
  font-size: 13px;
}

.os-breakdown-title {
  font-size: 13px;
}

.os-label {
  font-size: 13px;
}

.os-icon-android {
  color: #86b00f;
}

.os-icon-windows {
  color: #2c86bf;
}

.referrals-list {
  font-size: 0.75rem;
}

.referral-name {
  width: 85px;
  color: #000;
}

.referral-progress-container {
  height: 8px;
}

.referral-percentage {
  width: 45px;
}

.referral-bar-w45 {
  width: 45.2%;
}

.referral-bar-w24 {
  width: 24.6%;
}

.referral-bar-w16 {
  width: 16.1%;
}

.referral-bar-w8 {
  width: 8.3%;
}

@media (max-width: 992px) {
  .divider-left {
    border-left: none;
    border-top: 1px solid #f0f2f5;
    padding-top: 15px;
  }
}

/* org dropdown css start */

.custom-dropdown {
  position: relative;
  width: 100%;
  font-family: inherit;
}

.dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #e6e9ef;
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: .3s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
  /* --- Fix for Button Height --- */
  min-height: 48px;
  /* Allows button to grow dynamically for 2 lines */
  height: auto;
}

.dropdown-btn:hover {
  border-color: #4f46e5;
}

.selected-item {
  display: flex;
  align-items: center;
  gap: 12px;
  /* --- Fix for Flex Child Wrapping --- */
  min-width: 0;
  /* Allows flex item to shrink properly */
  flex: 1;
  /* Occupies available space before the arrow */
}

.selected-item img,
.dropdown-item img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  /* Prevents image from squishing when text wraps */
}

.selected-item span,
.dropdown-item span {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  /* --- Fix for Text Wrapping --- */
  white-space: normal;
  /* Allows text to break into multiple lines */
  word-break: break-word;
  line-height: 1.35;
}

.arrow {
  transition: .3s;
  font-size: 13px;
  color: #666;
  flex-shrink: 0;
  /* Keeps arrow locked to the right side */
  margin-left: 10px;
}

.custom-dropdown.active .arrow {
  transform: rotate(180deg);
}

.dropdown-list {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #ececec;
  box-shadow: 0 10px 35px rgba(0, 0, 0, .12);

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);

  transition: .25s;
  z-index: 1000;
  overflow: hidden;
  max-height: 200px;
}

.custom-dropdown.active .dropdown-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: .25s;
  /* --- Fix for List Item Height --- */
  height: auto;
}

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

.dropdown-item.active {
  background: #eef2ff;
}

.dropdown-item+.dropdown-item {
  border-top: 1px solid #f2f2f2;
}

/* org dropdown css end */

.nav-link {
  font-family: "Poppins", sans-serif;
}


/* new part design */
.survey-analytics-card {
  background-color: #ffffff;
  border-radius: 16px;
  border: 1px solid #e9ecef;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  padding: 1.5rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1e293b;
}

.survey-analytics-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.25rem;
}

.survey-analytics-title {
  color: #001248;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.survey-analytics-info-icon {
  color: #64748b;
  font-size: 0.9rem;
  cursor: pointer;
}

.survey-analytics-panel {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  height: 100%;
}

.survey-analytics-stat-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.survey-analytics-stat-badge {
  background-color: #eef2ff;
  color: #4338ca;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 0.25rem;
  /* Reduced from 1rem to keep the number close */
}

.survey-analytics-stat-number {
  font-size: 1.3rem;
  font-weight: 800;
  color: #4338ca;
  line-height: 1.1;
  /* Prevents large default line height spacing */
  margin: 0;
}

.survey-analytics-question-title {
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 16px;
  line-height: 1.4;
  white-space: normal;
  word-wrap: break-word;
}

.survey-analytics-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.survey-analytics-option-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

/* Top Row: Option Label (Left) + Counts (Right) */
.survey-analytics-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
}

.survey-analytics-table-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0.75rem;
}

.survey-analytics-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  font-size: 0.825rem;
}

.survey-analytics-image-div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.survey-analytics-image-div .survey-analytics-option-image {
  width: 40px;
  height: 40px;
  object-fit: fill;
  border-radius: 50%;
}

.survey-analytics-image-div .survey-analytics-option-subtitle {
  font-size: 11px;
  color: #6c757d;
  margin-top: 2px;
}

.survey-analytics-item-header .survey-analytics-label {
  font-weight: 500;
  font-size: 14px;
  color: #333;
}

.survey-analytics-value-wrapper {
  margin-left: auto;
  text-align: right;
}

.survey-analytics-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #4a5568;
  line-height: 1.3;
  white-space: normal;
  /* Allows multi-line text */
  word-break: break-word;
  /* Prevents overflow on long words */
}

.survey-analytics-bar-wrapper {
  width: 35%;
  padding: 0 8px;
}

.survey-analytics-progress {
  width: 100%;
  height: 8px;
  background-color: #f0f2f5;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}

.survey-analytics-bar {
  height: 100%;
  border-radius: 6px;
  transition: width 0.4s ease;
}

.survey-analytics-bar-green {
  background-color: #10b981;
}

.survey-analytics-bar-purple {
  background-color: #8b5cf6;
}

.survey-analytics-bar-blue {
  background-color: #00008d;
}

.survey-analytics-bar-light-purple {
  background-color: #a78bfa;
}

.survey-analytics-bar-dark-purple {
  background-color: #9400d3;
}

.survey-analytics-bar-grey {
  background-color: #94a3b8;
}

.survey-analytics-value {
  font-weight: 600;
  font-size: 14px;
  color: #222;
}

/* Top States Section */
.survey-analytics-states-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.survey-analytics-map-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.survey-analytics-map-img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* List Items */
.survey-analytics-state-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.survey-analytics-state-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.survey-analytics-state-name {
  color: #1e293b;
  font-weight: 600;
}

.survey-analytics-state-count {
  color: #0f172a;
  font-weight: 700;
}

/* Action Button */
.survey-analytics-btn-action {
  width: 100%;
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  color: #1e3a8a;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  transition: all 0.2s ease-in-out;
  margin-top: 1rem;
}

.survey-analytics-btn-action:hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
  color: #1d4ed8;
}


/* funnal */
.survey-analytics-card {
  background-color: #ffffff;
  border-radius: 16px;
  border: 1px solid #e9ecef;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  padding: 1.5rem;
  color: #1e293b;
  height: 100%;
}

.funnel-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.funnel-item {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
}

.funnel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  flex-shrink: 0;
}

.funnel-label {
  color: #334155;
  flex-grow: 1;
  white-space: nowrap;
}

.funnel-count {
  color: #0f172a;
  font-weight: 700;
  margin-left: 8px;
}

/* Custom Dot Colors */
.dot-1 {
  background-color: #1e3a8a;
}

.dot-2 {
  background-color: #2563eb;
}

.dot-3 {
  background-color: #3b82f6;
}

.dot-4 {
  background-color: #6366f1;
}

.dot-5 {
  background-color: #8b5cf6;
}

.dot-6 {
  background-color: #ec4899;
}

.dot-7 {
  background-color: #f97316;
}

/* Top Videos List Styles */
.video-list-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 1rem;
}

.video-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.video-title-text {
  font-size: 0.825rem;
  font-weight: 600;
  color: #1e293b;
  width: 45%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-progress-wrapper {
  width: 35%;
  padding: 0 8px;
}

.video-progress-bg {
  height: 6px;
  background-color: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.video-progress-fill {
  height: 100%;
  background-color: #cbd5e1;
  border-radius: 10px;
}

.video-pct-val {
  font-size: 0.825rem;
  font-weight: 700;
  color: #0f172a;
  width: 15%;
  text-align: right;
}

.video-view-all-link {
  display: block;
  text-align: center;
  color: #2563eb;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  margin-top: auto;
  padding-top: 0.5rem;
}

.video-view-all-link:hover {
  text-decoration: underline;
  color: #1d4ed8;
}

.source-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.source-item-row:last-child {
  margin-bottom: 0;
}

.source-title-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  width: 32%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.source-progress-wrapper {
  width: 48%;
  padding: 0 8px;
}

.source-progress-bg {
  height: 6px;
  background-color: #f1f5f9;
  border-radius: 10px;
  overflow: hidden;
}

.source-progress-fill {
  height: 100%;
  border-radius: 10px;
}

.source-pct-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
  width: 20%;
  text-align: right;
}

/* Custom Bar Colors for Source */
.bar-blue {
  background-color: #0066ff;
}

.bar-purple {
  background-color: #7c3aed;
}

.bar-orange {
  background-color: #f97316;
}

.bar-green {
  background-color: #10b981;
}

.bar-pink {
  background-color: #f43f5e;
}

.bar-dark {
  background-color: #1e293b;
}

/* ===================================================
   CARD 2: TOP ENGAGEMENT ACTIONS
   =================================================== */
.actions-list {
  display: flex;
  flex-direction: column;
}

.action-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f8fafc;
}

.action-item-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.action-item-row:first-child {
  padding-top: 0;
}

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

.action-icon-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #ffffff;
  flex-shrink: 0;
}

/* Icon Badge Color Variants */
.icon-pink {
  background-color: #ec4899;
}

.icon-red {
  background-color: #f43f5e;
}

.icon-purple {
  background-color: #6366f1;
}

.icon-blue {
  background-color: #0066ff;
}

.icon-orange {
  background-color: #f97316;
}

.action-title-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
}

.action-count-val {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
}

.video-summary-table {
  width: 100%;
  margin-bottom: 1rem;
}

.video-summary-table th {
  font-size: 0.75rem;
  font-weight: 600;
  color: #000;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}

.video-summary-table td {
  font-size: 0.825rem;
  padding: 0.75rem 0;
  color: #1e293b;
  border-bottom: 1px solid #f8fafc;
}

.video-summary-table tr:last-child td {
  border-bottom: none;
}

.video-summary-title-cell {
  font-weight: 700;
  color: #0f172a;
}

.video-summary-val-cell {
  font-weight: 600;
}

/* Pagination Footer */
.table-pagination-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.75rem;
}

.pagination-info {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
}

.custom-pagination {
  display: flex;
  gap: 4px;
}

.custom-pagination .page-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: all 0.2s;
}

.custom-pagination .page-btn.active {
  border-color: #2563eb;
  color: #2563eb;
  background-color: #eff6ff;
}

.custom-pagination .page-btn:hover:not(.active) {
  background-color: #f8fafc;
}

/* ===================================================
   CARD 2: ZIP CODE HEAT MAP
   =================================================== */
.zip-map-container {
  position: relative;
  width: 100%;
  height: 200px;
  background-color: #f8fafc;
  border-radius: 8px;
  overflow: hidden;
}

.map-placeholder-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

/* Map Zoom Controls */
.map-zoom-controls {
  position: absolute;
  left: 10px;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.map-zoom-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  font-weight: bold;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.map-zoom-btn:first-child {
  border-bottom: 1px solid #e2e8f0;
}

/* Map Color Scale Legend */
.map-color-legend {
  position: absolute;
  bottom: 10px;
  left: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 600;
}

.legend-bar {
  width: 120px;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, #dbeafe, #2563eb, #1e3a8a);
}

/* Map Tooltip Card */
.zip-map-tooltip {
  position: absolute;
  top: 40px;
  right: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 10px 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #f1f5f9;
  min-width: 140px;
}

.zip-tooltip-title {
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 4px;
}

.zip-tooltip-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-bottom: 2px;
}

.zip-tooltip-label {
  color: #64748b;
}

.zip-tooltip-val {
  font-weight: 700;
  color: #0f172a;
}

/* ===================================================
   CARD 3: VIDEOS BY LOCATION (TOP STATES)
   =================================================== */
.state-location-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  font-size: 0.85rem;
}

.state-location-name {
  font-weight: 600;
  color: #1e293b;
}

.state-location-stat {
  font-weight: 700;
  color: #0f172a;
}

.state-location-map-wrapper {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Custom Popup Card Styling */
.gm-style .gm-style-iw-c {
  padding: 0 !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12) !important;
  border: 1px solid #e2e8f0 !important;
}

.gm-style .gm-style-iw-d {
  overflow: hidden !important;
}

/* Hide default Google Maps close button */
.gm-style .gm-style-iw-t::after {
  background: #ffffff !important;
}

.gm-style .gm-style-iw-c button.gm-ui-hover-effect {
  display: none !important;
}

.gm-style-iw-ch {
  padding-top: 0px !important;
}

.zip-map-tooltip-card {
  padding: 12px 16px;
  min-width: 170px;
  background-color: #ffffff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1e293b;
}

.zip-tooltip-header {
  font-size: 0.85rem;
  color: #475569;
  margin-bottom: 8px;
}

.zip-tooltip-header strong {
  color: #0f172a;
  font-size: 0.95rem;
}

.zip-tooltip-data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  font-size: 0.8rem;
}

.zip-tooltip-data-row:last-child {
  margin-bottom: 0;
}

.zip-tooltip-data-label {
  color: #64748b;
  font-weight: 500;
}

.zip-tooltip-data-val {
  color: #0f172a;
  font-weight: 700;
}


.state-map-tooltip-card {
  padding: 12px 16px;
  min-width: 160px;
  background-color: #ffffff;
  color: #1e293b;
}

.state-tooltip-header {
  font-size: 0.85rem;
  color: #475569;
  margin-bottom: 8px;
}

.state-tooltip-header strong {
  color: #0f172a;
  font-size: 0.95rem;
}

.state-tooltip-data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  font-size: 0.8rem;
}

.state-tooltip-data-row:last-child {
  margin-bottom: 0;
}

.state-tooltip-data-label {
  color: #64748b;
  font-weight: 500;
}

.state-tooltip-data-val {
  color: #0f172a;
  font-weight: 700;
}


.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.card-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #1e1b4b;
  margin: 0;
}

.time-filter-dropdown {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 4px 12px;
  background-color: #ffffff;
  outline: none;
  cursor: pointer;
}

#viewsOverTime {
  width: 100%;
  height: 280px;
}


/* promo bottom button design */
.promo-banner-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  gap: 1.5rem;
}

.promo-content-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.promo-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.promo-text-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.promo-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.promo-subtitle {
  font-size: 0.825rem;
  font-weight: 500;
  color: #64748b;
  margin: 0;
}

.promo-actions-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-promo {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
}

.btn-promo-outline {
  background-color: #ffffff;
  color: #2563eb;
  border: 1px solid #2563eb;
}

.btn-promo-outline:hover {
  background-color: #eff6ff;
  color: #1d4ed8;
}

.btn-promo-danger {
  background-color: #e11d48;
  color: #ffffff;
  border: 1px solid #e11d48;
}

.btn-promo-danger:hover {
  background-color: #be123c;
  border-color: #be123c;
}

@media (max-width: 992px) {
  .promo-banner-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .promo-actions-right {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }
}


.widget-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e1b4b;
  margin: 0;
}

.info-icon {
  font-size: 0.85rem;
  color: #94a3b8;
  cursor: pointer;
  margin-left: 4px;
}

/* Donut Chart Legend List */
.status-legend-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
}

.bg-active {
  background-color: #00b04f;
}

.bg-paused {
  background-color: #ff9f1c;
}

.bg-completed {
  background-color: #7b88a8;
}

.legend-label {
  color: #1e293b;
  width: 70px;
  font-weight: 700;
}

.legend-val {
  color: #475569;
  margin-left: auto;
}

/* Top AmplePoints Earned List */
.amplepoints-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ample-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.825rem;
  padding: 2px 0;
}

.badge-icon {
  font-size: 0.85rem;
}

.item-title {
  font-weight: 600;
  color: #1e293b;
}

.item-value {
  font-weight: 700;
  color: #1e293b;
}

.view-all-link {
  font-size: 0.825rem;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
}

.view-all-link:hover {
  text-decoration: underline;
}

/* poll analytics chart */
.poll-metrics-card {
  background-color: #ffffff;
  border-radius: 16px;
  /* border: 1px solid #e2e8f0; */
  /* padding: 1.25rem 1.5rem; */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

/* Title */
.poll-metrics-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1e1b4b;
  margin: 0;
}

/* Table Styling */
.poll-metrics-table {
  width: 100%;
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.poll-metrics-table th {
  font-size: 0.78rem;
  font-weight: 700;
  color: #3b82f6;
  padding: 12px 10px;
  border-bottom: 1px solid #f1f5f9;
  white-space: nowrap;
}

.poll-metrics-table td {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
  padding: 14px 10px;
  border-bottom: 1px solid #f8fafc;
  white-space: nowrap;
}

.poll-metrics-table tbody tr:last-child td {
  border-bottom: none;
}

.poll-metrics-table .poll-name {
  color: #1e1b4b;
  font-weight: 800;
}

/* Footer & Pagination */
.poll-metrics-footer {
  border-top: 1px solid #f1f5f9;
}

.pagination-info {
  font-size: 0.825rem;
  font-weight: 600;
  color: #64748b;
}

.page-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  color: #1e293b;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-btn:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
}

.page-btn.active {
  border-color: #3b82f6;
  color: #2563eb;
  background-color: #eff6ff;
}

.page-btn.page-next {
  color: #2563eb;
}


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

.card-widget-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1e1b4b;
  margin: 0;
}

.source-legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
}

.legend-badge {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.legend-name {
  font-weight: 700;
  color: #1e293b;
}

.legend-value {
  font-weight: 700;
  color: #1e293b;
}

/* Card 2 Progress Bars */
.engagement-progress-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.progress-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
}

.progress-title {
  width: 130px;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.progress-bar-bg {
  flex: 1;
  height: 6px;
  background-color: #f1f5f9;
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 10px;
}

.progress-val {
  width: 70px;
  text-align: right;
  font-weight: 700;
  color: #1e293b;
}

.custom-legend-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.custom-legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
}

.legend-val {
  font-weight: 700;
  color: #1e293b;
}

/* Engagement Actions List (Card 2) */
.engagement-actions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.825rem;
}

.action-icon {
  font-size: 0.9rem;
}

.action-title {
  font-weight: 700;
  color: #1e293b;
}

.action-val {
  font-weight: 800;
  color: #1e293b;
}


.top-polls-table {
  width: 100%;
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.top-polls-table th {
  font-size: 0.78rem;
  font-weight: 700;
  color: #3b82f6;
  /* Blue header text */
  padding: 8px 0 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.top-polls-table td {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e1b4b;
  padding: 12px 0;
  border-bottom: 1px solid #f8fafc;
}

.top-polls-table tbody tr:last-child td {
  border-bottom: none;
}

.poll-title-cell {
  font-weight: 800;
}

.poll-val-cell {
  font-weight: 800;
}

/* Footer Link */
.view-all-polls-link {
  font-size: 0.875rem;
  font-weight: 800;
  color: #2563eb;
  text-decoration: none;
  transition: color 0.2s ease;
}

.view-all-polls-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

@media(max-width: 768px) {
  .analy-dashboard-container {
    background: none;
    padding: 0px 15px;
  }

  main {
    padding: 0 2px;
  }

  .poll-metrics-card {
    padding: 0 !important;
    border: none;
  }
}


/* sentiment analytics css */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.badge-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  color: #0f172a;
}

.badge-right {
  text-align: right;
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.5px;
}

.badge-right span {
  display: block;
  font-size: 14px;
}

.subtitle {
  color: #001248;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.main-title {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 28px;
}

.sentiment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.sentiment-item {
  position: relative;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 10px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.2s ease;
}

.sentiment-item.top-voted {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px #2563eb;
}

.check-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #2563eb;
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  border: 2px solid #ffffff;
}

.emoji-box {
  width: 72px;
  height: 72px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emoji-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sentiment-name {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
}

/* Container for progress bar & text */
.progress-track {
  position: relative;
  width: 100%;
  height: 24px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.progress-fill {
  height: 100%;
  border-radius: 12px;
  transition: width 0.5s ease-in-out;
}

.sentiment-item.top-voted .progress-fill {
  background: #2563eb;
}

/* Percentage text centered inside the bar */
.progress-text {
  position: absolute;
  width: 100%;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  pointer-events: none;
  z-index: 2;
}

.footer-action {
  display: flex;
  justify-content: flex-end;
}

.total-pill-btn {
  background: #4f46e5;
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.sentiment-inspired .progress-track {
  background: #fef3c7;
}

.sentiment-inspired .progress-fill {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.sentiment-inspired .progress-text {
  color: #78350f;
}

.sentiment-excited .progress-track {
  background: #fce7f3;
}

.sentiment-excited .progress-fill {
  background: linear-gradient(90deg, #ec4899, #f472b6);
}

.sentiment-excited .progress-text {
  color: #831843;
}

.sentiment-concerned .progress-track {
  background: #e0f2fe;
}

.sentiment-concerned .progress-fill {
  background: linear-gradient(90deg, #0284c7, #38bdf8);
}

.sentiment-concerned .progress-text {
  color: #0c4a6e;
}

.sentiment-angry .progress-track {
  background: #fee2e2;
}

.sentiment-angry .progress-fill {
  background: linear-gradient(90deg, #dc2626, #f87171);
}

.sentiment-angry .progress-text {
  color: #7f1d1d;
}

.sentiment-confused .progress-track {
  background: #ede9fe;
}

.sentiment-confused .progress-fill {
  background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

.sentiment-confused .progress-text {
  color: #4c1d95;
}

.sentiment-hopeful .progress-track {
  background: #d1fae5;
}

.sentiment-hopeful .progress-fill {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.sentiment-hopeful .progress-text {
  color: #064e3b;
}


.viewers-section {
  background-color: #ffffff;
  border-radius: 1rem !important;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  transition: box-shadow 0.2s ease-in-out;
}

.viewers-section .icon-box {
  width: 36px;
  height: 36px;
  background-color: #e0cffc;
  color: #0d6efd;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.viewers-badge {
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 50rem;
  background-color: #f8f9fa;
  color: #001248;
  border: 1px solid #dee2e6;
}

.viewers-table {
  border-collapse: separate;
  border-spacing: 0;
}

.viewers-table thead th {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: #001248;
  border-bottom: 0;
}

.viewers-table tbody tr {
  transition: background-color 0.15s ease-in-out;
}

.viewers-table tbody tr:hover {
  background-color: rgba(13, 110, 253, 0.02);
}

.user-avatar {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.date-badge {
  font-weight: 400;
  font-size: 0.8rem;
  padding: 0.4rem 0.85rem;
  border-radius: 50rem;
  background-color: #f8f9fa;
  color: #212529;
  border: 1px solid #dee2e6;
}

.empty-state {
  padding: 3rem 1rem;
  color: #adb5bd;
}

.table-pagination-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--bs-gray-200, #e9ecef);
}

.custom-pagination .pagination {
  margin: 0;
  gap: 0.35rem;
}

.custom-pagination .page-item .page-link {
  border: 1px solid var(--bs-gray-200, #e9ecef);
  border-radius: 0.5rem !important;
  color: var(--bs-gray-700, #495057);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.45rem 0.85rem;
  background-color: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease-in-out;
}

.custom-pagination .page-item:not(.active):not(.disabled) .page-link:hover {
  background-color: var(--bs-gray-100, #f8f9fa);
  border-color: var(--bs-gray-300, #dee2e6);
  color: var(--bs-primary, #0d6efd);
  transform: translateY(-1px);
}

.custom-pagination .page-item.active .page-link {
  background-color: #001248;
  border-color: #001248;
  color: #ffffff;
  box-shadow: 0 3px 6px rgba(13, 110, 253, 0.25);
}

.custom-pagination .page-item.disabled .page-link {
  background-color: var(--bs-gray-100, #f8f9fa);
  border-color: var(--bs-gray-200, #e9ecef);
  color: var(--bs-gray-400, #ced4da);
  box-shadow: none;
  opacity: 0.7;
}

.empty-state {
  padding: 3rem 1rem;
  color: var(--bs-gray-500, #adb5bd);
}

.pagination-info-text {
  font-size: 0.85rem;
  color: #001248;
  letter-spacing: 0.01em;
  margin-bottom: 0;
}

.pagination-info-text .fw-semibold {
  color: #001248;
  font-weight: 600;
}

.custom-pagination nav>div:first-child,
.custom-pagination .small.text-muted,
.custom-pagination p.text-sm {
  display: none !important;
}

.custom-pagination nav {
  display: flex;
  justify-content: flex-end;
}
.party-item i{
    font-size: 20px;
}
