/* Custom App Styles */

:root {
  --f7-theme-color: #007aff;
  --f7-theme-color-rgb: 0, 122, 255;
  --f7-theme-color-shade: #0066d6;
  --f7-theme-color-tint: #298fff;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.page-content {
  background: #f5f5f5;
}

/* Search View Styles */
.search-container {
  padding: 20px;
  background: white;
  margin-bottom: 20px;
}

.candidate-image-container {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px;
}

.candidate-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-input-wrapper {
  margin-bottom: 20px;
}

.search-button {
  width: 100%;
  margin-top: 10px;
}

/* Result Card Styles */
.result-card {
  margin: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.result-header {
  background: var(--f7-theme-color);
  color: white;
  padding: 20px;
  text-align: center;
}

/* Alternative class for dynamic theming */
.result-card-header {
  background: var(--f7-theme-color);
  color: white;
  padding: 30px 20px;
  text-align: center;
}

.result-card-header .header-content {
  max-width: 600px;
  margin: 0 auto;
}

.result-card-header h2 {
  margin: 0;
  font-size: 28px;
  font-weight: bold;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-card-header .ci-number {
  margin: 10px 0 0 0;
  font-size: 18px;
  opacity: 0.95;
  font-weight: 500;
  letter-spacing: 1px;
}

.result-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: bold;
}

.result-header p {
  margin: 5px 0 0 0;
  opacity: 0.9;
}

.result-section {
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.result-section:last-child {
  border-bottom: none;
}

.result-section h3 {
  margin: 0 0 15px 0;
  font-size: 18px;
  color: #333;
  font-weight: 600;
}

.result-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.result-row:last-child {
  border-bottom: none;
}

.result-label {
  font-weight: 500;
  color: #666;
}

.result-value {
  font-weight: 600;
  color: #333;
  text-align: right;
}

/* Participation History */
.participation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.participation-item {
  text-align: center;
  padding: 10px;
  background: #f8f8f8;
  border-radius: 8px;
}

.participation-item.participated {
  background: #e8f5e9;
  color: #2e7d32;
}

.participation-item.not-participated {
  background: #ffebee;
  color: #c62828;
}

.participation-label {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 5px;
}

.participation-value {
  font-size: 18px;
  font-weight: bold;
}

/* Error Message */
/* Error Message - New Style */
.error-message-card {
  margin: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 40px 20px;
  text-align: center;
}

.error-icon {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.error-icon svg {
  width: 64px;
  height: 64px;
}

.error-icon i {
  font-size: 64px;
  color: #ef4444;
}

.error-content h3 {
  margin: 0 0 10px 0;
  font-size: 24px;
  color: #1f2937;
  font-weight: 600;
}

.error-content p {
  margin: 8px 0;
  font-size: 16px;
  color: #6b7280;
  line-height: 1.5;
}

.error-hint {
  margin-top: 16px !important;
  font-size: 14px !important;
  color: #9ca3af !important;
  font-style: italic;
}

/* Error Message - Old Style (deprecated) */
.error-message {
  margin: 20px;
  padding: 15px;
  background: #ffebee;
  color: #c62828;
  border-radius: 8px;
  text-align: center;
}

/* Loading Spinner */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Reduce spacing on mobile */
  .search-container {
    padding: 15px;
  }
  
  .candidate-image-container {
    margin-bottom: 15px;
    padding: 10px 15px;
  }
  
  .search-input-wrapper {
    margin-bottom: 15px;
  }
  
  .result-header h2 {
    font-size: 20px;
  }
  
  .result-section {
    padding: 15px;
  }
  
  .participation-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
