/* NEXVIRO - tema terang ala ISP nasional (referensi: XL SATU & MyRepublic) */
:root {
  --nx-purple: #5B2D90;
  --nx-purple-dark: #46226F;
  --nx-blue: #2563EB;
  --nx-orange: #F97316;
  --nx-orange-dark: #EA580C;
  --nx-text: #1F2437;
  --nx-muted: #64748B;
  --nx-bg-soft: #F5F7FA;
}
body { font-family: 'Inter', system-ui, sans-serif; color: var(--nx-text); background: #fff; }
h1, h2, h3, h4, h5, .navbar-brand { font-family: 'Poppins', sans-serif; }
.bg-soft { background: var(--nx-bg-soft); }
.text-purple { color: var(--nx-purple); }
.text-muted-2 { color: var(--nx-muted); }

.btn-nx-primary { background: var(--nx-purple); border-color: var(--nx-purple); color: #fff; border-radius: 50rem; padding: .55rem 1.4rem; font-weight: 600; }
.btn-nx-primary:hover { background: var(--nx-purple-dark); border-color: var(--nx-purple-dark); color: #fff; }
.btn-nx-cta { background: var(--nx-orange); border-color: var(--nx-orange); color: #fff; border-radius: 50rem; padding: .55rem 1.4rem; font-weight: 600; }
.btn-nx-cta:hover { background: var(--nx-orange-dark); border-color: var(--nx-orange-dark); color: #fff; }
.btn-outline-nx { border: 2px solid #fff; color: #fff; border-radius: 50rem; padding: .5rem 1.3rem; font-weight: 600; }
.btn-outline-nx:hover { background: rgba(255,255,255,.15); color: #fff; }

.hero { background: linear-gradient(120deg, var(--nx-purple) 0%, var(--nx-blue) 100%); color: #fff; padding: 5.5rem 0 4.5rem; }
.hero .badge-soft { background: rgba(255,255,255,.18); color: #fff; border-radius: 50rem; padding: .45rem 1rem; font-weight: 500; }

.card-nx { border: 0; border-radius: 18px; box-shadow: 0 6px 24px rgba(31,36,55,.07); }
/* Jarak antar card yang bertumpuk dalam satu kolom.
   Margin vertikal saling collapse dgn .mb-4 yang sudah ada -> tidak dobel. */
.card-nx + .card-nx { margin-top: 1.5rem; }
.card-pkg { border: 1px solid #E9EDF3; border-radius: 20px; transition: .2s; }
.card-pkg:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(91,45,144,.15); }
.card-pkg.featured { border: 2px solid var(--nx-orange); position: relative; }
.pkg-price { font-size: 2rem; font-weight: 700; color: var(--nx-purple); }
.icon-circle { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(91,45,144,.1); color: var(--nx-purple); font-size: 1.5rem; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--nx-purple); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; }
.navbar-nx { background: #fff; box-shadow: 0 2px 12px rgba(31,36,55,.06); }
.navbar-nx .nav-link { color: var(--nx-text); font-weight: 500; }
.navbar-nx .nav-link:hover { color: var(--nx-purple); }
footer { background: #2A1A45; color: #CBD5E1; }
footer a { color: #E2E8F0; text-decoration: none; }

/* ===== Panel (admin & user) ===== */
body.panel { background: var(--nx-bg-soft); }
.sidebar { background: #fff; min-height: 100vh; border-right: 1px solid #E9EDF3; width: 240px; }
.sidebar .brand { font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--nx-purple); font-size: 1.25rem; }
.sidebar .nav-link { color: var(--nx-text); border-radius: 10px; padding: .6rem .9rem; margin: .1rem .6rem; font-weight: 500; }
.sidebar .nav-link:hover { background: rgba(91,45,144,.08); color: var(--nx-purple); }
.sidebar .nav-link.active { background: var(--nx-purple); color: #fff; }
.stat-card { border: 0; border-radius: 16px; box-shadow: 0 4px 16px rgba(31,36,55,.06); }
.stat-card .icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.table-card { border: 0; border-radius: 16px; box-shadow: 0 4px 16px rgba(31,36,55,.06); }
.table-card .table-responsive:first-child { border-top-left-radius: 16px; border-top-right-radius: 16px; }
.table-card .dropdown-menu { z-index: 1060; }
.status-big { border-radius: 20px; padding: 1.6rem; color: #fff; }
.status-big.st-active { background: linear-gradient(120deg, #16A34A, #22C55E); }
.status-big.st-isolated { background: linear-gradient(120deg, #DC2626, #F87171); }
.status-big.st-inactive { background: linear-gradient(120deg, #64748B, #94A3B8); }
.login-wrap { min-height: 100vh; display: flex; align-items: center; background: linear-gradient(120deg, var(--nx-purple), var(--nx-blue)); }
@media (max-width: 991px) { .sidebar { min-height: auto; width: 100%; } }


/* ===== Sidebar admin berkelompok ===== */
.nx-subnav { padding-left: .5rem; margin-left: 1.05rem; border-left: 2px solid #EEF0F4; }
.nx-subnav .nav-link { font-size: .875rem; padding-top: .38rem; padding-bottom: .38rem; }
.sidebar .nav-link .nx-caret { transition: transform .18s ease; opacity: .5; }
.sidebar .nav-link.collapsed .nx-caret { transform: rotate(-90deg); }
.sidebar .nav-link[data-bs-toggle="collapse"] { cursor: pointer; }
.sidebar .nav-link[data-bs-toggle="collapse"]:not(.collapsed) { font-weight: 600; }


/* ===== FALLBACK MODAL HP JADUL ===== */
.modal-dialog-scrollable .modal-body { overflow-y: auto !important; -webkit-overflow-scrolling: touch; }
@media (max-width: 575.98px) {
  .modal-fullscreen-sm-down .modal-content { min-height: 100%; border-radius: 0; }
  .modal-fullscreen-sm-down .modal-footer { position: sticky; bottom: 0; background: #fff; z-index: 5; }
}
