/* ==========================================================================
   Interactive Checklist Styles
   ========================================================================== */

/* Register Banner */
.register-banner {
  background: linear-gradient(135deg, #e8f4fd 0%, #d1e9f9 100%);
  border: 2px solid #3498db;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  animation: slideDown 0.5s ease;
}

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

.register-banner-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.register-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.register-text {
  flex: 1;
  min-width: 200px;
}

.register-text strong {
  display: block;
  color: #2c5f7c;
  margin-bottom: 0.25rem;
}

.register-text span {
  font-size: 0.9rem;
  color: #666;
}

.register-text a {
  color: #3498db;
  font-weight: 600;
}

/* Progress Overview */
.progress-overview {
  background: linear-gradient(135deg, #2c5f7c 0%, #3a7a9c 100%);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  color: white;
  box-shadow: 0 4px 15px rgba(44, 95, 124, 0.3);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.progress-title {
  font-weight: 600;
  font-size: 1.1rem;
}

.progress-count {
  font-weight: 700;
  font-size: 1.1rem;
}

.progress-bar-outer {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  height: 12px;
  overflow: hidden;
}

.progress-bar-inner {
  background: linear-gradient(90deg, #27ae60, #2ecc71);
  height: 100%;
  border-radius: 10px;
  transition: width 0.5s ease;
  position: relative;
}

.progress-bar-inner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255,255,255,0.3) 50%, 
    transparent 100%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Intro text */
.intro-text {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 1.5rem;
}

/* Checklist Sections */
.checklist-section {
  margin-bottom: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.section-header h2 {
  margin: 0;
  font-size: 1.3rem;
  color: #2c5f7c;
}

.section-progress {
  background: #e2e8f0;
  color: #64748b;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.section-progress.complete {
  background: #d4edda;
  color: #155724;
}

/* Interactive Checklist */
.checklist-interactive {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist-item {
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.2s ease;
}

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

.checklist-item:hover {
  background: #f8fafc;
}

.checklist-item label {
  display: flex;
  align-items: flex-start;
  padding: 1rem 1.5rem;
  cursor: pointer;
  gap: 1rem;
}

.checklist-item input[type="checkbox"] {
  display: none;
}

/* Custom Checkmark */
.checkmark {
  width: 26px;
  height: 26px;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s ease;
  background: white;
}

.checkmark::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 8px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s ease;
}

.checklist-item input:checked + .checkmark {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  border-color: #27ae60;
}

.checklist-item input:checked + .checkmark::after {
  transform: rotate(45deg) scale(1);
}

/* Checked state styling */
.checklist-item.checked {
  background: #f0fdf4;
}

.checklist-item.checked .item-content strong {
  color: #166534;
  text-decoration: line-through;
  text-decoration-color: #86efac;
}

.item-content {
  flex: 1;
}

.item-content strong {
  display: block;
  color: #334155;
  font-weight: 600;
  margin-bottom: 0.25rem;
  transition: all 0.2s ease;
}

.item-content span {
  display: block;
  color: #64748b;
  font-size: 0.9rem;
}

/* Confetti Styles */
#confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  animation: confetti-fall 3s linear forwards;
}

@keyframes confetti-fall {
  0% {
    opacity: 1;
    transform: translateY(-10vh) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(100vh) rotate(720deg);
  }
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #333;
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s ease;
}

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

.toast.success {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

/* Completion celebration */
.all-complete {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border-radius: 12px;
  margin: 2rem 0;
  animation: celebrate 0.5s ease;
}

@keyframes celebrate {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.all-complete h3 {
  color: #155724;
  margin-bottom: 0.5rem;
}

.all-complete p {
  color: #28a745;
}

/* Responsive */
@media (max-width: 600px) {
  .register-banner-content {
    flex-direction: column;
    text-align: center;
  }
  
  .register-banner .btn {
    width: 100%;
  }
  
  .section-header {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  
  .section-header h2 {
    font-size: 1.1rem;
  }
  
  .checklist-item label {
    padding: 0.875rem 1rem;
  }
  
  .checkmark {
    width: 24px;
    height: 24px;
  }
  
  .item-content strong {
    font-size: 0.95rem;
  }
  
  .item-content span {
    font-size: 0.85rem;
  }
}
