/* ====================================================================
   KBIHU MULTAZAM - THEME STYLES
   Color Palette: Emerald Islamic Green (#065f46, #047857), Gold Accent (#d97706, #b45309)
   ==================================================================== */

:root {
  --kbihu-emerald-dark: #064e3b;
  --kbihu-emerald: #047857;
  --kbihu-emerald-light: #10b981;
  --kbihu-emerald-soft: #ecfdf5;
  --kbihu-gold: #d97706;
  --kbihu-gold-hover: #b45309;
  --kbihu-gold-soft: #fef3c7;
  --kbihu-dark: #1f2937;
  --kbihu-gray-light: #f8fafc;
  --kbihu-border: #e2e8f0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #334155;
  background-color: #f8fafc;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header & Navbar */
.top-bar {
  background-color: var(--kbihu-emerald-dark);
  color: #a7f3d0;
  font-size: 0.85rem;
  padding: 0.4rem 0;
}

.top-bar a {
  color: #d1fae5;
  text-decoration: none;
}

.top-bar a:hover {
  color: #ffffff;
}

.top-bar span, .top-bar a {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.navbar-kbihu {
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  padding: 0.7rem 0;
}

.navbar-brand-logo {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--kbihu-emerald-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

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

.brand-title-wrap .title-main {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--kbihu-emerald-dark);
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.brand-title-wrap .title-sub {
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 1px;
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  white-space: nowrap;
}

.brand-title-wrap .title-sub .text-sofiatul {
  color: #d97706; /* Emas / Gold Syar'i */
}

.brand-title-wrap .title-sub .text-amin {
  color: #047857; /* Hijau Zamrud / Emerald */
}

.navbar-brand-logo i {
  color: var(--kbihu-gold);
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.navbar-brand-logo .brand-logo-img {
  height: 54px;
  width: 54px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
  transition: transform 0.25s ease;
}

.navbar-brand-logo:hover .brand-logo-img {
  transform: scale(1.06);
}

/* Navbar Menu Items - Strict Single Line (Icon & Text 1 Baris) */
.navbar-kbihu .navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: nowrap;
}

.navbar-kbihu .nav-item {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.navbar-kbihu .nav-link {
  font-weight: 500;
  color: #334155;
  padding: 0.45rem 0.75rem !important;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  font-size: 0.93rem;
  line-height: 1.2;
}

.navbar-kbihu .nav-link i {
  font-size: 1.05rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.navbar-kbihu .nav-link span {
  white-space: nowrap;
  display: inline-block;
}

.navbar-kbihu .nav-link:hover, 
.navbar-kbihu .nav-link.active {
  color: var(--kbihu-emerald) !important;
}

/* Button Daftar Mandiri in Navbar */
.navbar-kbihu .btn-daftar-mandiri {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.navbar-kbihu .btn-daftar-mandiri i {
  font-size: 1.05rem;
  line-height: 1;
  flex-shrink: 0;
}

.navbar-kbihu .btn-daftar-mandiri span {
  white-space: nowrap;
}

@media (min-width: 992px) and (max-width: 1250px) {
  .navbar-kbihu .nav-link {
    padding: 0.4rem 0.45rem !important;
    font-size: 0.86rem;
    gap: 0.3rem;
  }
  .navbar-kbihu .nav-link i {
    font-size: 0.95rem;
  }
  .navbar-kbihu .btn-daftar-mandiri {
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
  }
  .brand-title-wrap .title-main {
    font-size: 1.1rem;
  }
  .brand-title-wrap .title-sub {
    font-size: 0.82rem;
  }
}

@media (max-width: 576px) {
  .navbar-brand-logo .brand-logo-img {
    height: 46px;
    width: 46px;
  }
  .brand-title-wrap .title-main {
    font-size: 1.05rem;
  }
  .brand-title-wrap .title-sub {
    font-size: 0.8rem;
  }
}

.btn-kbihu-gold {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff !important;
  font-weight: 600;
  border: none;
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-kbihu-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(217, 119, 6, 0.35);
  color: #ffffff;
}

.btn-kbihu-emerald {
  background: linear-gradient(135deg, #047857 0%, #064e3b 100%);
  color: #ffffff !important;
  font-weight: 600;
  border: none;
  box-shadow: 0 4px 10px rgba(4, 120, 87, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-kbihu-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(4, 120, 87, 0.35);
  color: #ffffff;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
  color: #ffffff;
  padding: 4.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 2px, transparent 2px);
  background-size: 24px 24px;
  pointer-events: none;
}

.hero-badge {
  background: rgba(254, 243, 199, 0.18);
  border: 1px solid rgba(253, 230, 138, 0.3);
  color: #fef3c7;
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Cards */
.card-kbihu {
  border: 1px solid var(--kbihu-border);
  border-radius: 12px;
  background: #ffffff;
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.card-kbihu:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}

.feature-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
}

.bg-emerald-soft {
  background-color: var(--kbihu-emerald-soft);
  color: var(--kbihu-emerald);
}

.bg-gold-soft {
  background-color: var(--kbihu-gold-soft);
  color: var(--kbihu-gold);
}

/* Status Badges */
.badge-status-pending {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-status-verified {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.badge-status-revision {
  background-color: #ffedd5;
  color: #9a3412;
  border: 1px solid #fed7aa;
}

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

/* Registration Slip Printing */
@media print {
  .no-print, header, footer, .top-bar, .navbar-kbihu, .btn {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    padding: 0 !important;
    color: #000000 !important;
  }
  .print-area {
    width: 100% !important;
    border: none !important;
    box-shadow: none !important;
  }
}

/* Footer */
footer {
  background-color: #042f2e;
  color: #99f6e4;
  margin-top: auto;
  padding: 3.5rem 0 1.5rem;
}

footer a {
  color: #ccfbf1;
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: #ffffff;
}

footer .footer-title {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

footer .footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background-color: var(--kbihu-gold);
}

/* Floating WhatsApp Button */
.float-wa-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 50px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
  z-index: 999;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s;
}

.float-wa-btn:hover {
  color: #ffffff;
  transform: scale(1.05);
}
