/* People's Perception - Corporate Theme */

:root {
  /* Brand palette */
  --pp-primary: #3a66b3; /* brand blue */
  --pp-secondary: #7a94cf; /* light brand blue */
  --pp-accent: #2c4f8a; /* dark accent */
  --pp-orange: #f59e0b; /* brand orange */
  --pp-orange-dark: #d97706; /* dark orange */
  --pp-on-primary: #ffffff;

  --pp-bg: #f7f9fc; /* page background tint */
  --pp-surface: #ffffff; /* cards */
  --pp-text: #1f2937; /* primary text */
  --pp-text-muted: #637189; /* secondary text */
  --pp-border: #e5e7eb; /* borders */

  --pp-success: #22c55e;
  --pp-warning: #f59e0b;
  --pp-error: #ef4444;

  /* Rounded + shadows */
  --pp-radius-sm: 6px;
  --pp-radius-md: 10px;
  --pp-radius-lg: 14px;
  --pp-shadow-sm: 0 2px 6px rgba(0,0,0,0.08);
  --pp-shadow-md: 0 6px 18px rgba(0,0,0,0.12);
  --pp-shadow-lg: 0 12px 32px rgba(0,0,0,0.16);

  /* Vuetify theme bridge */
  --v-theme-primary: var(--pp-primary);
  --v-theme-on-primary: var(--pp-on-primary);
}

/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--pp-text);
  background: var(--pp-bg);
}

/* Containers and surfaces */
.container { max-width: 1000px; margin: 0 auto; padding: 24px; }
.header {
  background: var(--pp-surface);
  padding: 20px;
  border-radius: var(--pp-radius-md);
  margin-bottom: 20px;
  box-shadow: var(--pp-shadow-sm);
  text-align: center;
}
.card, .auth-section, .evaluation-section, .questionnaire-card {
  background: var(--pp-surface);
  padding: 20px;
  border-radius: var(--pp-radius-md);
  box-shadow: var(--pp-shadow-sm);
}

/* Elevation + motion */
.questionnaire-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.questionnaire-card:hover { transform: translateY(-2px); box-shadow: var(--pp-shadow-md); }

/* Typography */
h1, h2, h3 { color: var(--pp-text); margin: 0 0 8px; }
p { color: var(--pp-text-muted); margin: 0 0 10px; }

/* Forms */
.form-group { margin-bottom: 16px; }
label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--pp-text); font-size: 14px; }
input, select, textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--pp-border);
  border-radius: var(--pp-radius-sm);
  font-size: 16px;
  background: #ffffff;
  color: var(--pp-text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--pp-primary);
  box-shadow: 0 0 0 3px rgba(58,102,179,0.15), 0 2px 6px rgba(0,0,0,0.15);
}

/* Login Page Styles */
.login-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background: var(--pp-bg);
}

.login-header {
  text-align: center;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease-out;
}

.brand-logo {
  margin-bottom: 20px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  background: white;
  padding: 8px;
  object-fit: contain;
}

.brand-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--pp-primary);
  margin: 0 0 8px 0;
}

.brand-subtitle {
  font-size: 1.1rem;
  color: var(--pp-text-muted);
  margin: 0;
  font-weight: 400;
}

.auth-card {
  background: var(--pp-surface);
  border-radius: var(--pp-radius-lg);
  box-shadow: var(--pp-shadow-lg);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
  border: 1px solid var(--pp-border);
}

.auth-section {
  text-align: center;
}

.auth-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--pp-text);
  margin: 0 0 8px 0;
}

.auth-subtitle {
  color: var(--pp-text-muted);
  margin: 0 0 30px 0;
  font-size: 1rem;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--pp-text);
}

.label-icon {
  font-size: 1.1rem;
}

.form-input {
  text-align: left;
  margin-bottom: 20px;
}

.btn-full {
  width: 100%;
  margin-bottom: 20px;
}

.btn-cta.btn-full {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  font-size: 1.1rem;
}

.btn-text {
  flex: 1;
}

.btn-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.btn-cta:hover .btn-icon {
  transform: translateX(4px);
}

.auth-divider {
  margin: 30px 0 20px 0;
  position: relative;
  text-align: center;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--pp-border);
}

.auth-divider span {
  background: var(--pp-surface);
  padding: 0 20px;
  color: var(--pp-text-muted);
  font-size: 0.9rem;
}

.features-section {
  margin-top: 60px;
  width: 100%;
  max-width: 900px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--pp-surface);
  padding: 30px 20px;
  border-radius: var(--pp-radius-md);
  text-align: center;
  box-shadow: var(--pp-shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--pp-border);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--pp-shadow-md);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--pp-text);
  margin: 0 0 10px 0;
}

.feature-card p {
  color: var(--pp-text-muted);
  margin: 0;
  line-height: 1.5;
}

.error-message, .success-message {
  padding: 12px 16px;
  border-radius: var(--pp-radius-sm);
  margin-bottom: 20px;
  font-size: 0.9rem;
  text-align: center;
}

.error-message {
  background: var(--pp-surface);
  color: var(--pp-text);
  border: 1px solid var(--pp-border);
}

.success-message {
  background: rgba(34, 197, 94, 0.1);
  color: var(--pp-success);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

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

@media (max-width: 768px) {
  .brand-title {
    font-size: 2rem;
  }
  
  .auth-card {
    padding: 30px 20px;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Modern Hero Profile Section */
.hero-profile {
  background: white;
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 32px;
  color: #212529;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.hero-profile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(58, 102, 179, 0.02) 0%, rgba(245, 158, 11, 0.02) 100%);
  pointer-events: none;
}

.profile-container {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
  z-index: 1;
  min-height: 280px;
}

.profile-image-section {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
}

.avatar-wrapper {
  position: relative;
  width: 200px; /* keep original circle size */
  height: 200px; /* keep original circle size */
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid white; /* reduced by ~25% */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.default-user-icon {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
}

.default-user-icon svg {
  width: 40%;               /* responsive to avatar diameter */
  height: auto;             /* maintain aspect ratio */
  display: block;           /* avoid inline baseline quirks */
  margin: 0 auto;           /* horizontally center inside flex fallback */
}

.user-icon {
  width: 60px;
  height: 60px;
  color: #6c757d;
}

.profile-image {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 125%;  /* 25% larger than the circle */
  height: 125%; /* 25% larger than the circle */
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center center; /* ensure cropping centers both axes */
}

.online-status {
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 28px;
  height: 28px;
  background: var(--pp-success);
  border: 4px solid white;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.pane-indicators {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.pane-online {
  width: 16px;
  height: 16px;
  background: var(--pp-success);
  border: 2px solid white;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.pane-level {
  position: relative;
  top: 0;
  left: 0;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(34, 197, 94, 0.3); }
  50% { transform: scale(1.1); box-shadow: 0 0 15px rgba(34, 197, 94, 0.5); }
}

.level-badge {
  background: var(--pp-primary);
  color: white;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 12px;
  box-shadow: 0 2px 8px rgba(58, 102, 179, 0.2);
}

.level-text {
  opacity: 0.8;
  margin-right: 4px;
}

.welcome-pane {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 280px;
  position: relative;
}

.pane-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.welcome-section {
  flex: 1;
}

.welcome-title {
  font-size: 1.1rem;
  font-weight: 400;
  margin: 0 0 6px 0;
  color: #6c757d;
}

.user-name {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 20px 0;
  color: #212529;
  line-height: 1.2;
}

.user-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.badge {
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.badge-premium {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
  color: #6c757d;
}

.badge-streak {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
  color: #6c757d;
}

.logout-btn {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 8px 12px;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.logout-btn:hover {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.main-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: auto;
}

.main-action-btn {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 12px 16px;
  color: #495057;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.main-action-btn:hover {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  color: #343a40;
}

.main-action-btn:active {
  transform: translateY(-1px) scale(1.01);
}

.btn-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.btn-content {
  text-align: left;
}

.btn-title {
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1.2;
}

.btn-subtitle {
  font-size: 0.65rem;
  color: #6c757d;
  line-height: 1.2;
}

/* Ranking Card */
.ranking-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.rank-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #495057;
}

.trophy-icon {
  font-size: 1.3rem;
}

.rank-title-display {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid #dee2e6;
  color: #495057;
  padding: 20px 32px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1.2rem;
  text-align: center;
  min-width: 200px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 8px 0;
}

.rank-position {
  background: var(--pp-orange);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.score-display {
  margin-bottom: 20px;
}

.score-main {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 12px;
}

.score-number {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  color: var(--pp-primary);
}

.score-max {
  font-size: 1.5rem;
  color: #6c757d;
  margin-left: 4px;
}

.score-bar {
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

.score-fill {
  height: 100%;
  background: var(--pp-primary);
  border-radius: 4px;
  width: 87%;
  transition: width 1s ease;
}

.ranking-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: center;
}

.stat {
  padding: 12px;
  border-radius: 12px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
  color: #212529;
}

.stat-label {
  font-size: 0.75rem;
  color: #6c757d;
  line-height: 1.2;
}

.stat.trending .stat-value {
  color: var(--pp-success);
}

/* Suggestions Card */
.suggestions-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.suggestions-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #343a40;
}

.suggestions-icon {
  font-size: 1.3rem;
}

.suggestions-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.section-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #495057;
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.action-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
}

.action-item:hover {
  background: #e9ecef;
  transform: translateX(2px);
}

.action-number {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
  color: #495057;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}

.action-text {
  font-size: 0.85rem;
  color: #495057;
  line-height: 1.3;
}

.resource-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.resource-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
  border-radius: 8px;
  color: #495057;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.85rem;
  font-weight: 500;
}

.resource-link:hover {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  color: #343a40;
  text-decoration: none;
}

.resource-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Connection Status */
.connection-status {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 500;
  z-index: 3;
  transition: all 0.3s ease;
}

.connection-status.online {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border-color: #28a745;
  color: #155724;
}

.connection-status.offline {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  border-color: #dc3545;
  color: #721c24;
}

/* Dashboard Cards */
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-profile {
    padding: 20px;
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .profile-container {
    flex-direction: row;
    gap: 16px;
    text-align: left;
  }
  
  .avatar-ring {
    width: 120px;
    height: 120px;
  }
  
  .user-icon {
    width: 60px;
    height: 60px;
  }
  
  .user-name {
    font-size: 1.8rem;
  }
  
  .profile-info {
    min-height: auto;
  }
  
  .quick-actions {
    justify-content: flex-start;
    gap: 8px;
  }
  
  .action-btn {
    min-width: 100px;
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  
  .ranking-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .dashboard-cards {
    grid-template-columns: 1fr;
  }
}

/* Buttons */
.btn {
  background: var(--pp-primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--pp-radius-sm);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn:hover {
  background: var(--pp-accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-secondary {
  background: var(--pp-text-muted);
  color: white;
}

.btn-secondary:hover {
  background: #5a6c7d;
}

.btn-cta {
  background: linear-gradient(135deg, var(--pp-orange) 0%, var(--pp-orange-dark) 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
  position: relative;
  overflow: hidden;
}


.btn-cta:hover {
  background: linear-gradient(135deg, var(--pp-orange-dark) 0%, #b45309 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(217, 119, 6, 0.6);
}

.btn-cta:active {
  transform: translateY(-1px) scale(1.01);
}

.btn-success { background: var(--pp-success); }
.btn-warning { background: var(--pp-warning); }
.btn-error { background: var(--pp-error); }

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.mt-10 { margin-top: 40px; }
.mb-4 { margin-bottom: 16px; }
.cursor-pointer { cursor: pointer; }

/* Progress */
.progress-bar { margin: 20px 0; }
.progress-fill { background: var(--pp-primary); height: 100%; border-radius: 5px; transition: width 0.3s ease; }

/* Question blocks (non-Vuetify pages) */
.question-card { background: #f8f9fa; padding: 20px; margin: 15px 0; border-radius: 8px; border-left: 4px solid var(--pp-primary); }
.question-category { font-size: 12px; color: var(--pp-text-muted); text-transform: uppercase; margin-bottom: 6px; }
.question-text { font-size: 16px; margin-bottom: 14px; color: var(--pp-text); }
.radio-group { display: flex; flex-wrap: wrap; gap: 14px; }
.radio-option { display: flex; align-items: center; gap: 6px; }

/* Lists */
.person-results { max-height: 220px; overflow-y: auto; border: 1px solid var(--pp-border); border-radius: var(--pp-radius-sm); }
.person-item { padding: 10px; border-bottom: 1px solid #eee; cursor: pointer; }
.person-item:hover { background: #f8f9fa; }
.selected-person { background: #e6eefc; padding: 15px; border-radius: var(--pp-radius-sm); margin-bottom: 16px; }

/* States */
.hidden { display: none; }
.error { color: var(--pp-error); margin-top: 5px; font-size: 12px; }
.success { color: var(--pp-success); margin-top: 5px; font-size: 12px; }

/* Animations */
.question-animation { animation: slideIn 0.5s ease-out; }
@keyframes slideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Material-style motion utilities */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: scale(1); } }

.anim-fade-up { animation: fadeUp .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--delay, 0s); }
.anim-fade-in { animation: fadeIn .5s ease both; animation-delay: var(--delay, 0s); }
.anim-scale-in { animation: scaleIn .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--delay, 0s); }

/* CTA pulse to draw attention subtly */
@keyframes pulse {
  0%, 100% { transform: translateY(0); box-shadow: var(--pp-shadow-sm); }
  50% { transform: translateY(-1px); box-shadow: var(--pp-shadow-md); }
}
.cta-pulse { animation: pulse 2.5s ease-in-out infinite; }

/* Hover elevation utility for cards/buttons */
.hover-elevate { transition: transform .2s ease, box-shadow .2s ease; }
.hover-elevate:hover { transform: translateY(-2px); box-shadow: var(--pp-shadow-md); }

/* Apply subtle animation to question cards on non-Vuetify pages */
.question-card { animation: fadeUp .45s ease both; }

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .anim-fade-up, .anim-fade-in, .anim-scale-in, .cta-pulse, .question-animation, .question-card { animation: none !important; }
  .hover-elevate, .questionnaire-card { transition: none !important; }
}

/* Ripple effect (centered) */
.ripple { position: relative; overflow: hidden; }
.ripple::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px; height: 12px;
  background: rgba(58,102,179,0.25);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform .6s ease, opacity .8s ease;
  pointer-events: none;
}
.ripple:active::after { transform: translate(-50%, -50%) scale(18); opacity: 1; transition: 0s; }

/* Delay helpers for staggered animations */
.delay-1 { --delay: .05s; }
.delay-2 { --delay: .1s; }
.delay-3 { --delay: .15s; }
.delay-4 { --delay: .2s; }

/* Dashboard styles */
.stat-card {
  background: var(--pp-surface);
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius-sm);
  padding: 16px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.stat-card:hover { transform: translateY(-1px); box-shadow: var(--pp-shadow-sm); }
.stat-number { font-size: 2rem; font-weight: 700; color: var(--pp-primary); margin-bottom: 4px; }
.stat-label { font-size: 0.9rem; color: var(--pp-text-muted); }
.evaluation-item { transition: background .2s ease; }
.evaluation-item:hover { background: rgba(58,102,179,0.05); }
.text-muted { color: var(--pp-text-muted); }

/* Button with subtitle styling */
.btn-with-subtitle { display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.btn-subtitle { font-size: 0.75rem; opacity: 0.8; margin-top: 2px; font-weight: 400; }

/* Header layout fixes */
.header {
  padding: 16px;
  margin-bottom: 20px;
  position: relative;
}

/* Logout button in header nav */
.logout-btn-header {
  margin-left: 12px;
}

/* Enhanced search button styling */
.search-btn {
  background: linear-gradient(135deg, #ff6b35, #f7931e) !important;
  color: white !important;
  border: none !important;
  padding: 14px 28px !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3) !important;
  transition: all 0.3s ease !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  margin-bottom: 32px !important;
}

/* Search results area */
.results-focal-area {
  margin: 24px 0;
  padding: 0;
}

.results-focal-area h3 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.2rem;
  color: var(--pp-text);
  font-weight: 600;
}

/* Mobile results indicator */
.results-scroll-indicator {
  display: none;
  text-align: center;
  margin-top: 16px;
  padding: 8px;
  background: var(--pp-primary);
  color: white;
  border-radius: var(--pp-radius-sm);
  font-size: 0.9rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Card spacing improvements */
.card {
  margin: 24px 0 32px 0;
}

/* Evaluation section spacing */
.evaluation-section {
  margin: 32px 0;
  padding: 24px;
}

/* Results focal area spacing */
.results-focal-area {
  margin: 48px 0 24px 0;
  padding: 0;
}

/* Person result cards - modern design */
.person-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.person-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}

.person-item:active {
  transform: translateY(-4px) scale(1.01);
}

.search-btn:hover {
  background: linear-gradient(135deg, #e55a2b, #e8851a) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4) !important;
}

.search-btn:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3) !important;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  min-height: 48px;
}

.header-logo-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0; /* Allows flex item to shrink */
}

.header h1 {
  margin: 0;
  font-size: 1.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-nav {
  flex-shrink: 0;
  margin-left: 12px;
}

.tagline {
  text-align: center;
  margin: 0;
  font-size: 1rem;
}

/* Mobile-optimized header */
@media (max-width: 768px) {
  .header { padding: 12px; }
  
  .header-top {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-height: auto;
  }
  
  .header-logo-title {
    justify-content: center;
    gap: 8px;
  }
  
  .header h1 { 
    font-size: 1.4rem !important;
    white-space: normal;
    text-align: center;
  }
  
  .header img { height: 32px !important; }
  
  .header-nav {
    text-align: center;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  
  .header-nav .text-muted {
    margin-right: 0 !important;
    margin-bottom: 4px;
    font-size: 0.85rem;
  }
  
  /* Mobile logout button in header nav */
  .logout-btn-header {
    margin-left: 8px !important;
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  
  /* Mobile search button adjustments */
  .search-btn {
    padding: 12px 24px !important;
    font-size: 1rem !important;
  }
  
  /* Mobile grid adjustments */
  #personResults {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    max-height: 70vh !important;
    overflow-y: auto !important;
    padding-right: 8px !important;
  }
  
  .person-item {
    min-height: 180px !important;
    padding: 8px !important;
  }
  
  .results-scroll-indicator {
    display: block !important;
  }
  
  .tagline { font-size: 0.9rem !important; }
  .link-brand { font-size: 12px !important; }
  
  /* Mobile button adjustments */
  .btn { padding: 8px 16px; font-size: 0.9rem; }
  .btn-with-subtitle { padding: 10px 16px; }
  .btn-subtitle { font-size: 0.7rem; }
  
  /* Mobile card spacing */
  .card { margin-bottom: 16px !important; padding: 16px; }
  .container { padding: 12px; }
}

@media (max-width: 480px) {
  .header h1 { font-size: 1.2rem !important; }
  .header img { height: 28px !important; }
  .tagline { font-size: 0.85rem !important; }
  
  /* Mobile search form - stack fields vertically */
  .person-search div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

/* Light background variant for non-landing pages */
body.light-bg { background: var(--pp-bg) !important; }

/* IndexV2 helpers */
.logo { height: 40px; width: auto; }
.login-box {
  max-width: 420px; margin: 60px auto; padding: 28px; background: var(--pp-surface);
  border-radius: var(--pp-radius-lg); box-shadow: var(--pp-shadow-md); text-align: center;
}
.login-box input { margin-bottom: 12px; }

/* Accessibility focus ring for clickables */
a, button, .btn, .v-btn, input, select, textarea { outline-offset: 2px; }

/* App-specific helpers */
.appbar-logo { height: 32px; width: auto; vertical-align: middle; margin-right: 8px; }
.hero-logo { height: 91px; width: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.15)); }

/* Footer */
.site-footer {
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(120%) blur(2px);
  border-top: 1px solid var(--pp-border);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.site-footer .v-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.site-footer .footer-links { display: flex; gap: 14px; }
.site-footer .footer-link { color: var(--pp-text-muted); text-decoration: none; font-size: 14px; }
.site-footer .footer-link:hover { color: var(--pp-primary); text-decoration: underline; }

/* Tagline */
.tagline { color: var(--pp-text-muted); font-size: 1.05rem; }

/* Generic brand link */
.link-brand { color: var(--pp-primary); text-decoration: none; }
.link-brand:hover { text-decoration: underline; }
