/* Prediction Tracker Styles */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.nav-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background-color: #3b82f6;
  color: white;
}

.btn-primary:hover {
  background-color: #2563eb;
}

.btn-secondary {
  background-color: #6b7280;
  color: white;
}

.btn-secondary:hover {
  background-color: #4b5563;
}

.btn-info {
  background-color: #06b6d4;
  color: white;
}

.btn-info:hover {
  background-color: #0891b2;
}

.btn-success {
  background-color: #10b981;
  color: white;
}

.btn-success:hover {
  background-color: #059669;
}

.btn-warning {
  background-color: #f59e0b;
  color: white;
}

.btn-warning:hover {
  background-color: #d97706;
}

.btn-danger {
  background-color: #ef4444;
  color: white;
}

.btn-danger:hover {
  background-color: #dc2626;
}

.section {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #374151;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 2px solid #e5e7eb;
  border-radius: 5px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #3b82f6;
}

.form-group input[type="range"] {
  width: calc(100% - 60px);
  display: inline-block;
  margin-right: 10px;
}

.filters {
  margin-bottom: 20px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.filters select {
  padding: 8px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 5px;
  background: white;
}

.prediction-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.prediction-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.prediction-header {
  display: flex;
  justify-content: between;
  align-items: flex-start;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.prediction-meta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 15px;
  font-size: 14px;
  color: #6b7280;
}

.prediction-text {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 15px;
  color: #374151;
}

.prediction-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

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

.status-verified {
  background-color: #d1fae5;
  color: #065f46;
}

.status-pending {
  background-color: #fef3c7;
  color: #92400e;
}

.status-overdue {
  background-color: #fee2e2;
  color: #991b1b;
}

.outcome-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  margin-left: 10px;
}

.outcome-correct {
  background-color: #d1fae5;
  color: #065f46;
}

.outcome-incorrect {
  background-color: #fee2e2;
  color: #991b1b;
}

.outcome-partially_correct {
  background-color: #fef3c7;
  color: #92400e;
}

.outcome-too_early {
  background-color: #e0e7ff;
  color: #3730a3;
}

.outcome-unprovable {
  background-color: #f3f4f6;
  color: #374151;
}

.category-badge {
  background-color: #ede9fe;
  color: #5b21b6;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}

.confidence-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: #6b7280;
}

.confidence-bar {
  width: 50px;
  height: 6px;
  background-color: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}

.confidence-fill {
  height: 100%;
  background-color: #3b82f6;
  transition: width 0.3s ease;
}

/* Modal Styles */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #6b7280;
}

.close:hover {
  color: #374151;
}

/* Statistics Styles */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #3b82f6;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 32px;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 5px;
}

.stat-label {
  color: #6b7280;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 500;
}

.chart-container {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

/* Security: Hide honeypot fields completely */
input[name="website"],
input[name="email_address"],  
input[name="full_name"],
input[name="company"] {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  display: none !important;
}

/* Rate limiting notice */
.rate-limit-notice {
  background-color: #fef3c7;
  color: #92400e;
  padding: 10px 15px;
  border-radius: 5px;
  margin: 10px 0;
  border-left: 4px solid #f59e0b;
}

.security-notice {
  background-color: #fee2e2;
  color: #991b1b;
  padding: 10px 15px;
  border-radius: 5px;
  margin: 10px 0;
  border-left: 4px solid #ef4444;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }
  
  .nav-buttons {
    flex-direction: column;
  }
  
  .prediction-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .prediction-actions {
    width: 100%;
  }
  
  .btn {
    flex: 1;
    text-align: center;
  }
  
  .modal-content {
    width: 95%;
    padding: 20px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
}