/* Custom styles for Reunion-26 Registration App */
@import url('https://fonts.googleapis.com/css2?family=Anek+Bangla:wght@600;700;800&family=Hind+Siliguri:wght@400;500;600;700&family=Noto+Sans+Bengali:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Tiro+Bangla:ital@0;1&display=swap');

body {
  font-family: 'Noto Sans Bengali', 'Hind Siliguri', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  -webkit-font-smoothing: antialiased;
}

input, select, textarea, button {
  font-family: inherit;
}

/* Crisp, distinct numerals (especially Bengali '১' and digits) */
.bn-num, .font-mono, .step-badge {
  font-family: 'Noto Sans Bengali', 'Plus Jakarta Sans', monospace, sans-serif !important;
  font-feature-settings: "tnum";
}

/* Smooth Tab Transitions */
.tab-content {
  display: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tab-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Custom card shadow */
.custom-card {
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Pulse animation for important alerts */
@keyframes soft-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.4);
  }
  50% {
    transform: scale(1.008);
    box-shadow: 0 0 0 8px rgba(13, 148, 136, 0);
  }
}

.pulse-highlight {
  animation: soft-pulse 3s infinite ease-in-out;
}

/* Progress step line */
.step-line {
  position: absolute;
  top: 24px;
  left: 10%;
  right: 10%;
  height: 3px;
  background-color: #e2e8f0;
  z-index: 0;
}

.step-line-fill {
  height: 100%;
  background: linear-gradient(90deg, #0d9488, #10b981);
  transition: width 0.5s ease-in-out;
}

/* Sample Delegate ID Card Styling */
.sample-id-card {
  width: 100%;
  max-width: 260px;
  background: linear-gradient(145deg, #ffffff, #f1f5f9);
  border: 1px solid #cbd5e1;
  border-radius: 18px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
}

.sample-id-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg, #0d9488, #14b8a6, #0284c7);
}

.lanyard-hole {
  width: 36px;
  height: 6px;
  background-color: #cbd5e1;
  border-radius: 3px;
  margin: 10px auto 6px auto;
}

/* Clear section step badge */
.section-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  background-color: #0d9488;
  color: #ffffff;
  font-family: 'Noto Sans Bengali', 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 2px 4px rgba(13, 148, 136, 0.25);
  flex-shrink: 0;
}

/* Countdown Unit Card */
.countdown-box {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1rem;
  padding: 0.65rem 0.5rem;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  min-width: 65px;
}

.countdown-number {
  font-family: 'Noto Sans Bengali', 'Plus Jakarta Sans', monospace;
  font-size: 1.75rem;
  line-height: 1.1;
  font-weight: 800;
  color: #0f766e;
}

/* Midnight Executive Countdown Styling */
.midnight-countdown-card {
  background: linear-gradient(135deg, #090d16 0%, #0f172a 45%, #042f2e 100%);
  border: 1.5px solid rgba(20, 184, 166, 0.35);
  box-shadow: 0 10px 30px -5px rgba(2, 44, 34, 0.4), 0 0 15px rgba(13, 148, 136, 0.15);
}

.countdown-box-midnight {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(45, 212, 191, 0.25);
  border-radius: 1.25rem;
  padding: 0.85rem 0.6rem;
  text-align: center;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08), 0 6px 16px -2px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.countdown-box-midnight:hover {
  border-color: rgba(45, 212, 191, 0.5);
  transform: translateY(-2px);
}
.countdown-number-midnight {
  font-family: 'Noto Sans Bengali', 'Plus Jakarta Sans', monospace;
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 800;
  color: #34d399;
  text-shadow: 0 0 12px rgba(52, 211, 153, 0.4);
}
.countdown-number-seconds {
  color: #fbbf24;
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
}

/* Animated Shimmer Bar for Top 100 Gifts */
@keyframes shimmerSweep {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 4px 20px -2px rgba(245, 158, 11, 0.35), 0 0 12px rgba(254, 240, 138, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 8px 30px -2px rgba(245, 158, 11, 0.6), 0 0 20px rgba(254, 240, 138, 0.7);
    transform: scale(1.003);
  }
}

@keyframes shineGlass {
  0% { left: -100%; }
  35%, 100% { left: 200%; }
}

.gift-shimmer-bar {
  background: linear-gradient(
    115deg,
    #92400e 0%,
    #d97706 20%,
    #fef08a 45%,
    #fbbf24 55%,
    #b45309 80%,
    #78350f 100%
  );
  background-size: 250% auto;
  animation: shimmerSweep 5s linear infinite, pulseGlow 3s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.gift-shimmer-bar::before {
  content: '';
  position: absolute;
  top: 0; 
  left: -100%; 
  width: 60%; 
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
  transform: skewX(-25deg);
  animation: shineGlass 4s ease-in-out infinite;
  pointer-events: none;
}

/* Card QR Code container */
.card-qr-box {
  background: #ffffff;
  padding: 6px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.card-qr-box canvas, .card-qr-box img {
  display: block;
  image-rendering: pixelated;
}

/* ============================================================== */
/* A4 FOOD TOKEN SHEETS & PRINT STYLES                            */
/* ============================================================== */
.a4-token-sheet {
  width: 100%;
  max-width: 210mm;
  min-height: 297mm;
  margin: 0 auto 24px auto;
  background: #ffffff;
  padding: 10mm 10mm;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.food-token-strip {
  height: 48mm;
  margin-bottom: 3.5mm;
  border: 1.5px solid #0f766e;
  border-radius: 10px;
  background: #ffffff;
  display: flex;
  overflow: hidden;
  box-sizing: border-box;
  page-break-inside: avoid;
  break-inside: avoid;
}

.token-cut-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 3.5mm;
  font-size: 8px;
  color: #94a3b8;
  font-family: monospace;
  overflow: hidden;
}

.token-cut-line::before, .token-cut-line::after {
  content: '';
  flex: 1;
  border-bottom: 1px dashed #cbd5e1;
}

.meal-coupon-box {
  flex: 1;
  border-left: 1.5px dashed #0d9488;
  padding: 4px 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  background: #f8fafc;
  position: relative;
}

.meal-coupon-box::before, .meal-coupon-box::after {
  content: '';
  position: absolute;
  left: -5px;
  width: 8px;
  height: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  z-index: 2;
}
.meal-coupon-box::before { top: -5px; }
.meal-coupon-box::after { bottom: -5px; }

@media print {
  @page {
    size: A4 portrait;
    margin: 8mm 8mm 8mm 8mm;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  body * {
    visibility: hidden;
  }
  #printableFoodTokensArea, #printableFoodTokensArea * {
    visibility: visible;
  }
  #printableFoodTokensArea {
    position: absolute;
    left: 0;
    top: 0;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }
  .a4-token-sheet {
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 2mm 0 !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    page-break-after: always !important;
    break-after: page !important;
  }
  .no-print {
    display: none !important;
  }
}

/* ==========================================================================
   Continuous Smooth Right-to-Left Gift Marquee Scroller (Req: Animated Title & Slow Scroll)
   ========================================================================== */
@keyframes giftScrollLeft {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.gift-marquee-track {
  display: flex;
  width: max-content;
  animation: giftScrollLeft 22s linear infinite;
  will-change: transform;
}

.gift-marquee-track:hover,
.gift-marquee-track.is-paused {
  animation-play-state: paused !important;
}

/* Shimmer animated highlight for "Premium" badge */
@keyframes premiumShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.premium-shimmer-badge {
  background: linear-gradient(90deg, #f59e0b 0%, #fef08a 45%, #ffffff 50%, #fef08a 55%, #f59e0b 100%);
  background-size: 200% auto;
  animation: premiumShimmer 3.5s linear infinite;
}

/* Top Floating Announcement & Notice Ticker */
#noticeTickerBar {
  background: #090d16 !important;
  color: #ffffff !important;
  border-bottom: 2px solid #f59e0b !important;
}
.notice-ticker-track {
  display: inline-flex;
  white-space: nowrap;
  animation: noticeTickerScroll 28s linear infinite;
}
.notice-ticker-track:hover {
  animation-play-state: paused;
}
@keyframes noticeTickerScroll {
  0% { transform: translateX(20%); }
  100% { transform: translateX(-100%); }
}
@media (max-width: 640px) {
  @keyframes noticeTickerScroll {
    0% { transform: translateX(10%); }
    100% { transform: translateX(-110%); }
  }
}

/* Gift Mini Card for Carousel Slider */
.gift-card-mini {
  width: 132px;
  min-width: 132px;
  max-width: 132px;
  flex-shrink: 0;
  cursor: pointer;
  background: #ffffff;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.gift-card-mini:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: #0d9488;
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.2);
}

/* ==========================================================================
   Campus Hero Banner with Lightweight 3D Embossed Bangla Marquee & Reflection
   ========================================================================== */
@keyframes campusMarqueeRightToLeft {
  0% {
    -webkit-transform: translate3d(0%, 0, 0);
    transform: translate3d(0%, 0, 0);
  }
  100% {
    -webkit-transform: translate3d(-50%, 0, 0);
    transform: translate3d(-50%, 0, 0);
  }
}

.campus-3d-marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  -webkit-animation: campusMarqueeRightToLeft 20s linear infinite !important;
  animation: campusMarqueeRightToLeft 20s linear infinite !important;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  pointer-events: none;
}

.campus-3d-emboss-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 3rem;
  user-select: none;
  flex-shrink: 0;
}

/* Lightweight 3D Embossed Gradient-Filled Text (Smooth 60fps GPU compositing) */
.campus-3d-emboss-text {
  font-family: 'Anek Bangla', 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 3.25rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: linear-gradient(180deg, #ffffff 0%, #fef9c3 42%, #fde047 80%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  -webkit-text-stroke: 0.65px rgba(6, 78, 59, 0.35);
  filter: drop-shadow(0px 3px 5px rgba(0, 0, 0, 0.6));
}

/* Lightweight Mirrored Reflection below the 3D Embossed Text */
.campus-3d-emboss-reflection {
  font-family: 'Anek Bangla', 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(253, 224, 71, 0.55) 0%, rgba(255, 255, 255, 0.05) 85%, transparent 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  -webkit-transform: scaleY(-0.48);
  transform: scaleY(-0.48);
  transform-origin: top center;
  margin-top: -0.15rem;
  opacity: 0.38;
  pointer-events: none;
}

@media (max-width: 640px) {
  .campus-3d-emboss-item {
    padding: 0 1.75rem;
  }
  .campus-3d-emboss-text {
    -webkit-text-stroke: 0.5px rgba(6, 78, 59, 0.35);
  }
}
