/* Respondents Profile Dashboard Styles */

/* Overview Header */
.overview-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.overview-header .section-title {
  font-size: var(--text-4xl);
  font-weight: var(--font-black);
  background: linear-gradient(135deg, #1f2937, #16a34a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-3);
}

.overview-header .section-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  font-weight: var(--font-medium);
  max-width: 600px;
  margin: 0 auto;
}

/* KPI section */
.kpi-section {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-12);
}

.kpi-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-width: 400px;
}

.kpi-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #16a34a, #22c55e);
  transform: scaleX(1);
  transition: var(--transition-all);
}

.kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  border-color: rgba(34, 197, 94, 0.2);
}

.kpi-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  border-radius: var(--radius-xl);
  color: white;
  font-size: var(--text-2xl);
  flex-shrink: 0;
}

.kpi-content {
  flex: 1;
}

.kpi-title {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.kpi-value {
  font-size: var(--text-4xl);
  font-weight: var(--font-black);
  color: #16a34a;
  margin-bottom: var(--space-1);
  transition: all 0.2s ease;
}

.kpi-subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: var(--font-medium);
}

/* Grid Layouts */
.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

/* Chart Cards */
.chart-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.chart-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #16a34a, #22c55e);
  transform: scaleX(0);
  transition: var(--transition-all);
}

.chart-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  border-color: rgba(34, 197, 94, 0.2);
}

.chart-card:hover::before {
  transform: scaleX(1);
}

.chart-card.full-width {
  grid-column: 1 / -1;
  margin-bottom: var(--space-8);
}

.chart-title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-6);
  text-align: center;
}

/* Activity Chart - FIXED ALIGNMENT */
.activity-chart-container {
  min-height: 400px;
}

.activity-chart {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.activity-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-2);
  border-radius: var(--radius);
  transition: var(--transition-all);
}

.activity-item:hover {
  background: rgba(34, 197, 94, 0.05);
}

.activity-label {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-primary);
  width: 350px; /* FIXED WIDTH FOR ALIGNMENT */
  text-align: left;
  flex-shrink: 0;
}

.activity-bar-container {
  flex: 1;
  height: 24px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.activity-bar {
  height: 100%;
  background: linear-gradient(90deg, #16a34a, #22c55e);
  border-radius: var(--radius-full);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s ease-out;
  width: 0%;
  position: relative;
  transform-origin: left center;
}

.activity-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 1.5s ease-in-out infinite;
  opacity: 0.7;
}

.activity-value {
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  min-width: 40px;
  text-align: left;
  flex-shrink: 0;
}

/* Size and Employment Charts - FIXED ALIGNMENT */
.size-chart-container,
.employment-chart-container {
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-3);
}

.size-chart,
.employment-chart {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.size-item,
.employment-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2);
  border-radius: var(--radius);
  transition: var(--transition-all);
}

.size-item:hover,
.employment-item:hover {
  background: rgba(34, 197, 94, 0.05);
}

.size-label,
.employment-label {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-primary);
  width: 200px; /* FIXED WIDTH FOR ALIGNMENT */
  text-align: left;
  flex-shrink: 0;
}

.size-bar-container,
.employment-bar-container {
  flex: 1;
  height: 20px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.size-bar,
.employment-bar {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s ease-out;
  width: 0%;
  position: relative;
  transform-origin: left center;
}

.size-bar {
  background: linear-gradient(90deg, #16a34a, #22c55e);
}

.size-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 1.5s ease-in-out infinite;
  opacity: 0.7;
}

.employment-bar {
  background: linear-gradient(90deg, #0891b2, #06b6d4);
}

.employment-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 1.5s ease-in-out infinite;
  opacity: 0.7;
}

.size-value,
.employment-value {
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  min-width: 40px;
  text-align: left;
  flex-shrink: 0;
}

/* Insight Callouts */
.insight-callout {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(74, 222, 128, 0.05));
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
}

.insight-callout i {
  color: #16a34a;
  font-size: var(--text-base);
}

/* Animations */
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0%); }
  100% { transform: translateX(100%); }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .activity-label { width: 280px; }
  .kpi-card { min-width: 350px; }
}

@media (max-width: 768px) {
  .bottom-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .chart-card { padding: var(--space-6); }
  .overview-header .section-title { font-size: var(--text-3xl); }
  .activity-label { width: 220px; font-size: var(--text-xs); }
  .size-label, .employment-label { width: 150px; font-size: var(--text-xs); }
  .kpi-card {
    min-width: 300px;
    flex-direction: column;
    text-align: center;
    gap: var(--space-4);
  }
  .kpi-value { font-size: var(--text-3xl); }
}

@media (max-width: 640px) {
  .chart-card { padding: var(--space-4); }
  .activity-label { width: 180px; }
  .size-label, .employment-label { width: 120px; }
  .kpi-card { min-width: 280px; }
}