/* ===== GLOBAL ===== */
:root {
  --primary: #0d6efd;
  --success: #198754;
  --warning: #ffc107;
}

body { font-family: 'Segoe UI', system-ui, sans-serif; }

/* ===== HERO ===== */
.hero-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #2563eb 100%);
  padding: 60px 0;
}
.hero-section h1 { color: #fff; }
.hero-section .lead { color: rgba(255,255,255,.8); }

/* ===== EVENT CARD ===== */
.event-card { transition: transform .2s, box-shadow .2s; border-radius: 12px !important; overflow: hidden; }
.event-card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,.12) !important; }

.event-banner-placeholder {
  height: 180px;
  background: linear-gradient(135deg, #0d6efd, #6610f2);
}

/* ===== INFO BOX ===== */
.info-box { border-left: 3px solid var(--primary); }
.rundown-item { border-bottom: 1px dashed #dee2e6; }
.rundown-item:last-child { border-bottom: none; }

/* ===== TICKET ===== */
.ticket-card { border-radius: 16px !important; overflow: hidden; }
.ticket-header { background: linear-gradient(135deg, #0d6efd, #0a58ca) !important; }
.qr-image { border: 3px solid #dee2e6; border-radius: 8px; padding: 8px; background: white; }

/* ===== LOGIN ===== */
.login-page { background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); }
.login-icon { width: 70px; height: 70px; background: #e7f1ff; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto; }

/* ===== ADMIN ===== */
.admin-body { background: #f4f6f9; min-height: 100vh; }

.stat-card { border-radius: 12px !important; transition: transform .2s; }
.stat-card:hover { transform: translateY(-2px); }
.stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto; }

.bg-primary-soft { background: #e7f1ff; }
.bg-success-soft { background: #d1e7dd; }
.bg-warning-soft { background: #fff3cd; }
.bg-info-soft    { background: #cff4fc; }

/* ===== TABLE ===== */
.table th { font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .5px; color: #6c757d; }
.table td { vertical-align: middle; }

/* ===== SCANNER ===== */
#reader { border-radius: 8px; overflow: hidden; background: #000; min-height: 200px; }
#reader video { border-radius: 8px; }

/* ===== NAVBAR ===== */
.navbar-dark .nav-link.active { color: #fff !important; font-weight: 600; border-bottom: 2px solid #fff; }

/* ===== RESPONSIVE ===== */
@media (max-width: 576px) {
  .hero-section { padding: 50px 0; }
  .hero-section h1 { font-size: 1.8rem; }
  .btn-group-sm .btn { padding: .2rem .4rem; }
}

/* ===== RUNDOWN TIMELINE ===== */
.rundown-timeline { position: relative; padding-left: 16px; }
.rundown-timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, #0d6efd, #6ea8fe);
  border-radius: 2px;
}
.rundown-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0 12px;
  padding: 10px 0 10px 24px;
  border-bottom: 1px dashed #e2e8f0;
}
.rundown-timeline-item:last-child { border-bottom: none; }
.rundown-dot {
  position: absolute;
  left: 0; top: 14px;
  width: 14px; height: 14px;
  background: #fff;
  border: 3px solid #0d6efd;
  border-radius: 50%;
  z-index: 1;
}
.rundown-time {
  font-size: .82rem;
  font-weight: 700;
  color: #0d6efd;
  line-height: 1.4;
  white-space: nowrap;
}
.rundown-content {
  font-size: .9rem;
  font-weight: 500;
  color: #1e293b;
  line-height: 1.4;
  padding-top: 1px;
}

/* ===== RUNDOWN BUILDER (admin) ===== */
.sesi-row { background: #f8fafc; border-radius: 8px; padding: 6px 8px; }
.sesi-row:hover { background: #f1f5f9; }
.fade-in { animation: fadeIn .4s ease-in; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ===== STEP NUMBER ===== */
.step-num {
  width: 22px; height: 22px; flex-shrink: 0;
  background: #1d4ed8; color: #fff;
  border-radius: 50%;
  font-size: .72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}

/* ===== PANDUAN BAR ===== */
.panduan-bar {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid #bfdbfe;
}
.panduan-step {
  display: flex; align-items: flex-start; gap: 10px;
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  flex: 1; min-width: 160px;
}
.panduan-step-num {
  width: 26px; height: 26px; flex-shrink: 0;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  color: #fff; border-radius: 50%;
  font-size: .78rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.panduan-arrow { font-size: 1.1rem; }

/* ===== PIMPINAN ===== */
.pimpinan-section { background: #f8fafc; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }
.pimpinan-item { transition: transform .2s; }
.pimpinan-item:hover { transform: translateY(-6px); }
.pimpinan-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  display: block;
  margin: 0 auto;
  transition: box-shadow .2s;
}
.pimpinan-item:hover .pimpinan-avatar { box-shadow: 0 6px 24px rgba(13,110,253,.35); border-color: #0d6efd; }
.pimpinan-avatar-placeholder {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 4px solid #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}

/* ===== GALERI ===== */
.galeri-item { background: #f8fafc; }
.galeri-item:hover .galeri-overlay { opacity: 1; }
.galeri-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s;
}
.galeri-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: .75rem;
  padding: 4px 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.galeri-pub-item { background: #f1f5f9; transition: transform .2s; }
.galeri-pub-item:hover { transform: scale(1.03); }
.galeri-pub-item:hover .galeri-pub-overlay { opacity: 1; }
.galeri-pub-overlay {
  position: absolute; inset: 0;
  background: rgba(13,110,253,.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s;
}
/* Carousel scroll */
.galeri-carousel-wrapper { user-select: none; }
.galeri-carousel { will-change: transform; }
.galeri-carousel-item:hover .galeri-pub-overlay { opacity: 1; }
.galeri-carousel-item .galeri-pub-overlay {
  position: absolute; inset: 0;
  background: rgba(13,110,253,.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s;
}
.drop-zone {
  border: 2px dashed #dee2e6 !important;
  cursor: pointer; transition: border-color .2s, background .2s;
}
.drop-zone:hover, .drop-zone.border-primary { border-color: #0d6efd !important; background: #f0f6ff; }

/* ===== BADGE ===== */
.badge { font-weight: 500; letter-spacing: .3px; }

/* ===== CARD ===== */
.card { border-radius: 12px !important; }
.card-header { border-radius: 12px 12px 0 0 !important; }
