/* ============================================================
   ICT Conference — Custom Styles
   ============================================================ */

:root {
  --primary:     #1a237e;
  --primary-light: #283593;
  --accent:      #2979ff;
  --accent-light: #448aff;
  --gold:        #f9a825;
  --dark:        #0d1117;
  --text-light:  #e8eaf6;
  --card-radius: 16px;
  --shadow:      0 8px 32px rgba(0,0,0,0.12);
}

/* ── Base ── */
* { box-sizing: border-box; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: #1a1a2e; }
a { text-decoration: none; }

/* ── Navbar ── */
.navbar-brand img { height: 44px; }
.navbar-glass {
  background: rgba(13, 17, 30, 0.92) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.navbar-glass .nav-link { color: rgba(255,255,255,0.85) !important; font-weight: 500; }
.navbar-glass .nav-link:hover { color: #fff !important; }

/* ── Hero Section ── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 0.5s;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(10,14,35,0.88) 0%,
    rgba(26,35,126,0.75) 50%,
    rgba(10,14,35,0.70) 100%);
}
.hero-default-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0a0e23 0%, #1a237e 50%, #0d47a1 100%);
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #90caf9;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.hero-title .accent { color: var(--gold); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 20px; margin: 24px 0; }
.hero-meta-item {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
}
.hero-meta-item i { color: var(--gold); font-size: 18px; }

/* ── Countdown (embedded in hero right column) ── */
.countdown-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 14px;
  padding: 18px 10px;
  text-align: center;
  transition: transform 0.2s;
}
.countdown-card:hover { transform: translateY(-3px); }
.countdown-number {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -1px;
}
.countdown-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 5px;
}
.countdown-separator {
  color: rgba(255,255,255,0.5);
  font-size: 3rem;
  font-weight: 300;
  line-height: 1;
  padding-top: 16px;
}
.countdown-expired {
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 700;
}

/* ── Section Styles ── */
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--primary);
}
.section-divider {
  width: 56px; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: 2px;
  margin: 16px auto;
}

/* ── Overview ── */
.overview-section { padding: 80px 0; background: #fff; }
.feature-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 26px;
  margin-bottom: 16px;
}

/* ── Categories ── */
.categories-section { padding: 80px 0; background: #f8f9ff; }
.category-card {
  background: #fff;
  border-radius: var(--card-radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #e8eaf6;
  text-align: center;
  height: 100%;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(26,35,126,0.15);
  border-color: var(--accent);
}
.category-card .cat-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}
.category-card h6 { font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.category-card p  { font-size: 13px; color: #666; margin: 0; }

/* ── Date & Venue ── */
.venue-section { padding: 80px 0; background: var(--primary); }
.venue-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--card-radius);
  padding: 40px;
  color: #fff;
  height: 100%;
}
.venue-card h4 { font-weight: 700; margin-bottom: 12px; }
.venue-card .info-item {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 16px; font-size: 15px;
  color: rgba(255,255,255,0.85);
}
.venue-card .info-item i { color: var(--gold); font-size: 20px; margin-top: 2px; flex-shrink: 0; }

/* ── Gallery ── */
.gallery-section { padding: 80px 0; background: #fff; }
.gallery-grid { columns: 3 200px; gap: 12px; }
.gallery-grid img {
  width: 100%; break-inside: avoid;
  border-radius: 10px; margin-bottom: 12px;
  transition: transform 0.25s;
  cursor: pointer;
}
.gallery-grid img:hover { transform: scale(1.03); }
.gallery-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #e8eaf6, #c5cae9);
  border-radius: var(--card-radius);
  height: 240px;
  color: #7986cb;
  font-size: 14px; font-weight: 500;
}

/* ── Sponsors ── */
.sponsors-section { padding: 60px 0; background: #f8f9ff; }
.sponsor-logo {
  background: #fff;
  border-radius: 12px;
  padding: 20px 30px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  height: 100px;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #e8eaf6;
}
.sponsor-logo:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.sponsor-logo img { max-height: 60px; max-width: 140px; object-fit: contain; filter: grayscale(0.3); }

/* ── CTA ── */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #0a0e23, #1a237e);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ── Buttons ── */
.btn-hero {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff !important; font-weight: 700;
  padding: 16px 40px; border-radius: 50px;
  font-size: 16px; border: none;
  box-shadow: 0 8px 32px rgba(41,121,255,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(41,121,255,0.5); }
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; font-weight: 600;
  padding: 12px 32px; border-radius: 50px;
  border: none; transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(26,35,126,0.3);
}
.btn-primary-custom:hover { color: #fff; transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(135deg, #f9a825, #f57f17);
  color: #000 !important; font-weight: 700;
  padding: 16px 48px; border-radius: 50px;
  font-size: 18px; border: none;
  box-shadow: 0 8px 32px rgba(249,168,37,0.4);
  transition: all 0.2s;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(249,168,37,0.5); }

/* ── Registration Form ── */
.register-page {
  background: linear-gradient(135deg, #0a0e23, #1a237e);
  min-height: 100vh;
  padding: 60px 0;
}
.register-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
  overflow: hidden;
}
.register-header {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 40px;
  color: #fff;
}
.form-label { font-weight: 600; font-size: 14px; color: #374151; }
.form-control, .form-select {
  border-radius: 10px;
  border: 1.5px solid #e5e7eb;
  padding: 12px 16px;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(41,121,255,0.12);
}
.form-section-title {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--accent);
  border-bottom: 2px solid #e8eaf6;
  padding-bottom: 8px; margin-bottom: 20px; margin-top: 8px;
}
.photo-upload-area {
  border: 2px dashed #c5cae9;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #f8f9ff;
}
.photo-upload-area:hover { border-color: var(--accent); background: #eff3ff; }
.photo-preview {
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  display: none;
  margin: 0 auto;
}
.booth-fields {
  background: #eff3ff;
  border: 1px solid #c5cae9;
  border-radius: 12px;
  padding: 20px;
  margin-top: 16px;
}

/* ── Pass / Badge ── */
.pass-page { background: #f0f4f8; min-height: 100vh; padding: 40px 0; }
.pass-card {
  background: #fff;
  width: 380px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  margin: 0 auto;
  print-color-adjust: exact;
}
.pass-header {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 24px;
  text-align: center;
  color: #fff;
}
.pass-header .event-title { font-size: 14px; font-weight: 700; letter-spacing: 0.5px; }
.pass-header .event-dates { font-size: 12px; opacity: 0.85; margin-top: 4px; }
.pass-body { padding: 24px; text-align: center; }
.pass-photo {
  width: 110px; height: 110px;
  border-radius: 50%; object-fit: cover;
  border: 4px solid var(--accent);
  margin: 0 auto 16px;
  display: block;
  box-shadow: 0 4px 16px rgba(41,121,255,0.3);
}
.pass-photo-placeholder {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8eaf6, #c5cae9);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  color: #7986cb; font-size: 40px;
}
.pass-name { font-size: 22px; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.pass-position { font-size: 13px; color: #666; margin-bottom: 4px; }
.pass-org { font-size: 14px; font-weight: 600; color: #333; }
.pass-org-type {
  display: inline-block;
  background: #e8eaf6; color: var(--primary);
  border-radius: 20px; padding: 4px 14px;
  font-size: 12px; font-weight: 600;
  margin-top: 8px;
}
.pass-divider { border: none; border-top: 1px dashed #e0e0e0; margin: 16px 0; }
.pass-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pass-qr img { width: 130px; height: 130px; border-radius: 8px; border: 2px solid #e8eaf6; }
.pass-status-badge {
  background: linear-gradient(135deg, #2e7d32, #43a047);
  color: #fff; font-weight: 700; font-size: 11px;
  letter-spacing: 1.5px; padding: 5px 16px;
  border-radius: 20px; text-transform: uppercase;
}
.pass-footer {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 12px;
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 11px;
}

/* ── Verify Page ── */
.verify-page { background: #f0f4f8; min-height: 100vh; display: flex; align-items: center; }
.verify-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ── Admin ── */
.admin-sidebar {
  width: 260px;
  background: linear-gradient(180deg, #0d1117 0%, #1a237e 100%);
  min-height: 100vh;
  position: fixed;
  top: 0; left: 0;
  z-index: 1000;
  overflow-y: auto;
  transition: transform 0.3s;
}
.admin-sidebar .brand {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-sidebar .brand-title {
  font-size: 14px; font-weight: 700;
  color: #fff; line-height: 1.3;
}
.admin-sidebar .nav-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  padding: 20px 20px 8px;
}
.admin-sidebar .nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px;
  color: rgba(255,255,255,0.7) !important;
  font-size: 14px; font-weight: 500;
  border-radius: 10px; margin: 2px 10px;
  transition: all 0.2s;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  background: rgba(255,255,255,0.12);
  color: #fff !important;
}
.admin-sidebar .nav-link i { font-size: 18px; width: 20px; text-align: center; }
.admin-sidebar .nav-link .badge { margin-left: auto; font-size: 10px; }

.admin-main {
  margin-left: 260px;
  min-height: 100vh;
  background: #f1f5f9;
}
.admin-topbar {
  background: #fff;
  padding: 16px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.admin-content { padding: 28px 24px; }
.stat-card {
  background: #fff;
  border-radius: var(--card-radius);
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.stat-card .stat-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.stat-card .stat-number { font-size: 2rem; font-weight: 800; line-height: 1; }
.stat-card .stat-label { font-size: 13px; color: #64748b; margin-top: 4px; font-weight: 500; }
.stat-card .stat-sub { font-size: 12px; color: #94a3b8; margin-top: 4px; }

.table-card {
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}
.table-card .table { margin-bottom: 0; }
.table thead th { background: #f8fafc; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #64748b; border: none; padding: 14px 16px; }
.table tbody td { padding: 14px 16px; vertical-align: middle; border-color: #f1f5f9; font-size: 14px; }
.table tbody tr:hover { background: #f8fafc; }
.avatar-sm {
  width: 36px; height: 36px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid #e2e8f0;
}
.avatar-placeholder {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 14px;
}

/* ── Scan Page ── */
.scan-preview {
  background: #0d1117;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}
.scan-result {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ── Utilities ── */
.text-primary-custom { color: var(--primary) !important; }
.bg-gradient-primary { background: linear-gradient(135deg, var(--primary), var(--accent)); }
.rounded-xl { border-radius: var(--card-radius) !important; }

/* ── Print ── */
@media print {
  .no-print { display: none !important; }
  .pass-card { box-shadow: none !important; border: 1px solid #ddd; }
  body { background: #fff !important; }
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.show { transform: translateX(0); }
  .admin-main { margin-left: 0; }
}
@media (max-width: 767px) {
  .gallery-grid { columns: 2 150px; }
  .pass-card { width: 100%; max-width: 380px; }
  .hero-title { font-size: 1.8rem; }
}
@media (max-width: 480px) {
  .gallery-grid { columns: 1 auto; }
}
