/* ==========================================================================
   e-Tamu Sistem Pengurusan Tetamu Digital
   Trademark: "Tetamu Disantuni, Pengurusan dipermudah"
   Color Theme: Navy Blue (#0A192F, #1E3A8A) & White (#FFFFFF)
   Accents: Warm Golden Yellow (#F59E0B, #D97706)
   Typography: Plus Jakarta Sans (Modern, Clean, Ultra-Legible, Eye-Friendly)
   Animations: Smooth Micro-Interactions, Staggered Card Entrance, Pulse Glow
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Navy Blue Palette */
  --navy-950: #060D1A;
  --navy-900: #0A192F;
  --navy-850: #0D213F;
  --navy-800: #102A54;
  --navy-700: #163864;
  --navy-600: #1E3A8A;
  --navy-500: #2563EB;
  --navy-100: #E0E7FF;
  --navy-50:  #F0F4FA;

  /* Golden Yellow Accents */
  --gold-300: #FDE68A;
  --gold-400: #FBBF24;
  --gold-500: #F59E0B;
  --gold-600: #D97706;
  --gold-gradient: linear-gradient(135deg, #FFFBEB 0%, #FDE68A 25%, #F59E0B 75%, #D97706 100%);
  --gold-glow: 0 4px 20px rgba(245, 158, 11, 0.35);

  /* Eye-Friendly Neutrals & Backgrounds */
  --white: #FFFFFF;
  --slate-50:  #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;

  /* Attendance Status Colors (Soft on the eyes, crystal clear) */
  --status-grey:        #64748B;
  --status-grey-dark:   #475569;
  --status-grey-light:  #F1F5F9;
  --status-grey-border: #E2E8F0;
  --status-yellow:        #EAB308;
  --status-yellow-dark:   #854D0E;
  --status-yellow-light:  #FEF9C3;
  --status-yellow-border: #FDE047;

  --status-green:        #10B981;
  --status-green-dark:   #059669;
  --status-green-light:  #ECFDF5;
  --status-green-border: #A7F3D0;

  --status-red:        #EF4444;
  --status-red-dark:   #DC2626;
  --status-red-light:  #FEF2F2;
  --status-red-border: #FECACA;

  /* Elevation Shadows */
  --shadow-xs: 0 1px 2px rgba(10, 25, 47, 0.04);
  --shadow-sm: 0 2px 8px -1px rgba(10, 25, 47, 0.06), 0 1px 3px rgba(10, 25, 47, 0.03);
  --shadow-md: 0 8px 24px -4px rgba(10, 25, 47, 0.08), 0 2px 6px -1px rgba(10, 25, 47, 0.04);
  --shadow-lg: 0 16px 36px -6px rgba(10, 25, 47, 0.12), 0 4px 12px -2px rgba(10, 25, 47, 0.06);
  --shadow-card-hover: 0 14px 32px -4px rgba(10, 25, 47, 0.12), 0 4px 10px -2px rgba(10, 25, 47, 0.04);

  /* Modern Smooth Radius */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Base & Typography Setup
   ========================================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--slate-800);
  background-color: var(--slate-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--slate-50);
  position: relative;
  overflow-x: hidden;
  color: var(--slate-800);
  line-height: 1.55;
  font-weight: 400;
}

.main-content {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 18px 60px;
  animation: pageFadeIn 0.35s ease-out;
}

/* ==========================================================================
   Top Event Royal Banner (Istiadat Konvokesyen ke-26 UTHM)
   Full aspect ratio - 100% visible, completely uncropped
   ========================================================================== */
.top-event-banner-wrap {
  width: 100%;
  background: #0B1D3A;
  text-align: center;
  border-bottom: 2.5px solid var(--gold-400);
  line-height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(11, 29, 58, 0.25);
}

.top-event-banner-img {
  width: 100%;
  max-width: 1024px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ==========================================================================
   Brand Header
   ========================================================================== */
.brand-header {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-850) 100%);
  color: var(--white);
  padding: 22px 20px 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(6, 13, 26, 0.25);
  border-bottom: 2.5px solid var(--gold-500);
}

.brand-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(245, 158, 11, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.6;
  pointer-events: none;
}

.header-inner {
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.brand-gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: inline-block;
  filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.3));
}

.brand-subname {
  color: #FFFFFF;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  opacity: 0.95;
}

.brand-trademark {
  margin-top: 4px;
  font-size: 0.88rem;
  color: #CBD5E1;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.header-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  color: #E2E8F0;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: var(--transition-normal);
}

.nav-pill:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--gold-400);
  color: var(--gold-300);
  transform: translateY(-1px);
}

.nav-pill.active {
  background: var(--gold-500);
  color: var(--navy-950);
  font-weight: 700;
  border-color: var(--gold-400);
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
}

/* ==========================================================================
   Cards & Content Containers (Kemas, Professional, Eye-Friendly)
   ========================================================================== */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-200);
  position: relative;
  transition: var(--transition-normal);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-navy {
  background: linear-gradient(145deg, var(--navy-900) 0%, var(--navy-850) 100%);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-md);
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
}

.card-navy .card-title {
  color: var(--white);
}

.title-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-50);
  color: var(--navy-800);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.card-navy .title-icon {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold-400);
}

/* ==========================================================================
   Search Input (Sleek, Modern, Eye-Friendly)
   ========================================================================== */
.search-pill-container {
  margin-bottom: 20px;
}

.search-pill-box {
  background: var(--navy-900);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  padding: 8px 16px;
  box-shadow: 0 4px 18px rgba(10, 25, 47, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition-normal);
}

.search-pill-box:focus-within {
  border-color: var(--gold-500);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.22);
  transform: translateY(-1px);
  background: var(--navy-850);
}

.search-pill-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #FFFFFF;
  margin-right: 12px;
  flex-shrink: 0;
}

.search-pill-input {
  width: 100%;
  border: none;
  background: transparent;
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 500;
  outline: none;
  font-family: inherit;
  letter-spacing: -0.01em;
}

.search-pill-input::placeholder {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 400;
}

.search-pill-clear {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  transition: var(--transition-fast);
  flex-shrink: 0;
  font-family: inherit;
}

.search-pill-clear:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.05);
}

/* ==========================================================================
   Search Autocomplete Suggestions Dropdown (Berdasarkan Gambar 1 & 2)
   ========================================================================== */
.search-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 28px rgba(10, 25, 47, 0.14);
  max-height: 280px;
  overflow-y: auto;
  z-index: 100;
  padding: 4px 0;
  -webkit-overflow-scrolling: touch;
  animation: cardEntrance 0.15s ease-out both;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--slate-100);
  transition: background 0.12s ease;
  font-size: 0.92rem;
  color: var(--navy-900);
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item:active {
  background: #F1F5F9;
}

.suggestion-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #DBEAFE;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.suggestion-text-wrap {
  flex: 1;
  min-width: 0;
}

.suggestion-name {
  font-weight: 700;
  color: var(--navy-900);
  font-size: 0.92rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggestion-sub {
  font-size: 0.78rem;
  color: var(--slate-500);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggestion-empty-item {
  padding: 16px;
  text-align: center;
  font-size: 0.86rem;
  color: var(--slate-500);
  font-weight: 600;
}

/* ==========================================================================
   "Pilihan:" Tabs Bar (Segmented Control Pill - Mobile Friendly & Slick)
   ========================================================================== */
.pilihan-section {
  margin-bottom: 22px;
}

.pilihan-header-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.01em;
}

.pilihan-scroll-wrap {
  display: flex;
  gap: 4px;
  background: var(--navy-900);
  border-radius: var(--radius-sm);
  padding: 4px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 4px 14px rgba(10, 25, 47, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Custom Scrollbar for Pilihan tabs */
.pilihan-scroll-wrap::-webkit-scrollbar {
  height: 5px;
}
.pilihan-scroll-wrap::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}
.pilihan-scroll-wrap::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

.pilihan-btn-item {
  flex: 1;
  min-width: 110px;
  padding: 10px 16px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: var(--transition-normal);
  border-radius: 8px;
  font-family: inherit;
}

.pilihan-btn-item:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.pilihan-btn-item.active {
  background: #FFFFFF;
  color: var(--navy-900);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-weight: 700;
  transform: scale(0.99);
}

/* ==========================================================================
   TETAMU CARD: Ultra-Clean, Professional, Eye-Friendly & Animated
   (Designed to eliminate eye strain while looking like an executive banquet pass)
   ========================================================================== */
.tetamu-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
  animation: cardEntrance 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Elegant top accent ribbon */
.tetamu-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--navy-900) 0%, var(--navy-600) 60%, var(--gold-500) 100%);
}

.tetamu-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--slate-300);
}

/* Guest Identity Card: Asingkan Nama & Pangkat dengan latar belakang warna tersendiri */
.guest-identity-card {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-left: 5.5px solid var(--navy-900);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: var(--transition-fast);
}

.tetamu-name,
.setiausaha-guest-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.tetamu-jawatan,
.setiausaha-guest-jawatan {
  font-size: 0.9rem;
  color: #475569;
  font-weight: 600;
  margin-top: 4px;
  line-height: 1.4;
}

/* Carian Highlight Warna Kuning (Gambar 3) */
mark.search-highlight {
  background: #FDE047 !important; /* Kuning terang jelas seperti Gambar 3 */
  color: #0F172A !important;
  font-weight: 800 !important;
  padding: 1px 4px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  display: inline-block;
  line-height: 1.25;
}

.tetamu-details-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.tetamu-detail-item {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: anywhere;
  transition: var(--transition-fast);
}

.tetamu-detail-item:hover {
  background: #FFFFFF;
  border-color: var(--slate-300);
  box-shadow: var(--shadow-xs);
}

.tetamu-detail-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  color: var(--slate-500);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.tetamu-detail-val {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.01em;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Neutral styling for all detail items per user instruction: 'pastu tak nak ade warna bahagian ni' */
.tetamu-detail-item.highlight {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
}

.tetamu-detail-item.highlight .tetamu-detail-label {
  color: var(--slate-500);
}

.tetamu-detail-item.highlight .tetamu-detail-val {
  color: var(--navy-900);
  font-size: 1.08rem;
  font-weight: 700;
}

/* Card Footer: Attendance Status Pill (Bottom-Right) */
.tetamu-card-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  border-top: 1px solid var(--slate-100);
  padding-top: 14px;
}

.tetamu-status-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-label-small {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--slate-500);
}

/* Modern Status Badges (Easy on eyes with gentle pulse) */
.status-val-display {
  font-size: 0.88rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: lowercase;
}

.status-val-display.hadir {
  background: var(--status-green-light);
  color: var(--status-green-dark);
  border: 1px solid var(--status-green-border);
}

.status-val-display.hadir::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-green);
  animation: pulseGreen 2s infinite;
}

.status-val-display.tidak-hadir {
  background: var(--status-red-light);
  color: var(--status-red-dark);
  border: 1px solid var(--status-red-border);
}

.status-val-display.tidak-hadir::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-red);
}

.status-val-display.belum-dikemaskini {
  background: var(--status-yellow-light);
  color: var(--status-yellow-dark);
  border: 1px solid var(--status-yellow-border);
}

.status-val-display.belum-dikemaskini::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-yellow);
}

/* ==========================================================================
   SETIAUSAHA: Stats Grid & Categorization
   ========================================================================== */
.setiausaha-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.stat-box {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  border: 1.5px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: var(--transition-normal);
}

.stat-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--slate-300);
}

.stat-box.active {
  box-shadow: var(--shadow-sm);
}
.stat-box.all.active     { border-color: var(--navy-900); background: #F8FAFC; }
.stat-box.pending.active { border-color: var(--status-grey); background: var(--status-grey-light); }
.stat-box.present.active { border-color: var(--status-green); background: var(--status-green-light); }
.stat-box.absent.active  { border-color: var(--status-red); background: var(--status-red-light); }

.stat-content h4 {
  font-size: 0.76rem;
  text-transform: uppercase;
  color: var(--slate-500);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  font-weight: 700;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat-box.all .stat-number     { color: var(--navy-900); }
.stat-box.pending .stat-number { color: var(--status-grey-dark); }
.stat-box.present .stat-number { color: var(--status-green-dark); }
.stat-box.absent .stat-number  { color: var(--status-red-dark); }

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

.stat-box.all .stat-icon     { background: var(--navy-50); color: var(--navy-800); }
.stat-box.pending .stat-icon { background: var(--status-grey-light); color: var(--status-grey); }
.stat-box.present .stat-icon { background: var(--status-green-light); color: var(--status-green-dark); }
.stat-box.absent .stat-icon  { background: var(--status-red-light); color: var(--status-red-dark); }

/* Category Filter Tabs (Pill Bar) */
.category-tabs-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}

.cat-tab-btn {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--slate-200);
  background: var(--white);
  color: var(--slate-600);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: var(--transition-normal);
  font-family: inherit;
}

.cat-tab-btn:hover {
  background: var(--slate-50);
  border-color: var(--slate-300);
  color: var(--navy-900);
}

.cat-tab-btn.active {
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.cat-tab-btn.all.active     { background: var(--navy-900); border-color: var(--navy-900); }
.cat-tab-btn.pending.active { background: var(--status-grey); border-color: var(--status-grey); }
.cat-tab-btn.present.active { background: var(--status-green-dark); border-color: var(--status-green-dark); }
.cat-tab-btn.absent.active  { background: var(--status-red-dark); border-color: var(--status-red-dark); }

.cat-count-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.08);
}
.cat-tab-btn.active .cat-count-badge {
  background: rgba(255, 255, 255, 0.25);
}

/* Setiausaha Action Buttons */
.action-buttons-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-status-action {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition-fast);
  font-family: inherit;
}

.btn-status-action:hover {
  transform: translateY(-1px);
}

.btn-status-action:active {
  transform: scale(0.98);
}

.btn-mark-present {
  background: var(--status-green-light);
  color: var(--status-green-dark);
  border-color: var(--status-green-border);
}
.btn-mark-present:hover {
  background: var(--status-green);
  color: var(--white);
  border-color: var(--status-green);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-mark-absent {
  background: var(--status-red-light);
  color: var(--status-red-dark);
  border-color: var(--status-red-border);
}
.btn-mark-absent:hover {
  background: var(--status-red);
  color: var(--white);
  border-color: var(--status-red);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn-mark-pending {
  background: var(--status-grey-light);
  color: var(--status-grey);
  border-color: var(--status-grey-border);
}
.btn-mark-pending:hover {
  background: var(--status-grey);
  color: var(--white);
  border-color: var(--status-grey);
}

.btn-mark-present.is-active {
  background: var(--status-green);
  color: var(--white);
  border-color: var(--status-green);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.btn-mark-absent.is-active {
  background: var(--status-red);
  color: var(--white);
  border-color: var(--status-red);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

/* Setiausaha Card Status Pill (Gambar 2) */
.setiausaha-status-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: lowercase;
  border: 1px solid transparent;
}
.setiausaha-status-pill.status-pending {
  background: #F1F5F9;
  color: #64748B;
  border-color: #CBD5E1;
}
.setiausaha-status-pill.status-present {
  background: #DCFCE7;
  color: #15803D;
  border-color: #86EFAC;
}
.setiausaha-status-pill.status-absent {
  background: #FEE2E2;
  color: #B91C1C;
  border-color: #FCA5A5;
}

.highlight-sarapan-badge {
  background: #F0FDF4;
  color: #166534;
  border: 1px solid #BBF7D0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.35;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

.highlight-extra {
  background: #F8FAFC;
  color: #475569;
  border: 1px solid #E2E8F0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1.35;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

/* ==========================================================================
   SETIAUSAHA: Table Layout (Berdasarkan Gambar 3 & Gambar 2)
   ========================================================================== */
.setiausaha-table-container {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 14px;
  margin-bottom: 24px;
}

.setiausaha-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: 0.9rem;
  min-width: 960px;
}

.setiausaha-table thead th {
  background: #F8FAFC;
  color: var(--navy-900);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 14px 16px;
  border-bottom: 2px solid var(--slate-200);
  white-space: nowrap;
}

.setiausaha-table tbody tr {
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--slate-100);
}

.setiausaha-table tbody tr:hover {
  filter: brightness(0.98);
}

/* Colored Edge Indicator (Kekalkan dari Gambar 2) */
.setiausaha-table tbody tr.row-status-pending {
  border-left: 5.5px solid var(--status-grey);
  background: #FFFFFF;
}
.setiausaha-table tbody tr.row-status-present {
  border-left: 5.5px solid var(--status-green);
  background: #F0FDF4;
}
.setiausaha-table tbody tr.row-status-absent {
  border-left: 5.5px solid var(--status-red);
  background: #FEF2F2;
}

.setiausaha-table tbody td {
  padding: 14px 16px;
  vertical-align: middle;
  border-bottom: 1px solid var(--slate-100);
}

/* Highlighted Information Badges (Gambar 3 & Gambar 2) */
.table-info-highlight {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.35;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

.highlight-dewan {
  background: #F1F5F9;
  color: #0F172A;
  border: 1px solid #CBD5E1;
}

.highlight-meja {
  background: #FFFBEB;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.highlight-parking {
  background: #EEF2FF;
  color: #3730A3;
  border: 1px solid #C7D2FE;
  font-weight: 800;
}

.highlight-pilihan {
  background: #EFF6FF;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
  font-weight: 700;
  font-size: 0.8rem;
}

.highlight-sarapan {
  color: #334155;
  font-weight: 600;
  font-size: 0.84rem;
}

/* Status Pill in Name Column */
.table-status-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: lowercase;
  margin-left: 6px;
  vertical-align: middle;
}
.table-status-tag.pending {
  background: var(--status-grey-light);
  color: var(--status-grey-dark);
  border: 1px solid var(--status-grey-border);
}
.table-status-tag.present {
  background: var(--status-green-light);
  color: var(--status-green-dark);
  border: 1px solid var(--status-green-border);
}
.table-status-tag.absent {
  background: var(--status-red-light);
  color: var(--status-red-dark);
  border: 1px solid var(--status-red-border);
}

/* Quick Action Buttons in Table (Gambar 3) */
.table-actions-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  justify-content: center;
}

.btn-tbl-action {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  transition: all 0.15s ease;
}

.btn-tbl-present {
  background: #ECFDF5;
  color: #059669;
  border: 1.5px solid #10B981;
}
.btn-tbl-present:hover,
.btn-tbl-present.is-active {
  background: #10B981;
  color: #FFFFFF;
  border-color: #10B981;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.btn-tbl-absent {
  background: #FEF2F2;
  color: #DC2626;
  border: 1.5px solid #EF4444;
}
.btn-tbl-absent:hover,
.btn-tbl-absent.is-active {
  background: #EF4444;
  color: #FFFFFF;
  border-color: #EF4444;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

.btn-tbl-reset {
  background: #F8FAFC;
  color: #64748B;
  border: 1px solid #CBD5E1;
  padding: 6px 10px;
}
.btn-tbl-reset:hover {
  background: #E2E8F0;
  color: #0F172A;
  border-color: #94A3B8;
}

/* Responsive Table Mobile Scroll Hint */
.mobile-table-hint {
  display: none;
  font-size: 0.78rem;
  color: var(--slate-500);
  margin-bottom: 6px;
  align-items: center;
  gap: 6px;
}
@media (max-width: 768px) {
  .mobile-table-hint {
    display: flex;
  }
}

/* ==========================================================================
   ARAHAN: Tutorial & Clean Reference Table
   ========================================================================== */
.tutorial-container {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  padding: 24px;
  margin-top: 20px;
  box-shadow: var(--shadow-sm);
}

.tut-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--slate-100);
}

.tut-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.tut-circle-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.tut-icon-green  { background: #DCFCE7; color: #16A34A; }
.tut-icon-cyan   { background: #E0F2FE; color: #0284C7; }
.tut-icon-purple { background: #F3E8FF; color: #9333EA; }
.tut-icon-teal   { background: #CCFBF1; color: #0D9488; }

.tut-content {
  flex: 1;
}

.tut-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.tut-desc {
  font-size: 0.9rem;
  color: var(--slate-600);
  line-height: 1.5;
}

/* Clean Reference Table */
.table-preview-wrap {
  margin-top: 24px;
  background: #FFFFFF;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.table-preview-header {
  padding: 16px 20px;
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-900);
}

.uthm-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.uthm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  text-align: left;
  min-width: 750px;
}

.uthm-table th {
  background: #F1F5F9;
  color: var(--navy-900);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 12px 16px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--slate-200);
  letter-spacing: 0.04em;
}

.uthm-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--slate-100);
  color: var(--slate-700);
  vertical-align: middle;
  font-weight: 500;
  line-height: 1.4;
}

.uthm-table tr:hover {
  background: var(--slate-50);
}

.pentas-badge {
  display: inline-block;
  padding: 4px 10px;
  background: #E0F2FE;
  color: #0369A1;
  font-weight: 700;
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  text-align: center;
}

.table-bottom-note {
  padding: 14px 20px;
  background: var(--slate-50);
  border-top: 1px solid var(--slate-200);
  font-size: 0.84rem;
  color: var(--slate-500);
  line-height: 1.5;
}

/* ==========================================================================
   Buttons & Generic Elements
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: inherit;
  letter-spacing: -0.01em;
  transition: var(--transition-normal);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--navy-900);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(10, 25, 47, 0.15);
}
.btn-primary:hover {
  background: var(--navy-800);
  box-shadow: 0 4px 14px rgba(10, 25, 47, 0.25);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-500) 100%);
  color: var(--navy-950);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-300) 0%, var(--gold-400) 100%);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
}
.btn-whatsapp:hover {
  background: #1EBE5D;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

.btn-outline {
  background: #FFFFFF;
  color: var(--navy-900);
  border: 1px solid var(--slate-300);
  box-shadow: var(--shadow-xs);
}
.btn-outline:hover {
  background: var(--slate-50);
  border-color: var(--slate-400);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.82rem;
  border-radius: var(--radius-xs);
}

/* ==========================================================================
   Empty / Loading / Error States
   ========================================================================== */
.state-box {
  text-align: center;
  padding: 44px 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-xs);
  margin: 18px 0;
  animation: pageFadeIn 0.3s ease-out;
}

.state-icon {
  font-size: 2.6rem;
  margin-bottom: 12px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
}

.state-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.state-desc {
  font-size: 0.9rem;
  color: var(--slate-500);
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.5;
}

.spinner {
  width: 38px;
  height: 38px;
  border: 3.5px solid var(--navy-100);
  border-top-color: var(--gold-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 14px;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--navy-950);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(6, 13, 26, 0.35);
  border-left: 4px solid var(--gold-500);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.3s ease-out, fadeOut 0.3s ease-in 3s forwards;
  max-width: 360px;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
  }
}

@keyframes pulseGreen {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.brand-footer {
  background: var(--navy-950);
  color: var(--slate-400);
  text-align: center;
  padding: 24px 18px;
  font-size: 0.84rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
}

.footer-inner {
  max-width: 920px;
  margin: 0 auto;
}

.footer-tagline {
  color: var(--gold-400);
  font-weight: 600;
  margin-bottom: 4px;
  font-style: italic;
}

/* ==========================================================================
   GAMBAR 3 DESIGN: Dual Share Link Cards & QR Code Portal
   ========================================================================== */
.share-section-wrap {
  margin-top: 24px;
  background: #F0FDF4;
  border: 2px solid #22C55E;
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  box-shadow: 0 10px 30px rgba(22, 163, 74, 0.12);
  animation: cardEntrance 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.share-pill-ready {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #DCFCE7;
  color: #15803D;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.share-heading-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0A192F;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-heading-subtitle {
  font-size: 0.92rem;
  color: #475569;
  margin-bottom: 22px;
  line-height: 1.5;
}

.share-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.share-card-box {
  background: #FFFFFF;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  position: relative;
}

.share-card-box:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.share-card-box.card-setiausaha-border {
  border: 2px solid #FCD34D;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.12);
}

.share-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.share-card-avatar {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  flex-shrink: 0;
}

.share-card-avatar.avatar-tetamu {
  background: #EEF2FF;
  color: #1E3A8A;
}

.share-card-avatar.avatar-setiausaha {
  background: #FEF3C7;
  color: #B45309;
}

.share-card-meta {
  display: flex;
  flex-direction: column;
}

.share-role-pill {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 3px;
}

.share-role-pill.pill-tetamu {
  background: #E0F2FE;
  color: #0369A1;
}

.share-role-pill.pill-setiausaha {
  background: #FEF08A;
  color: #854D0E;
}

.share-card-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0A192F;
  letter-spacing: -0.02em;
}

.share-card-desc {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 16px;
  min-height: 44px;
}

.share-link-input-box {
  background: #F8FAFC;
  border: 1.5px solid var(--slate-200);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: monospace;
  font-size: 0.84rem;
  color: #0A192F;
  word-break: break-all;
  margin-bottom: 16px;
  user-select: all;
  line-height: 1.4;
  font-weight: 600;
}

.share-actions-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-salin-tetamu {
  background: #0A192F;
  color: #FFFFFF;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-family: inherit;
  transition: var(--transition-fast);
}
.btn-salin-tetamu:hover {
  background: #102A54;
  transform: translateY(-1px);
}

.btn-salin-setiausaha {
  background: #059669;
  color: #FFFFFF;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-family: inherit;
  transition: var(--transition-fast);
}
.btn-salin-setiausaha:hover {
  background: #047857;
  transform: translateY(-1px);
}

.btn-share-open {
  background: #F1F5F9;
  color: #1E293B;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #CBD5E1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-family: inherit;
  transition: var(--transition-fast);
}
.btn-share-open:hover {
  background: #E2E8F0;
  transform: translateY(-1px);
}

.btn-share-wa {
  background: #25D366;
  color: #FFFFFF;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition-fast);
}
.btn-share-wa:hover {
  background: #1EBE5D;
  transform: translateY(-1px);
}

.btn-share-tg {
  background: #229ED9;
  color: #FFFFFF;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition-fast);
}
.btn-share-tg:hover {
  background: #1B8ABF;
  transform: translateY(-1px);
}

.btn-toggle-qr {
  background: #FFFFFF;
  color: var(--navy-900);
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--slate-300);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.86rem;
  font-family: inherit;
  transition: var(--transition-fast);
}
.btn-toggle-qr:hover {
  background: var(--slate-50);
  border-color: var(--slate-400);
}

/* ==========================================================================
   GAMBAR 2 DESIGN: QR Code Box, Action Controls & 3-Step Guide
   ========================================================================== */
.qr-preview-container {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--slate-200);
  text-align: center;
  animation: cardEntrance 0.3s ease-out;
}

.qr-canvas-holder {
  background: #FFFFFF;
  border: 1.5px solid var(--slate-200);
  border-radius: 14px;
  padding: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: var(--shadow-xs);
  min-width: 190px;
  min-height: 190px;
}

.qr-canvas-holder canvas, .qr-canvas-holder img {
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  max-width: 100%;
  height: auto;
}

.qr-sub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.btn-qr-sub {
  padding: 8px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid var(--slate-200);
  background: #FFFFFF;
  color: var(--navy-900);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: inherit;
  transition: var(--transition-fast);
}
.btn-qr-sub:hover {
  background: var(--slate-50);
  border-color: var(--slate-300);
  transform: translateY(-1px);
}

/* 3-Step Guide Box (Gambar 2 bottom section) */
.steps-guide-card {
  background: #FFFFFF;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-top: 20px;
  box-shadow: var(--shadow-xs);
}

.step-guide-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--slate-100);
}
.step-guide-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.step-guide-item:first-child {
  padding-top: 0;
}

.step-guide-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.step-guide-icon.icon-teal  { background: #CCFBF1; color: #0D9488; }
.step-guide-icon.icon-cyan  { background: #E0F2FE; color: #0284C7; }
.step-guide-icon.icon-green { background: #DCFCE7; color: #16A34A; }

.step-guide-content {
  flex: 1;
}

.step-guide-title {
  font-weight: 800;
  color: #0A192F;
  font-size: 0.96rem;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.step-guide-desc {
  font-size: 0.86rem;
  color: #64748B;
  line-height: 1.45;
}

/* ==========================================================================
   Mobile Responsive Rules (User Friendly for Phone Users)
   ========================================================================== */
@media (max-width: 640px) {
  .brand-name {
    font-size: 1.5rem;
  }
  .brand-subname {
    font-size: 1.05rem;
  }
  .brand-header {
    padding: 18px 14px;
  }
  .main-content {
    padding: 16px 14px 50px;
  }
  .card {
    padding: 18px 16px;
    border-radius: var(--radius-sm);
  }
  .search-pill-box {
    padding: 6px 12px;
  }
  .tetamu-card {
    padding: 18px 16px;
    border-radius: var(--radius-sm);
  }
  .tetamu-name {
    font-size: 1.2rem;
  }
  .tetamu-jawatan {
    font-size: 0.9rem;
  }
  .tetamu-details-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .pilihan-btn-item {
    min-width: 95px;
    padding: 9px 12px;
    font-size: 0.85rem;
  }
  .setiausaha-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stat-box {
    padding: 12px 14px;
  }
  .stat-number {
    font-size: 1.45rem;
  }

  /* Dual Share Cards (Arahan.html) on Mobile Phones - 100% Centered */
  .share-section-wrap {
    padding: 16px 12px;
    border-radius: var(--radius-md);
    margin: 20px auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  .share-pill-ready {
    display: table;
    margin: 0 auto 12px auto;
    font-size: 0.72rem;
  }
  .share-heading-title {
    font-size: 1.15rem;
    text-align: center;
    justify-content: center;
    line-height: 1.35;
  }
  .share-heading-subtitle {
    font-size: 0.82rem;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.45;
  }
  .share-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .share-card-box {
    padding: 16px 14px;
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    overflow: hidden;
  }
  .share-card-top {
    gap: 10px;
    margin-bottom: 10px;
  }
  .share-card-avatar {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
  .share-card-name {
    font-size: 1.15rem;
  }
  .share-card-desc {
    font-size: 0.84rem;
    min-height: unset;
    margin-bottom: 14px;
  }
  .share-link-input-box {
    font-size: 0.76rem;
    padding: 8px 10px;
    word-break: break-all;
    overflow-wrap: anywhere;
    max-width: 100%;
    box-sizing: border-box;
    margin-bottom: 14px;
  }
  .share-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
  }
  .btn-salin-tetamu,
  .btn-salin-setiausaha {
    width: 100%;
    justify-content: center;
    padding: 11px 16px;
    font-size: 0.9rem;
    order: 1;
  }
  .btn-share-open,
  .btn-share-wa,
  .btn-share-tg,
  .btn-toggle-qr {
    flex: 1 1 0;
    min-width: 48px;
    padding: 9px 8px;
    font-size: 0.82rem;
    justify-content: center;
    order: 2;
  }
  .qr-preview-container {
    text-align: center;
    padding-top: 14px;
    margin-top: 14px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .qr-canvas-holder {
    max-width: 100%;
    min-width: unset;
    min-height: unset;
    padding: 10px;
    margin: 0 auto 10px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
  }
  .qr-canvas-holder canvas,
  .qr-canvas-holder img {
    max-width: 180px !important;
    max-height: 180px !important;
    height: auto;
    display: block;
    margin: 0 auto;
  }
  .qr-sub-grid {
    width: 100%;
    max-width: 280px;
    margin: 8px auto 0 auto;
    gap: 6px;
  }
  .btn-qr-sub {
    padding: 8px 6px;
    font-size: 0.78rem;
  }

  /* Setiausaha Cards on Mobile Phones (User Friendly, 100% Full Width, Thumb Friendly, Gambar 2) */
  .setiausaha-card {
    padding: 14px 14px !important;
    border-radius: 12px !important;
    margin-bottom: 12px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  .setiausaha-card .setiausaha-card-header {
    gap: 8px !important;
    margin-bottom: 10px !important;
  }
  .setiausaha-card .setiausaha-guest-name {
    font-size: 1.12rem !important;
    line-height: 1.3 !important;
    word-break: break-word !important;
  }
  .setiausaha-card .setiausaha-guest-jawatan {
    font-size: 0.82rem !important;
    margin-top: 2px !important;
    word-break: break-word !important;
  }
  .setiausaha-card .card-info-badges {
    gap: 5px !important;
    margin: 6px 0 12px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .setiausaha-card .table-info-highlight,
  .setiausaha-card .highlight-sarapan-badge {
    font-size: 0.78rem !important;
    padding: 3px 8px !important;
  }
  .setiausaha-card .action-buttons-wrap {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    width: 100% !important;
    gap: 5px !important;
    box-sizing: border-box !important;
    padding-top: 10px !important;
  }
  .setiausaha-card .action-buttons-wrap .btn-status-action {
    width: 100% !important;
    padding: 9px 3px !important;
    font-size: 0.78rem !important;
    white-space: nowrap !important;
    justify-content: center !important;
    text-align: center !important;
    letter-spacing: -0.02em !important;
    min-width: 0 !important;
  }
}

