/* ==========================================
   CIVIC VOICE BUTTON STYLES
   ========================================== */
.voice-feedback-container {
  width: 95%;
  max-width: 960px;
  margin: 20px auto;
}

.voice-feedback-button {
  width: 100%;
  height: 80px;
  background-color: #e8e8e8ff;
  border: none;
  border-radius: 10px;
  padding: 5px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.voice-feedback-button:hover {
  background-color: #d8d8d8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.voice-icon-container {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 2px;
  margin: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: calc(80px - 30px);
  width: calc(80px - 30px);
}

.voice-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.voice-text-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 15px;
}

.voice-title {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin: 0 0 4px 0;
  line-height: 1.2;
}

.voice-subtitle {
  font-size: 14px;
  font-weight: 400;
  color: #666;
  margin: 0;
  line-height: 1.3;
}

/* ==========================================
   CIVIC FEED STYLES (Week 5)
   ========================================== */
.civic-feed-container {
  width: 95%;
  max-width: 960px;
  margin: 20px auto;
}

.civic-feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 0 4px;
}

.civic-feed-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.refresh-btn {
  background: #f0f0f0;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.refresh-btn:hover {
  background: #e0e0e0;
  transform: rotate(180deg);
}

.civic-feed-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.civic-report-card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.civic-report-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.report-author {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.author-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.report-meta {
  font-size: 12px;
  color: #999;
}

.report-status {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.status-submitted {
  background: #E3F2FD;
  color: #1976D2;
}

.status-acknowledged {
  background: #FFF3E0;
  color: #F57C00;
}

.status-in_progress {
  background: #F3E5F5;
  color: #7B1FA2;
}

.status-resolved {
  background: #E8F5E9;
  color: #388E3C;
}

.report-body {
  margin-bottom: 12px;
}

.report-issue-type {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.issue-icon {
  font-size: 18px;
}

.issue-label {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.report-location {
  font-size: 13px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 4px;
}

.report-location i {
  font-size: 11px;
  color: #999;
}

.report-actions {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.support-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  background: #f5f5f5;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
}

.support-btn:hover {
  background: #e8e8e8;
}

.support-btn.supported {
  background: #E3F2FD;
  color: #1976D2;
}

.support-btn i {
  font-size: 16px;
}

.support-count {
  font-weight: 700;
}

.view-btn {
  padding: 10px 20px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-btn:hover {
  border-color: #333;
  color: #333;
}

/* Mobile responsive */
@media (max-width: 480px) {
  .civic-feed-container {
    width: 100%;
    margin: 16px 0;
    padding: 0 12px;
  }

  .civic-report-card {
    padding: 14px;
  }

  .report-actions {
    flex-direction: column;
  }

  .support-btn,
  .view-btn {
    width: 100%;
  }
}

/* ==========================================
   PETITION SYSTEM STYLES (Week 7)
   ========================================== */

/* Petition Container */
.petition-container {
  width: 95%;
  max-width: 960px;
  margin: 20px auto;
}

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

.petition-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.create-petition-cta-btn {
  background: linear-gradient(135deg, #7B1FA2 0%, #9C27B0 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(123, 31, 162, 0.3);
}

.create-petition-cta-btn:hover {
  background: linear-gradient(135deg, #6A1B9A 0%, #8E24AA 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(123, 31, 162, 0.4);
}

.petition-feed-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Petition Card */
.feed-petition-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.feed-petition-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

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

.petition-title {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin: 0;
  flex: 1;
  line-height: 1.3;
}

.petition-status-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.petition-status-badge.active {
  background: #E3F2FD;
  color: #1976D2;
}

.petition-status-badge.won {
  background: #E8F5E9;
  color: #388E3C;
}

.petition-status-badge.closed {
  background: #F5F5F5;
  color: #666;
}

.petition-body {
  margin-bottom: 16px;
}

.petition-description {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 0 0 12px 0;
}

.petition-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #999;
}

.petition-target {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  color: #666;
}

.petition-category {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Progress Bar */
.petition-progress {
  margin-bottom: 16px;
}

.progress-bar-container {
  height: 8px;
  background: #E0E0E0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #7B1FA2 0%, #9C27B0 100%);
  transition: width 0.5s ease;
  border-radius: 4px;
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.signature-count {
  font-weight: 700;
  color: #7B1FA2;
}

.signature-remaining {
  color: #999;
}

/* Petition Actions */
.petition-actions {
  display: flex;
  gap: 12px;
}

.sign-petition-btn {
  flex: 1;
  padding: 12px 20px;
  background: #7B1FA2;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sign-petition-btn:hover:not(.signed) {
  background: #6A1B9A;
  transform: translateY(-1px);
}

.sign-petition-btn.signed {
  background: #E3F2FD;
  color: #1976D2;
  cursor: default;
}

.share-petition-btn {
  padding: 12px 20px;
  background: #f5f5f5;
  color: #666;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.share-petition-btn:hover {
  background: #e0e0e0;
}

/* WEEK 9: Post Update Button */
.post-update-btn {
  padding: 12px 20px;
  background: linear-gradient(135deg, #FF6F00 0%, #FF8F00 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(255, 111, 0, 0.3);
}

.post-update-btn:hover {
  background: linear-gradient(135deg, #F57C00 0%, #FF9800 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(255, 111, 0, 0.4);
}

/* WEEK 9: Update Badge */
.update-badge {
  padding: 4px 10px;
  background: #FF6F00;
  color: white;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

/* WEEK 9: Updates Section */
.petition-updates {
  border-top: 1px solid #e8e8e8;
  padding-top: 16px;
}

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

.updates-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.toggle-updates-btn {
  background: none;
  border: none;
  color: #7B1FA2;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.toggle-updates-btn:hover {
  text-decoration: underline;
}

.updates-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.update-card {
  background: #F9F5FB;
  border-left: 4px solid #7B1FA2;
  padding: 16px;
  border-radius: 8px;
}

.update-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.update-author-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.update-meta {
  flex: 1;
}

.update-author-name {
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.update-date {
  font-size: 12px;
  color: #999;
}

.update-title {
  font-weight: 600;
  font-size: 15px;
  color: #333;
  margin: 0 0 8px 0;
}

.update-message {
  font-size: 14px;
  line-height: 1.5;
  color: #555;
  white-space: pre-wrap;
}

/* WEEK 10: ANALYTICS DASHBOARD */
.analytics-container {
  background: white;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.analytics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f0f0f0;
}

.analytics-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.analytics-header h3 i {
  color: #7B1FA2;
}

.toggle-analytics-btn {
  background: linear-gradient(135deg, #7B1FA2 0%, #9C27B0 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(123, 31, 162, 0.3);
}

.toggle-analytics-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(123, 31, 162, 0.4);
}

.toggle-analytics-btn i {
  transition: transform 0.3s ease;
}

.toggle-analytics-btn.open i {
  transform: rotate(180deg);
}

.analytics-content {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon i {
  font-size: 24px;
  color: white;
}

.stat-info {
  flex: 1;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  font-weight: 600;
  color: #666;
  margin-bottom: 2px;
}

.stat-sublabel {
  font-size: 12px;
  color: #999;
}

.analytics-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.analytics-column h4 {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.analytics-column h4::before {
  content: '';
  width: 4px;
  height: 20px;
  background: linear-gradient(135deg, #7B1FA2 0%, #9C27B0 100%);
  border-radius: 2px;
}

.breakdown-list {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 16px;
  min-height: 200px;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
}

.breakdown-item:last-child {
  border-bottom: none;
}

.breakdown-name {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 12px;
}

.breakdown-count {
  font-size: 16px;
  font-weight: 700;
  color: #7B1FA2;
  flex-shrink: 0;
}

.loading-small {
  text-align: center;
  padding: 40px 20px;
  color: #999;
  font-size: 14px;
}

/* WEEK 11: COUNCIL RESPONSIVENESS SCOREBOARD */
.scoreboard-container {
  background: white;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.scoreboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f0f0f0;
}

.scoreboard-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.scoreboard-header h3 i {
  color: #FF9800;
}

.toggle-scoreboard-btn {
  background: linear-gradient(135deg, #FF9800 0%, #FFB74D 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(255, 152, 0, 0.3);
}

.toggle-scoreboard-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

.toggle-scoreboard-btn i {
  transition: transform 0.3s ease;
}

.toggle-scoreboard-btn.open i {
  transform: rotate(180deg);
}

.scoreboard-content {
  animation: slideDown 0.3s ease;
}

.scoreboard-intro {
  background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
  border-left: 4px solid #FF9800;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

.scoreboard-intro p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

.scoreboard-intro strong {
  color: #E65100;
}

.scoreboard-table {
  margin-bottom: 24px;
}

.scoreboard-row {
  display: grid;
  grid-template-columns: 50px 1fr 100px 120px 120px 80px;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #e0e0e0;
  transition: background 0.2s ease;
}

.scoreboard-row:hover {
  background: #f8f9fa;
}

.scoreboard-row.header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  font-weight: 700;
  color: #333;
  border-bottom: 2px solid #dee2e6;
}

.scoreboard-row.header:hover {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.scoreboard-rank {
  font-size: 18px;
  font-weight: 700;
  color: #999;
  text-align: center;
}

.scoreboard-row.header .scoreboard-rank {
  font-size: 14px;
}

.scoreboard-council {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.scoreboard-row.header .scoreboard-council {
  font-size: 14px;
}

.scoreboard-reports {
  font-size: 14px;
  color: #666;
  text-align: center;
}

.scoreboard-resolution {
  font-size: 14px;
  color: #666;
  text-align: center;
}

.scoreboard-response {
  font-size: 14px;
  color: #666;
  text-align: center;
}

.scoreboard-grade {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin: 0 auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.scoreboard-legend {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
}

.scoreboard-legend h4 {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin: 0 0 16px 0;
}

.legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.legend-grade {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.legend-item span {
  font-size: 13px;
  color: #666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .scoreboard-row {
    grid-template-columns: 40px 1fr 80px;
    gap: 12px;
  }

  .scoreboard-resolution,
  .scoreboard-response {
    display: none;
  }

  .scoreboard-grade {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .legend-grid {
    grid-template-columns: 1fr;
  }
}

/* WEEK 12: EMAIL COUNCILLOR MODAL */
.email-info-banner {
  background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
  border-left: 4px solid #2196F3;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.email-info-banner i {
  color: #1976D2;
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.email-info-banner div {
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

.email-info-banner strong {
  color: #1565C0;
}

.email-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.cancel-btn {
  padding: 12px 24px;
  background: #f5f5f5;
  color: #666;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cancel-btn:hover {
  background: #e0e0e0;
  border-color: #bbb;
}

.email-footer-note {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 12px;
  font-size: 13px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 8px;
}

.email-footer-note i {
  color: #2196F3;
  font-size: 16px;
  flex-shrink: 0;
}

.email-councillor-btn {
  padding: 8px 16px;
  background: linear-gradient(135deg, #2196F3 0%, #42A5F5 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(33, 150, 243, 0.3);
}

.email-councillor-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(33, 150, 243, 0.4);
}

.email-councillor-btn i {
  font-size: 12px;
}

/* Petition Creation Modal */
.petition-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.petition-modal.open {
  display: flex;
}

.petition-modal-content {
  background: white;
  border-radius: 16px;
  width: min(560px, 95vw);
  max-height: 85vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

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

.petition-modal-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.petition-modal-close {
  background: #f8f9fa;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.petition-modal-close:hover {
  background: #e9ecef;
}

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

/* Form Styles */
#petitionForm .form-group {
  margin-bottom: 20px;
}

#petitionForm label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

#petitionForm input[type="text"],
#petitionForm select,
#petitionForm textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
}

#petitionForm input[type="text"]:focus,
#petitionForm select:focus,
#petitionForm textarea:focus {
  outline: none;
  border-color: #7B1FA2;
  box-shadow: 0 0 0 3px rgba(123, 31, 162, 0.1);
}

#petitionForm textarea {
  resize: vertical;
  min-height: 100px;
}

#petitionForm small {
  display: block;
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

.char-count {
  font-size: 12px;
  color: #999;
  text-align: right;
  margin-top: 4px;
}

.freemium-notice {
  background: #FFF3E0;
  border-left: 4px solid #FFA726;
  padding: 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #666;
  margin-bottom: 20px;
}

.freemium-notice i {
  color: #FFA726;
  font-size: 16px;
}

.submit-petition-btn {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #7B1FA2 0%, #9C27B0 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.submit-petition-btn:hover {
  background: linear-gradient(135deg, #6A1B9A 0%, #8E24AA 100%);
  transform: translateY(-1px);
}

.submit-petition-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .petition-container {
    width: 100%;
    margin: 16px 0;
    padding: 0 12px;
  }

  .petition-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .create-petition-cta-btn {
    width: 100%;
    justify-content: center;
  }

  .petition-card {
    padding: 16px;
  }

  .petition-actions {
    flex-direction: column;
  }

  .sign-petition-btn,
  .share-petition-btn {
    width: 100%;
    justify-content: center;
  }
}

/* PWA Install Button Attention Nudge */
@keyframes pwa-attention {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(52, 199, 89, 0);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(52, 199, 89, 0.4);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(52, 199, 89, 0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

.pwa-nudge {
  animation: pwa-attention 0.6s ease-in-out 3;
  position: relative;
  overflow: hidden;
}

.pwa-nudge::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.6) 50%,
      rgba(255, 255, 255, 0) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out 1;
  pointer-events: none;
}

/* WEEK 5: Location Sharing Toggle - PREMIUM FEATURE */
.location-sharing-toggle {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  padding: 15px;
  margin: 15px auto;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

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

.toggle-label {
  color: white;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-label i {
  font-size: 18px;
}

.toggle-hint {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

#sharingStatus {
  font-weight: 500;
}

.premium-badge {
  background: rgba(255, 215, 0, 0.9);
  color: #333;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.3);
  transition: 0.3s;
  border-radius: 28px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: #28a745;
}

input:focus+.slider {
  box-shadow: 0 0 1px #28a745;
}

input:checked+.slider:before {
  transform: translateX(24px);
}

input:disabled+.slider {
  cursor: not-allowed;
  opacity: 0.5;
}

/* ========================================
   THE GUARDIAN MODAL
   ======================================== */
.guardian-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.guardian-modal {
  background: white;
  border-radius: 16px;
  padding: 24px;
  width: 90%;
  max-width: 420px;
  text-align: center;
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.3s ease;
}

.guardian-modal-overlay.show .guardian-modal {
  transform: scale(1);
  opacity: 1;
}

.guardian-icon {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 12px;
}

.guardian-modal h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px 0;
}

.guardian-message {
  font-size: 15px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 20px;
}

.guardian-benefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  text-align: left;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f5f5f5;
  padding: 10px;
  border-radius: 8px;
}

.benefit-icon {
  font-size: 18px;
}

.benefit span {
  font-size: 14px;
  color: #333;
}

.guardian-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guardian-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.guardian-btn.primary {
  background: #22c55e;
  /* Green for positive action */
  color: white;
}

.guardian-btn.primary:hover {
  background: #16a34a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.guardian-btn.secondary {
  background: #f0f0f0;
  color: #333;
}

.guardian-btn.secondary:hover {
  background: #e0e0e0;
}

/* ========================================
   ROUTE SAFETY CHECK MODAL
   ======================================== */
.route-check-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10002;
  /* Higher than Guardian modal */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.route-check-modal {
  background: white;
  border-radius: 16px;
  padding: 24px;
  width: 90%;
  max-width: 420px;
  text-align: center;
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.3s ease;
}

.route-check-modal-overlay.show .route-check-modal {
  transform: scale(1);
  opacity: 1;
}

.route-check-icon {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 12px;
  color: #ef4444;
  /* Red for warning */
}

.route-check-modal h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px 0;
}

.route-check-message {
  font-size: 15px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 20px;
}

.route-check-list {
  font-size: 14px;
  color: #333;
  margin-bottom: 24px;
  text-align: left;
  background: #fef2f2;
  /* Light red */
  border: 1px solid #fecaca;
  padding: 12px;
  border-radius: 8px;
}

.route-check-actions {
  display: flex;
  gap: 10px;
}

.route-check-btn {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.route-check-btn.primary {
  background: #ef4444;
  /* Red for "continue anyway" */
  color: white;
}

.route-check-btn.secondary {
  background: #f0f0f0;
  color: #333;
}

</style>