/**
 * Vlettenrally Check-in Wizard V2
 * Minimalistisch, gebruiksvriendelijk design
 * Mobiel-first responsive styling
 */

/* ===== RESET & BASE ===== */
.vr-wizard-v2,
.vr-wizard-v2 * {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.vr-wizard-v2 {
  max-width: 600px;
  margin: 40px auto;
  padding: 0 20px;
}

/* ===== CONTAINER ===== */
.vr-wizard-container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* ===== PROGRESS BAR ===== */
.vr-progress-bar {
  height: 4px;
  background: #e5e7eb;
  position: relative;
}

.vr-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

.vr-progress-text {
  text-align: center;
  padding: 12px;
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ===== CONTENT AREA ===== */
.vr-wizard-content {
  padding: 60px 40px;
  min-height: 450px;
  text-align: center;
  animation: fadeIn 0.3s ease-in;
}

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

/* ===== TYPOGRAPHY ===== */
.vr-wizard-content h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: #111827;
  line-height: 1.2;
}

.vr-wizard-content p {
  font-size: 16px;
  color: #6b7280;
  margin: 0 0 30px 0;
  line-height: 1.6;
}

.vr-small {
  font-size: 14px;
  color: #9ca3af;
}

.vr-muted {
  color: #6b7280;
  font-size: 14px;
}

/* ===== INPUT FIELDS ===== */
.vr-input,
.vr-select {
  width: 100%;
  max-width: 400px;
  padding: 14px 16px;
  font-size: 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  margin: 12px auto;
  display: block;
  transition: all 0.2s ease;
  background: white;
}

.vr-input:focus,
.vr-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.vr-input::placeholder {
  color: #9ca3af;
}

/* ===== COPY FIELD ===== */
.vr-copy-field {
  max-width: 450px;
  margin: 20px auto;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
}

.vr-copy-field input {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  background: white;
  border-radius: 8px;
  font-family: "SF Mono", "Monaco", "Courier New", monospace;
  font-size: 13px;
  margin-bottom: 12px;
  text-align: center;
  color: #374151;
}

.vr-copy-field input:focus {
  outline: none;
  border-color: #3b82f6;
}

/* ===== BUTTONS ===== */
.vr-btn {
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 8px;
  display: inline-block;
  text-decoration: none;
  line-height: 1;
}

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

.vr-btn-primary {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.vr-btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.vr-btn-secondary {
  background: white;
  color: #3b82f6;
  border: 2px solid #3b82f6;
}

.vr-btn-secondary:hover:not(:disabled) {
  background: #eff6ff;
}

.vr-btn-next {
  background: #10b981;
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.vr-btn-next:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.vr-btn-large {
  padding: 18px 48px;
  font-size: 18px;
}

.vr-btn-block {
  display: block;
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== DIVIDER ===== */
.vr-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 30px auto;
  max-width: 200px;
  position: relative;
}

.vr-divider::before {
  content: "OF";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 0 12px;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* ===== QR POPUP ===== */
.vr-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  animation: fadeIn 0.2s ease;
}

.vr-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.vr-popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
  max-width: 400px;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, -45%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.vr-popup-content h3 {
  margin: 0 0 20px 0;
  font-size: 22px;
  color: #111827;
}

.vr-qr-container {
  margin: 20px 0;
  display: inline-block;
  background: white;
  padding: 15px;
  border-radius: 10px;
  border: 2px solid #e5e7eb;
}

/* ===== TOAST NOTIFICATION ===== */
.vr-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #111827;
  color: white;
  padding: 16px 24px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 15px;
  font-weight: 500;
  max-width: 90%;
}

.vr-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== APP CHOICE ===== */
.vr-app-choice {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 30px 0;
  flex-wrap: wrap;
}

.vr-app-card {
  flex: 1;
  min-width: 200px;
  max-width: 250px;
  padding: 24px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
}

.vr-app-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}

.vr-app-card.selected {
  border-color: #3b82f6;
  background: #eff6ff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.vr-app-card h4 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: #111827;
}

.vr-app-badge {
  display: inline-block;
  background: #10b981;
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== DOWNLOAD LINKS ===== */
.vr-download-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 20px 0;
  flex-wrap: wrap;
}

.vr-download-btn {
  padding: 14px 28px;
  background: #3b82f6;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.vr-download-btn:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

/* ===== SETTINGS STEPS ===== */
.vr-setting-item {
  max-width: 400px;
  margin: 30px auto;
  padding: 30px;
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  border-radius: 16px;
  border: 2px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.vr-setting-item h4 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: #374151;
  font-weight: 600;
}

.vr-setting-value {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 20px 0;
  line-height: 1;
}

.vr-setting-unit {
  font-size: 20px;
  color: #6b7280;
  font-weight: 600;
  margin-left: 8px;
}

/* ===== INFO BOXES ===== */
.vr-info-box {
  max-width: 450px;
  margin: 20px auto;
  padding: 16px 20px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
}

.vr-info-box.warning {
  background: #fef3c7;
  border: 2px solid #f59e0b;
  color: #92400e;
}

.vr-info-box.success {
  background: #d1fae5;
  border: 2px solid #10b981;
  color: #065f46;
}

.vr-info-box.info {
  background: #dbeafe;
  border: 2px solid #3b82f6;
  color: #1e40af;
}

/* ===== SUMMARY BOX ===== */
.vr-summary-box {
  max-width: 450px;
  margin: 30px auto;
  padding: 24px;
  background: #f9fafb;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  text-align: left;
}

.vr-summary-box h4 {
  margin: 0 0 16px 0;
  font-size: 18px;
  color: #111827;
  text-align: center;
}

.vr-summary-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
}

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

.vr-summary-label {
  color: #6b7280;
  font-size: 14px;
}

.vr-summary-value {
  color: #111827;
  font-weight: 600;
  font-size: 14px;
}

/* ===== NAVIGATION BUTTONS ===== */
.vr-nav-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .vr-wizard-v2 {
    margin: 20px auto;
    padding: 0 15px;
  }

  .vr-wizard-content {
    padding: 40px 20px;
    min-height: 400px;
  }

  .vr-wizard-content h2 {
    font-size: 24px;
  }

  .vr-wizard-content p {
    font-size: 15px;
  }

  .vr-app-choice {
    flex-direction: column;
  }

  .vr-app-card {
    max-width: 100%;
  }

  .vr-btn {
    padding: 12px 24px;
    font-size: 15px;
  }

  .vr-btn-large {
    padding: 16px 36px;
    font-size: 16px;
  }

  .vr-setting-value {
    font-size: 40px;
  }

  .vr-popup-content {
    max-width: 90%;
    padding: 30px 20px;
  }

  .vr-download-links {
    flex-direction: column;
  }

  .vr-download-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .vr-wizard-content {
    padding: 30px 15px;
  }

  .vr-wizard-content h2 {
    font-size: 22px;
  }

  .vr-copy-field {
    padding: 16px;
  }

  .vr-copy-field input {
    font-size: 12px;
  }
}

/* ===== LOADING SPINNER ===== */
.vr-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid #e5e7eb;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== ANIMATIONS ===== */
.vr-fade-in {
  animation: fadeIn 0.3s ease-in;
}

.vr-slide-up {
  animation: slideUp 0.3s ease;
}
