/*
  Portal (User/Public) styling – tetap “Mazer feel”, tapi mengikuti wireframe.
  Dibuat pakai variable Bootstrap/Mazer biar otomatis aman di light/dark.
*/

/* ===============================
   FIX NAVBAR DARK MODE
   =============================== */

/* Saat dark mode aktif */

.stat-value {
    transition: color .3s ease;
}

html[data-bs-theme="dark"] .portal-navbar {
    position: sticky !important;
    top: 0;
    transform: none !important;
    transition: none !important;
}

/* Hilangkan efek aneh dari Mazer */
html[data-bs-theme="dark"] .portal-navbar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Pastikan tidak ikut layout animation */
html[data-bs-theme="dark"] body {
    overflow-x: hidden;
}

/* ===============================
   NAVBAR TEXT COLOR - DARK MODE
   =============================== */

html[data-bs-theme="dark"] .portal-navbar {
    background-color: #111827; /* dark navy */
    border-bottom: 1px solid rgba(255,255,255,.08);
}

/* Brand */
html[data-bs-theme="dark"] .portal-navbar .portal-brand,
html[data-bs-theme="dark"] .portal-navbar .portal-brand span {
    color: #f9fafb !important;
}

/* Nav link */
html[data-bs-theme="dark"] .portal-navbar .nav-link {
    color: rgba(255,255,255,.75) !important;
}

/* Hover & active */
html[data-bs-theme="dark"] .portal-navbar .nav-link:hover,
html[data-bs-theme="dark"] .portal-navbar .nav-link.active {
    color: #ffffff !important;
}

/* Dropdown menu */
html[data-bs-theme="dark"] .portal-navbar .dropdown-menu {
    background-color: #1f2937;
    border-color: rgba(255,255,255,.1);
}

html[data-bs-theme="dark"] .portal-navbar .dropdown-item {
    color: rgba(255,255,255,.85);
}

html[data-bs-theme="dark"] .portal-navbar .dropdown-item:hover {
    background-color: rgba(255,255,255,.08);
    color: #ffffff;
}

/* Toggler icon (mobile) */
html[data-bs-theme="dark"] .navbar-toggler {
    border-color: rgba(255,255,255,.2);
}

html[data-bs-theme="dark"] .navbar-toggler-icon {
    filter: invert(1);
}

/* Icon (bootstrap-icons) */
html[data-bs-theme="dark"] .portal-navbar i {
    color: rgba(255,255,255,.85);
}


/* Table clean look */
.table th {
    font-weight: 600;
    font-size: .875rem;
}

.table td {
    font-size: .875rem;
}

/* Row hover soft */
.table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Mobile spacing */
@media (max-width: 767px) {
    .table td {
        padding-top: .75rem;
        padding-bottom: .75rem;
    }
}

/* Dark mode */
html[data-bs-theme="dark"] .table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.04);
}





.portal-shell {
    max-width: 1140px;
    margin: 0 auto;
}

.portal-navbar {
    background: rgba(var(--bs-body-bg-rgb), 0.88);
    border-bottom: 1px solid rgba(var(--bs-body-color-rgb), 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.portal-brand {
    text-decoration: none;
}

.portal-brand .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(var(--bs-primary-rgb), 0.08);
    border: 1px solid rgba(var(--bs-body-color-rgb), 0.1);
}

.portal-brand .brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.portal-hero {
    border: 1px solid rgba(var(--bs-body-color-rgb), 0.08);
    border-radius: 18px;
    overflow: hidden;
    background: radial-gradient(
            700px 260px at 12% 10%,
            rgba(var(--bs-primary-rgb), 0.14),
            transparent 55%
        ),
        radial-gradient(
            520px 220px at 90% 30%,
            rgba(var(--bs-info-rgb), 0.12),
            transparent 56%
        ),
        rgba(var(--bs-body-bg-rgb), 0.92);
}

.portal-hero .hero-inner {
    padding: 22px 22px 10px;
}

.portal-hero h1 {
    font-weight: 800;
    letter-spacing: 0.2px;
    font-size: 1.05rem;
    line-height: 1.45;
    margin: 0;
}

.portal-hero p {
    margin: 0.6rem 0 0;
    color: rgba(var(--bs-body-color-rgb), 0.68);
    font-size: 0.86rem;
    line-height: 1.55;
}

.hero-ill {
    width: 86px;
    height: 86px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(var(--bs-body-color-rgb), 0.1);
    background: rgba(var(--bs-body-bg-rgb), 0.9);
    box-shadow: 0 14px 28px rgba(2, 6, 23, 0.08);
}

.portal-search {
    padding: 0 22px 18px;
}

.portal-search .search-card {
    border: 1px solid rgba(var(--bs-body-color-rgb), 0.1);
    border-radius: 14px;
    background: rgba(var(--bs-body-bg-rgb), 0.96);
    box-shadow: 0 14px 30px rgba(2, 6, 23, 0.08);
}

.portal-search .form-control {
    border-radius: 12px;
}

.portal-search .btn {
    border-radius: 12px;
    font-weight: 700;
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

@media (max-width: 992px) {
    .topic-grid {
        grid-template-columns: 1fr;
    }
}

.topic-card {
    border: 1px solid rgba(var(--bs-body-color-rgb), 0.08);
    border-radius: 16px;
    background: rgba(var(--bs-body-bg-rgb), 0.96);
    box-shadow: 0 12px 26px rgba(2, 6, 23, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.topic-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(2, 6, 23, 0.1);
}

.topic-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(var(--bs-primary-rgb), 0.1);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.18);
    color: rgba(var(--bs-primary-rgb), 1);
}

.topic-card h3 {
    font-size: 0.98rem;
    font-weight: 800;
    margin: 0.85rem 0 0.35rem;
}

.topic-card p {
    font-size: 0.86rem;
    color: rgba(var(--bs-body-color-rgb), 0.68);
    margin: 0 0 1rem;
}

.btn-soft {
    border-radius: 12px;
    font-weight: 700;
    border: 1px solid rgba(var(--bs-primary-rgb), 0.2);
    background: rgba(var(--bs-primary-rgb), 0.1);
    color: rgba(var(--bs-primary-rgb), 1);
}

.btn-soft:hover {
    background: rgba(var(--bs-primary-rgb), 0.14);
    border-color: rgba(var(--bs-primary-rgb), 0.26);
    color: rgba(var(--bs-primary-rgb), 1);
}

.stat-card {
    border: 1px solid rgba(var(--bs-body-color-rgb), 0.08);
    border-radius: 16px;
    background: rgba(var(--bs-body-bg-rgb), 0.96);
}

.stat-card .k {
    font-size: 0.78rem;
    color: rgba(var(--bs-body-color-rgb), 0.6);
}

.stat-card .v {
    font-weight: 900;
    font-size: 1.05rem;
    margin: 0;
}

.portal-footer {
    border-top: 1px solid rgba(var(--bs-body-color-rgb), 0.08);
    padding: 26px 0 18px;
    color: rgba(var(--bs-body-color-rgb), 0.75);
}

.portal-footer .footer-title {
    font-weight: 800;
    color: rgba(var(--bs-body-color-rgb), 0.92);
}

.portal-footer a {
    color: inherit;
    text-decoration: none;
}

.portal-footer a:hover {
    color: rgba(var(--bs-primary-rgb), 1);
}

/* Detail card (key-value) */
.kv {
    display: grid;
    gap: 2px;
}

.kv .k {
    font-weight: 800;
    font-size: 0.86rem;
}

.kv .v {
    font-size: 0.86rem;
    color: rgba(var(--bs-body-color-rgb), 0.72);
}

/* Table look a bit softer */
.table-soft {
    border: 1px solid rgba(var(--bs-body-color-rgb), 0.08);
    border-radius: 14px;
    overflow: hidden;
}

.table-soft thead th {
    background: rgba(var(--bs-primary-rgb), 0.06);
    border-bottom: 1px solid rgba(var(--bs-body-color-rgb), 0.08);
    font-weight: 800;
}

.badge-soft {
    border: 1px solid rgba(var(--bs-body-color-rgb), 0.1);
    background: rgba(var(--bs-body-bg-rgb), 0.9);
    color: rgba(var(--bs-body-color-rgb), 0.85);
    border-radius: 999px;
    padding: 0.35rem 0.6rem;
    font-weight: 700;
    font-size: 0.78rem;
}
