/* assets/css/participant.css */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
:root {
  --primary: #1d4ed8;
  --primary-light: #3b82f6;
  --primary-dark: #1e3a8a;
  --secondary: #f59e0b;
  --success: #10b981;
  --success-light: #d1fae5;
  --danger: #ef4444;
  --gold: #f59e0b;
  --gold-light: #fef3c7;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.025);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: 60px;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Top Navbar Premium with Glassmorphism */
.navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: 16px;
  margin-bottom: 32px;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 28px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-md);
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo {
  font-weight: 800;
  color: var(--primary);
  font-size: 22px;
  letter-spacing: -0.5px;
}
.logo span {
  color: var(--secondary);
}
.badge-room {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.user-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}
.user-greeting {
  font-size: 14px;
  color: var(--muted);
}
.user-greeting strong {
  color: var(--text);
  font-weight: 600;
}
.logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: var(--danger);
  border: 1px solid #fee2e2;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: var(--transition);
}
.logout-btn:hover {
  background: #fef2f2;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Hero Dashboard Premium */
.hero-card {
  position: relative;
  background: linear-gradient(135deg, #4f46e5 0%, #312e81 100%);
  color: white;
  padding: 40px;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
/* Background Decorative Glow Pattern */
.hero-card::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-content {
  max-width: 600px;
  position: relative;
  z-index: 2;
}
.hero-card h2 {
  margin: 0 0 10px 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.hero-card p {
  margin: 0;
  opacity: 0.85;
  font-size: 15px;
  line-height: 1.6;
}
.hero-decorations {
  display: flex;
  gap: 12px;
  position: relative;
  z-index: 2;
}
.mini-decor-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  text-align: center;
  min-width: 110px;
}
.mini-decor-card .num {
  font-size: 20px;
  font-weight: 700;
  display: block;
  color: #fff;
}
.mini-decor-card .lbl {
  font-size: 11px;
  opacity: 0.75;
  margin-top: 2px;
  font-weight: 500;
}

/* Statistics Widgets section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.stat-widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.stat-widget:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.stat-icon.blue { background: #eff6ff; color: #2563eb; }
.stat-icon.green { background: #ecfdf5; color: #059669; }
.stat-icon.purple { background: #f5f3ff; color: #7c3aed; }
.stat-icon.gold { background: #fffbe6; color: #d4b106; }

.stat-info .stat-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}
.stat-info .stat-lbl {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 500;
}

/* Section Header styling */
.section-header {
  margin-bottom: 24px;
}
.section-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
}
.section-header p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* Grid Package List Cards */
.grid-packages {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}
.package-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition);
}
.package-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}
.package-header {
  margin-bottom: 16px;
}
.package-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}
.package-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.package-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}
.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f1f5f9;
  color: #475569;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}
.meta-badge.blue {
  background: #e0f2fe;
  color: #0369a1;
}

/* Actions Buttons & States */
.btn-start {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: white;
  text-decoration: none;
  padding: 12px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
  transition: var(--transition);
}
.btn-start:hover {
  background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(79, 70, 229, 0.3);
}
.disabled-container {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px dashed var(--border);
  padding: 10px 14px;
  border-radius: var(--radius-md);
}
.lock-icon {
  font-size: 16px;
}
.disabled-text-wrapper {
  display: flex;
  flex-direction: column;
}
.btn-disabled-lbl {
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
}
.btn-disabled-sub {
  font-size: 11px;
  color: #cbd5e1;
  margin-top: 1px;
}

/* Empty State Styling */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  max-width: 500px;
  margin: 40px auto 0 auto;
}
.empty-icon {
  font-size: 54px;
  margin-bottom: 16px;
}
.empty-state h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.empty-state p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* Responsiveness Media Queries */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  body { padding: 10px 0 40px 0; }
  .container { padding: 0 16px; }
  .navbar-wrapper { padding-top: 8px; margin-bottom: 24px; }
  .navbar { padding: 12px 16px; }
  .user-greeting { display: none; }
  .hero-card { padding: 28px; flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero-decorations { width: 100%; justify-content: space-between; }
  .mini-decor-card { flex: 1; min-width: 0; padding: 12px 8px; }
  .grid-packages { grid-template-columns: 1fr; gap: 16px; }
}

/* PTNKu premium surface overrides */
body {
  background: var(--bg);
  color: var(--text);
}

a {
  color: var(--primary);
}

a:hover {
  color: var(--primary-dark);
}

.container,
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.shell,
.card,
.main,
.sidebar,
.top,
.topbar,
.navbar,
.hero,
.hero-card,
.welcome-banner,
.membership-box,
.payment-box,
.history-card,
.payment-item,
.q-card,
.box,
.stat-widget,
.lock {
  backdrop-filter: blur(18px);
}

.card,
.main,
.sidebar,
.top,
.topbar,
.navbar,
.history-card,
.payment-item,
.q-card,
.box {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
}

.card,
.main,
.sidebar,
.history-card,
.payment-item,
.q-card,
.box {
  border-radius: 22px;
}

.top,
.topbar,
.navbar,
.membership-box,
.payment-box {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
  border-radius: 22px;
}

.hero,
.hero-card,
.welcome-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 58%, #1e3a8a 120%);
  color: #fff;
  border: 0;
  box-shadow: 0 24px 50px rgba(29, 78, 216, 0.22);
}

.hero::before,
.hero-card::before,
.welcome-banner::before {
  content: '';
  position: absolute;
  inset: auto -8% -22% auto;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.24) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

.hero h1,
.hero-card h2,
.welcome-banner h1 {
  letter-spacing: -1px;
}

.btn,
button,
.btn-action,
.btn-start,
.btn-primary,
.btn-dark,
.btn-light,
.pill,
.badge,
.package-badge,
.status-pending,
.status-approved,
.status-rejected {
  transition: all 0.22s ease;
}

.btn,
button,
.btn-action,
.btn-start,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  border: 0;
  border-radius: 100px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
}

.btn:hover,
button:hover,
.btn-action:hover,
.btn-start:hover,
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.15);
}

.btn.secondary,
.btn-light,
.btn.soft,
.btn-dark {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}

.btn.secondary:hover,
.btn-light:hover,
.btn.soft:hover,
.btn-dark:hover {
  background: #f8fafc;
  color: #1d4ed8;
}

.btn.danger,
.danger-btn {
  background: #fee2e2;
  color: #991b1b;
}

.btn.danger:hover,
.danger-btn:hover {
  background: #fecaca;
  color: #7f1d1d;
}

input,
select,
textarea {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f8fafc;
  color: var(--text);
  box-shadow: none;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(79, 70, 229, 0.55);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.badge,
.package-badge,
.pill,
.section-tag,
.badge-room {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--primary);
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.status-pending {
  background: #e0f2fe;
  color: #075985;
  border-color: #bae6fd;
}

.status-approved {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}

.status-rejected {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

.package-badge,
.section-tag,
.badge-room {
  background: rgba(59, 130, 246, 0.08);
  color: var(--primary);
  border-color: rgba(59, 130, 246, 0.18);
}

.score-badge {
  background: #ecfdf5;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.muted,
.subtle,
.small,
.meta,
.package-info,
.user-greeting,
.text-light {
  color: var(--muted);
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

th {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--muted);
  padding: 0 12px;
}

td {
  padding: 14px 12px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(226, 232, 240, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.92);
}

td:first-child {
  border-left: 1px solid rgba(226, 232, 240, 0.92);
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
}

td:last-child {
  border-right: 1px solid rgba(226, 232, 240, 0.92);
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
}

.summary,
.stats-grid,
.grid,
.package-grid,
.question-nav {
  gap: 16px;
}

.summary,
.grid,
.stats-grid,
.package-grid,
.form-row {
  align-items: stretch;
}

.history-card:hover,
.payment-item:hover,
.q-card:hover,
.stat-widget:hover,
.package-card:hover,
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.08);
}

.lock,
.empty-state,
.disabled-container,
.note,
.explain,
.alert,
.qris-box {
  border-radius: 18px;
}

@media (max-width: 768px) {
  .container,
  .wrap {
    padding: 16px;
  }

  .top,
  .topbar,
  .navbar,
  .membership-box,
  .payment-box {
    border-radius: 18px;
  }

  .hero,
  .hero-card,
  .welcome-banner {
    padding: 24px;
  }
}

/* Hard overrides for admin/owner legacy inline styling */
body {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  background-color: var(--bg) !important;
  color: var(--text) !important;
}

.shell,
.card,
.main,
.sidebar,
.top,
.topbar,
.navbar,
.hero,
.hero-card,
.welcome-banner,
.stat,
.btn-menu,
.membership-box,
.payment-box,
.history-card,
.payment-item,
.q-card,
.box {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(226, 232, 240, 0.92) !important;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06) !important;
}

.hero,
.hero-card,
.welcome-banner {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 58%, #1e3a8a 120%) !important;
  color: #fff !important;
}

.hero h1,
.hero h2,
.hero p,
.hero-card h1,
.hero-card h2,
.hero-card p,
.welcome-banner h1,
.welcome-banner p {
  color: #fff !important;
}

.btn,
button,
.btn-action,
.btn-start,
.btn-primary,
.btn-menu {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
  color: #fff !important;
  border-radius: 100px !important;
  border: 0 !important;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15) !important;
}

.btn.secondary,
.btn-light,
.btn.soft,
.btn-dark,
.btn-menu.secondary {
  background: #fff !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
}

.btn:hover,
button:hover,
.btn-action:hover,
.btn-start:hover,
.btn-primary:hover,
.btn-menu:hover {
  transform: translateY(-1px) !important;
}

.badge,
.package-badge,
.pill,
.section-tag,
.badge-room {
  background: rgba(255, 255, 255, 0.96) !important;
  color: var(--primary) !important;
  border: 1px solid rgba(226, 232, 240, 0.92) !important;
}

.status-pending {
  background: #e0f2fe !important;
  color: #075985 !important;
}

.status-approved {
  background: #dcfce7 !important;
  color: #166534 !important;
}

.status-rejected {
  background: #fee2e2 !important;
  color: #991b1b !important;
}

input,
select,
textarea {
  border: 1px solid var(--border) !important;
  background: #f8fafc !important;
  color: var(--text) !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(59, 130, 246, 0.55) !important;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1) !important;
}

table {
  border-collapse: separate !important;
  border-spacing: 0 10px !important;
}

th {
  color: var(--muted) !important;
}

td {
  background: rgba(255, 255, 255, 0.96) !important;
  border-top: 1px solid rgba(226, 232, 240, 0.92) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.92) !important;
}

td:first-child {
  border-left: 1px solid rgba(226, 232, 240, 0.92) !important;
}

td:last-child {
  border-right: 1px solid rgba(226, 232, 240, 0.92) !important;
}
