/* ==========================================================================
   Accreditation Pass & Admin Panel Styles (BookMyShow Experience)
   ========================================================================== */

/* Wizard Layout */
.pass-wizard-container {
  max-width: 900px;
  margin: 40px auto;
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  border: 2px solid var(--primary-gold);
  overflow: hidden;
}

.pass-wizard-header {
  background: var(--maroon-gradient);
  color: #fff;
  padding: 30px;
  text-align: center;
  position: relative;
}

.pass-steps-tracker {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
  gap: 15px;
}

.step-bubble {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
}

.step-bubble.active {
  background: var(--gold-gradient);
  color: var(--maroon-dark);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.8);
}

.step-bubble.completed {
  background: #10b981;
  color: #fff;
}

.step-connector {
  width: 50px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
}

.step-connector.completed {
  background: #10b981;
}

.pass-wizard-body {
  padding: 40px;
}

/* Category Selection Grid */
.category-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

.cat-card {
  border: 2px solid #e5e7eb;
  border-radius: var(--radius-md);
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  background: #fff;
}

.cat-card:hover {
  border-color: var(--primary-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.cat-card.selected {
  border-color: #f84464;
  background: #fff5f7;
  box-shadow: 0 6px 18px rgba(248, 68, 100, 0.25);
}

.cat-card.selected::before {
  content: '✓';
  position: absolute;
  top: 10px;
  right: 12px;
  background: #f84464;
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.cat-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
  display: block;
}

.cat-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--royal-maroon);
  margin-bottom: 4px;
}

.cat-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cat-badge-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 8px;
  text-transform: uppercase;
}

.badge-vip { background: #fef3c7; color: #b45309; }
.badge-yajman { background: #fee2e2; color: #991b1b; }
.badge-sewadar { background: #ffedd5; color: #c2410c; }
.badge-media { background: #dbeafe; color: #1e40af; }
.badge-bhakt { background: #f3f4f6; color: #374151; }

/* Photo Capture & Upload Box */
.photo-upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--primary-gold);
  border-radius: var(--radius-md);
  padding: 24px;
  background: var(--cream-soft);
  text-align: center;
  margin-bottom: 24px;
  position: relative;
}

.photo-preview-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid var(--primary-gold);
  background-color: #fff;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #9ca3af;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.photo-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.btn-photo {
  background: #fff;
  border: 1px solid var(--primary-gold);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--royal-maroon);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-photo:hover {
  background: var(--primary-gold);
  color: #fff;
}

/* HIGH FIDELITY LANYARD BADGE ID CARD */
.id-card-stage {
  perspective: 1000px;
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.accreditation-card-wrap {
  width: 340px;
  min-height: 520px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  border: 2px solid #d97706;
  position: relative;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
  color: #1f2937;
  display: flex;
  flex-direction: column;
}

/* Lanyard punch hole */
.lanyard-slot {
  width: 50px;
  height: 8px;
  background: #e5e7eb;
  border: 2px solid #9ca3af;
  border-radius: 10px;
  margin: 10px auto 4px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Card Header Banner */
.card-header-banner {
  background: #fff;
  padding: 6px 12px;
  border-bottom: 2px solid #d97706;
  text-align: center;
}

.card-header-banner img {
  width: 100%;
  height: 55px;
  object-fit: contain;
}

/* Hologram Tag */
.card-hologram {
  position: absolute;
  top: 72px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a7f3d0 0%, #fde047 30%, #f472b6 60%, #60a5fa 100%);
  opacity: 0.85;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 900;
  color: #1e293b;
  border: 1px solid #fff;
}

/* Category Strip */
.card-category-strip {
  padding: 6px 14px;
  text-align: center;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: var(--maroon-gradient);
}

.card-category-strip.vip { background: linear-gradient(135deg, #d97706, #b45309); }
.card-category-strip.yajman { background: linear-gradient(135deg, #b91c1c, #7f1d1d); }
.card-category-strip.sewadar { background: linear-gradient(135deg, #ea580c, #c2410c); }
.card-category-strip.media { background: linear-gradient(135deg, #1d4ed8, #1e3a8a); }
.card-category-strip.bhakt { background: linear-gradient(135deg, #059669, #047857); }

.card-body-content {
  padding: 16px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-photo-frame {
  width: 105px;
  height: 105px;
  border-radius: 12px;
  border: 3px solid #d97706;
  background-size: cover;
  background-position: center;
  margin-bottom: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  background-color: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #9ca3af;
  overflow: hidden;
}

.card-holder-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 2px;
  font-family: var(--font-heading);
}

.card-holder-city {
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 500;
}

.card-pass-id {
  background: #f3f4f6;
  border: 1px dashed #d1d5db;
  padding: 3px 12px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.88rem;
  font-weight: 700;
  color: #881337;
  margin: 8px 0;
}

.card-dates-info {
  font-size: 0.78rem;
  font-weight: 600;
  color: #b45309;
  margin-bottom: 10px;
}

/* Card QR and Barcode section */
.card-qr-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #fafafa;
  border: 1px solid #e5e7eb;
  padding: 8px 14px;
  border-radius: 10px;
  width: 100%;
  margin-bottom: 10px;
}

.card-qr-img {
  width: 72px;
  height: 72px;
}

.card-barcode-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-barcode-lines {
  height: 28px;
  width: 130px;
}

.card-gate-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #065f46;
  background: #d1fae5;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 4px;
}

.card-footer-sign {
  width: 100%;
  border-top: 1px dashed #e5e7eb;
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: #6b7280;
}

/* Metadata Chips on Card Badge */
.card-meta-chips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  width: 100%;
  margin-bottom: 8px;
  text-align: left;
}

.card-meta-chip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.72rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-meta-chip .chip-label {
  color: #64748b;
  font-weight: 500;
}

.card-meta-chip .chip-value {
  color: #0f172a;
  font-weight: 700;
}

.card-meta-chip.chip-blood {
  background: #fef2f2;
  border-color: #fecaca;
}

.card-meta-chip.chip-blood .chip-value {
  color: #b91c1c;
}

/* Admin Customizer Toggle Grid */
.admin-toggle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 24px;
}

.admin-toggle-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}

.admin-toggle-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #d97706;
  cursor: pointer;
}

.admin-bg-upload-box {
  background: #fffdf5;
  border: 2px dashed #d97706;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  text-align: center;
}

.sign-seal {
  width: 34px;
  height: 34px;
  opacity: 0.8;
}

/* Card Actions (Download, Print, Share) */
.pass-action-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 25px;
}

.btn-card-action {
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  border: none;
}

.btn-print {
  background: #1f2937;
  color: #fff;
}

.btn-download-pdf {
  background: var(--gold-gradient);
  color: var(--maroon-dark);
}

.btn-share-wa {
  background: #25d366;
  color: #fff;
}

/* ADMIN PANEL STYLING */
.admin-dashboard-wrapper {
  background: #f9fafb;
  min-height: 100vh;
  padding: 30px 20px;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.admin-stat-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-pending .stat-icon { background: #fef3c7; color: #b45309; }
.stat-approved .stat-icon { background: #d1fae5; color: #065f46; }
.stat-rejected .stat-icon { background: #fee2e2; color: #991b1b; }
.stat-total .stat-icon { background: #e0e7ff; color: #3730a3; }

.stat-val {
  font-size: 1.8rem;
  font-weight: 700;
  color: #111827;
  line-height: 1;
}

.stat-label {
  font-size: 0.82rem;
  color: #6b7280;
  margin-top: 4px;
}

.admin-card-box {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid #e5e7eb;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  margin-bottom: 30px;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th {
  background: #f8fafc;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #475569;
  border-bottom: 2px solid #e2e8f0;
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.status-badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-block;
}

.status-approved { background: #d1fae5; color: #065f46; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-rejected { background: #fee2e2; color: #991b1b; }

.action-btn-group {
  display: flex;
  gap: 8px;
}

.btn-action-small {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-approve { background: #10b981; color: #fff; }
.btn-reject { background: #ef4444; color: #fff; }
.btn-view { background: #3b82f6; color: #fff; }

/* Print Mode Only */
@media print {
  body * {
    visibility: hidden;
  }
  .id-card-stage, .id-card-stage * {
    visibility: visible;
  }
  .id-card-stage {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .pass-action-bar, .main-navbar, .devotional-footer, .top-devotional-bar {
    display: none !important;
  }
}
