/* Main stylesheet for Jog Squad Check-In System */

/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
  min-height: 100vh;
}

/* Consent section styling */
.consent-section {
  background-color: #f8f9fa;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.consent-section h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1.2em;
}

.consent-text {
  background-color: white;
  padding: 1rem;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  margin-bottom: 1rem;
  max-height: 300px;
  overflow-y: auto;
}

.consent-text p {
  margin-bottom: 0.8rem;
  line-height: 1.5;
  font-size: 0.95em;
}

.consent-text p:last-child {
  margin-bottom: 0;
  font-weight: bold;
}

.consent-section .checkbox-group {
  background-color: white;
  padding: 1rem;
  border-radius: 4px;
  border: 2px solid #007bff;
}

.consent-section .checkbox-label {
  font-weight: bold;
  color: #2c3e50;
}

/* Event status display */
.event-status {
  background-color: #f8f9fa;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.event-status.cancelled {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

.event-status p {
  margin: 0;
  font-weight: 600;
  font-size: 1.1em;
}

/* Status indicators */
.status {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.875em;
  font-weight: 600;
}

.status.cancelled {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

.text-muted {
  color: #6c757d;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header styles */
.header {
  background-color: #ffffff;
  border-bottom: 2px solid #e0e0e0;
  padding: 1.2rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.header h1 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
}

/* Navigation styles */
.nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  color: #666;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.nav-link:hover {
  color: #2c3e50;
  background-color: #f8f9fa;
}

.nav-link.active {
  color: #2c3e50;
  background-color: #e3f2fd;
  border-color: #2196f3;
}

/* Main content */
.main {
  padding: 2rem 0;
  min-height: calc(100vh - 120px);
}

/* Button styles */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 48px;
  min-width: 120px;
  touch-action: manipulation;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background-color: #2196f3;
  color: white;
  border: 2px solid #2196f3;
}

.btn-primary:hover:not(:disabled) {
  background-color: #1976d2;
  border-color: #1976d2;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3);
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
  border: 2px solid #6c757d;
}

.btn-secondary:hover:not(:disabled) {
  background-color: #5a6268;
  border-color: #5a6268;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.btn-warning {
  background-color: #ff9800;
  color: white;
  border: 2px solid #ff9800;
}

.btn-warning:hover:not(:disabled) {
  background-color: #f57c00;
  border-color: #f57c00;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(255, 152, 0, 0.3);
}

.btn-danger {
  background-color: #f44336;
  color: white;
  border: 2px solid #f44336;
}

.btn-danger:hover:not(:disabled) {
  background-color: #d32f2f;
  border-color: #d32f2f;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(244, 67, 54, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: #2196f3;
  border: 2px solid #2196f3;
}

.btn-outline:hover:not(:disabled) {
  background-color: #2196f3;
  color: white;
}

/* Form styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #2c3e50;
}

.form-input,
.form-select {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background-color: #ffffff;
  transition: border-color 0.3s ease;
  min-height: 48px;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: #2196f3;
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.form-input.error,
.form-select.error {
  border-color: #f44336;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.form-checkbox {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
}

.checkbox-label {
  cursor: pointer;
  line-height: 1.5;
}

.error-message {
  color: #f44336;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: block;
}

.success-message {
  color: #28a745;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: block;
}

.form-links {
  text-align: center;
  margin-top: 1rem;
}

.forgot-password-link {
  color: #007bff;
  text-decoration: none;
  font-size: 0.875rem;
}

.forgot-password-link:hover {
  text-decoration: underline;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}

/* Check-in specific styles */
.check-in-section {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.check-in-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #2c3e50;
}

.check-in-form {
  background-color: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  border: 1px solid #e0e0e0;
}

.qr-section {
  margin-top: 2rem;
}

.divider {
  margin: 1rem 0;
  color: #666;
  font-weight: 500;
}

/* Registration specific styles */
.registration-section {
  max-width: 800px;
  margin: 0 auto;
}

.registration-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #2c3e50;
  text-align: center;
}

.form-description {
  text-align: center;
  color: #666;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.registration-form {
  background-color: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
}

/* Admin dashboard styles */
.login-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 120px);
  background-color: #f8f9fa;
}

.login-form-container {
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.login-form-container h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #2c3e50;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.dashboard-card {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dashboard-card.full-width {
  grid-column: 1 / -1;
}

.dashboard-card h3 {
  margin-bottom: 1rem;
  color: #2c3e50;
  font-size: 1.3rem;
}

.dashboard-card p {
  color: #666;
  margin-bottom: 1.5rem;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
  color: #2196f3;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.stat-label {
  display: block;
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0.5rem;
}

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

.modal-content {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  padding: 1.5rem 2rem 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.modal-header h3 {
  margin: 0;
  color: #2c3e50;
  font-size: 1.5rem;
}

.modal-body {
  padding: 1.5rem 2rem;
}

.modal-footer {
  padding: 1rem 2rem 1.5rem;
  border-top: 1px solid #e0e0e0;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* Status messages */
.status-message {
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
}

.status-message.success {
  background-color: #e8f5e8;
  color: #2e7d32;
  border: 1px solid #4caf50;
}

.status-message.error {
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #f44336;
}

.status-message.info {
  background-color: #e3f2fd;
  color: #1565c0;
  border: 1px solid #2196f3;
}

/* iPad and touch optimizations */
@media (max-width: 1024px) {
  .container {
    padding: 0 16px;
  }
  
  .header .container {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .header-brand {
    justify-content: center;
  }
  
  .nav {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .btn {
    min-height: 52px;
    font-size: 1.1rem;
    padding: 14px 28px;
  }
  
  .form-input,
  .form-select {
    min-height: 52px;
    font-size: 1.1rem;
    padding: 14px 18px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .card-actions {
    justify-content: center;
  }
  
  .form-actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .header h1 {
    font-size: 1.5rem;
  }
  
  .check-in-section h2,
  .registration-section h2 {
    font-size: 1.7rem;
  }
  
  .modal-content {
    width: 95%;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* High contrast and accessibility */
@media (prefers-contrast: high) {
  .btn-primary {
    background-color: #000;
    border-color: #000;
  }
  
  .btn-secondary {
    background-color: #333;
    border-color: #333;
  }
  
  .form-input:focus,
  .form-select:focus {
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2);
  }
}

/* Print styles */
@media print {
  .header,
  .nav,
  .btn,
  .modal {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .main {
    padding: 0;
  }
}

/* Animations and transitions */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0, 0, 0);
  }
  40%, 43% {
    transform: translate3d(0, -10px, 0);
  }
  70% {
    transform: translate3d(0, -5px, 0);
  }
  90% {
    transform: translate3d(0, -2px, 0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes checkmark {
  0% {
    stroke-dashoffset: 100;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

/* Loading states */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.btn.loading {
  color: transparent;
}

.btn.loading::after {
  color: white;
}

/* Success animations */
.success-animation {
  animation: bounce 0.6s ease-out;
}

.pulse-animation {
  animation: pulse 0.8s ease-in-out;
}

/* Error animations */
.error-animation {
  animation: shake 0.5s ease-in-out;
}

/* Form validation feedback */
.form-input.success {
  border-color: #4caf50;
  background-color: #f8fff8;
}

.form-input.success:focus {
  border-color: #4caf50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-input.error {
  border-color: #f44336;
  background-color: #fff8f8;
}

.form-input.error:focus {
  border-color: #f44336;
  box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
}

/* Success checkmark icon */
.success-checkmark {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-left: 8px;
  vertical-align: middle;
}

.success-checkmark svg {
  width: 100%;
  height: 100%;
}

.success-checkmark .checkmark-path {
  stroke: #4caf50;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 100;
  animation: checkmark 0.6s ease-in-out forwards;
}

/* Milestone celebration styles */
.milestone-celebration {
  animation: fadeIn 0.5s ease-out;
}

.milestone-modal .modal-content {
  animation: bounce 0.6s ease-out;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
}

.milestone-modal .modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.milestone-modal .modal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  justify-content: center;
}

.milestone-modal .btn-primary {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

.milestone-modal .btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Milestone achievement badges */
.milestone-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  color: #333;
  border-radius: 20px;
  font-weight: bold;
  font-size: 1.2rem;
  margin: 1rem 0;
  animation: pulse 1s ease-in-out infinite;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

/* Status message animations */
.status-message {
  animation: slideIn 0.4s ease-out;
}

.status-message.success {
  animation: fadeIn 0.5s ease-out, pulse 0.8s ease-in-out 0.5s;
}

.status-message.error {
  animation: slideIn 0.4s ease-out, shake 0.5s ease-in-out 0.4s;
}

/* Interactive feedback */
.btn:active {
  transform: translateY(1px);
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.3);
}

.form-input:invalid {
  border-color: #f44336;
}

.form-input:valid {
  border-color: #4caf50;
}

/* Hover effects for cards */
.dashboard-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Navigation link animations */
.nav-link {
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #2196f3;
  transition: width 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 100%;
}

/* Progress indicators */
.progress-bar {
  width: 100%;
  height: 4px;
  background-color: #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
  margin: 1rem 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2196f3, #21cbf3);
  border-radius: 2px;
  transition: width 0.8s ease;
  animation: pulse 2s ease-in-out infinite;
}

/* Tooltip styles */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: 200px;
  background-color: #333;
  color: white;
  text-align: center;
  border-radius: 6px;
  padding: 8px 12px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
  font-size: 0.875rem;
}

.tooltip .tooltip-text::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Focus management for accessibility */
.focus-visible {
  outline: 2px solid #2196f3;
  outline-offset: 2px;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .btn:hover {
    transform: none;
  }
  
  .dashboard-card:hover {
    transform: none;
  }
}

/* High contrast mode adjustments */
@media (prefers-contrast: high) {
  .milestone-modal .modal-content {
    background: #000;
    border: 2px solid #fff;
  }
  
  .milestone-badge {
    background: #fff;
    color: #000;
    border: 2px solid #000;
  }
  
  .progress-fill {
    background: #000;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn:hover {
    transform: none;
    box-shadow: none;
  }
  
  .dashboard-card:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .nav-link:hover::before {
    width: 0;
  }
  
  .tooltip:hover .tooltip-text {
    visibility: hidden;
    opacity: 0;
  }
}
/* QR 
Scanner Modal Styles */
.qr-scanner-content {
  max-width: 500px;
  width: 90%;
}

.qr-scanner-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  background-color: #000;
  border-radius: 8px;
  overflow: hidden;
}

#qr-video {
  width: 100%;
  height: auto;
  display: block;
}

.qr-scanner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.qr-scanner-frame {
  width: 200px;
  height: 200px;
  border: 3px solid #00ff00;
  border-radius: 8px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
  animation: qr-pulse 2s infinite;
}

@keyframes qr-pulse {
  0%, 100% {
    border-color: #00ff00;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
  }
  50% {
    border-color: #00cc00;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.3);
  }
}

.qr-instructions {
  text-align: center;
  margin-top: 1rem;
  color: #666;
  font-size: 0.9rem;
}

/* QR Scanner button states */
.btn.scanning {
  background-color: #dc3545;
  border-color: #dc3545;
}

.btn.scanning:hover {
  background-color: #c82333;
  border-color: #bd2130;
}
/* E
vent Management Styles */
.modal-large {
  max-width: 98vw;
  width: 98vw;
  max-height: 95vh;
  min-height: 70vh;
  overflow-y: auto;
}

/* Ensure modal content doesn't change size after actions */
.modal-content {
  min-height: 400px; /* Prevent shrinking */
  position: relative;
}

/* Ensure close button is properly positioned */
.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 1001;
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

.event-selector {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: #f5f5f5;
  border-radius: 6px;
}

.event-selector label {
  font-weight: bold;
  white-space: nowrap;
}

.event-selector select {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1em;
}

.table-container {
  max-height: 400px;
  overflow: auto;
  border: 1px solid #ddd;
  border-radius: 6px;
  width: 100%;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9em;
}

.data-table th,
.data-table td {
  padding: 12px 8px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.data-table th {
  background: #f8f9fa;
  font-weight: bold;
  position: sticky;
  top: 0;
  z-index: 1;
}

.data-table tr:hover {
  background: #f5f5f5;
}

.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: bold;
  text-transform: uppercase;
}

.status-badge.registration-open {
  background: #d4edda;
  color: #155724;
}

.status-badge.registration-closed {
  background: #f8d7da;
  color: #721c24;
}

.status-badge.scheduled {
  background: #d1ecf1;
  color: #0c5460;
}

.status-badge.completed {
  background: #e2e3e5;
  color: #383d41;
}

.status-badge.confirmed {
  background: #d4edda;
  color: #155724;
}

.status-badge.pending {
  background: #fff3cd;
  color: #856404;
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
}

.btn-small {
  padding: 4px 8px;
  font-size: 0.8em;
  border-radius: 4px;
}

.registration-url {
  font-family: monospace;
  background: #f8f9fa;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  word-break: break-all;
}

.copy-button {
  background: #007bff;
  color: white;
  border: none;
  padding: 2px 6px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.7em;
  margin-left: 4px;
}

.copy-button:hover {
  background: #0056b3;
}

/* Mobile responsiveness for event management */
@media (max-width: 768px) {
  .modal-large {
    width: 95%;
    max-width: none;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .event-selector {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  
  .table-container {
    font-size: 0.8em;
  }
  
  .data-table th,
  .data-table td {
    padding: 8px 4px;
  }
  
  .action-buttons {
    flex-direction: column;
    gap: 0.25rem;
  }
}/
* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

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

.modal-header h3 {
  margin: 0;
  color: #333;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: #333;
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 10px 20px 20px 20px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Form styles within modals */
.form-group {
  margin-bottom: 15px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4CAF50;
  box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
}

/* Text alignment utilities */
.text-center {
  text-align: center;
}