:root {
    --tracer-navy: #08224f;
    --tracer-blue: #1557c0;
    --tracer-blue-2: #2582f3;
    --tracer-cyan: #62d9ff;
    --tracer-ink: #10233f;
    --tracer-muted: #64748b;
    --tracer-line: rgba(148, 163, 184, 0.24);
    --tracer-glass: rgba(255, 255, 255, 0.78);
    --tracer-glass-strong: rgba(255, 255, 255, 0.92);
    --tracer-shadow: 0 24px 70px rgba(8, 34, 79, 0.18);
    --tracer-radius: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", "Segoe UI", sans-serif;
    color: var(--tracer-ink);
}

/* body.landing-page,
body.auth-page {
    background:
        linear-gradient(rgba(37, 130, 243, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 130, 243, 0.08) 1px, transparent 1px),
        linear-gradient(135deg, #eef7ff 0%, #f7fbff 48%, #e8f3ff 100%);
    background-size: 42px 42px, 42px 42px, auto;
} */

/* =========================================
   BACKGROUND LOGIN
========================================= */
body.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

body.auth-page::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(15, 23, 42, 0.55),
        rgba(15, 23, 42, 0.55)
    );
    z-index: 1;
    pointer-events: none;
}

/* GRID EFFECT */
body.auth-page::before {
    content: '';
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);

    background-size: 50px 50px;

    pointer-events: none;
}

/* LANDING PAGE TETAP */
body.landing-page {
    background:
        linear-gradient(rgba(37, 130, 243, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 130, 243, 0.08) 1px, transparent 1px),
        linear-gradient(135deg, #eef7ff 0%, #f7fbff 48%, #e8f3ff 100%);

    background-size: 42px 42px, 42px 42px, auto;
}

::selection {
    background: rgba(37, 130, 243, 0.22);
}

.text-gradient-blue {
    background: linear-gradient(90deg, var(--tracer-cyan), #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.btn-blue-glow {
    background: linear-gradient(135deg, #ffffff, #dff2ff);
    border: 1px solid rgba(255, 255, 255, 0.75);
    color: var(--tracer-navy);
    box-shadow: 0 16px 35px rgba(98, 217, 255, 0.26);
    font-weight: 700;
}

.btn-blue-glow:hover,
.btn-blue-glow:focus {
    color: var(--tracer-navy);
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(98, 217, 255, 0.36);
}

.btn-outline-glass {
    border: 1px solid rgba(255, 255, 255, 0.52);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    font-weight: 700;
}

.btn-outline-glass:hover,
.btn-outline-glass:focus {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.82);
    color: #ffffff;
    transform: translateY(-2px);
}

.landing-navbar {
    background: rgba(8, 34, 79, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px);
    box-shadow: none;
    padding: 0.85rem 0;
    z-index: 1050;
}

.landing-navbar.scrolled {
    box-shadow: 0 14px 40px rgba(8, 34, 79, 0.22);
}

.landing-navbar .navbar-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.landing-brand-title {
    color: #ffffff;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.01em;
}

.landing-brand-subtitle {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.78rem;
    line-height: 1.3;
}

.landing-navbar .nav-link {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.landing-navbar .nav-link:hover,
.landing-navbar .nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.landing-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: none;
}

.nav-login-btn {
    color: var(--tracer-navy);
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.72);
    font-weight: 800;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 1051;
}

.nav-login-btn:hover,
.nav-login-btn:focus {
    color: var(--tracer-navy);
    background: #eaf7ff;
    transform: translateY(-1px);
}

.hero-section {
    position: relative;
    min-height: 100vh;
    padding: 118px 0 86px;
    color: #ffffff;
    background:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(135deg, #071a42 0%, #0e4ea9 52%, #17a4df 100%);
    background-size: 48px 48px, 48px 48px, auto;
    overflow: hidden;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 180px;
    background: linear-gradient(180deg, rgba(238, 247, 255, 0), #eef7ff 82%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.48rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.hero-badge {
    color: #dff7ff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
}

.hero-title {
    max-width: 680px;
    font-size: clamp(2.45rem, 5vw, 5rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.hero-copy {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.08rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.hero-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    max-width: 620px;
}

.hero-stat {
    padding: 1rem;
    border-radius: var(--tracer-radius);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(16px);
}

.hero-stat strong {
    display: block;
    color: #ffffff;
    font-size: 1.45rem;
    line-height: 1;
}

.hero-stat span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.8rem;
}

.hero-visual {
    position: relative;
    z-index: 1;
    padding: 1rem;
    border-radius: var(--tracer-radius);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(18px);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.hero-visual img {
    width: 100%;
    display: block;
    filter: drop-shadow(0 22px 35px rgba(0, 0, 0, 0.16));
}

.hero-visual-note {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1rem;
    padding: 0.85rem;
    border-radius: var(--tracer-radius);
    background: rgba(255, 255, 255, 0.82);
    color: var(--tracer-ink);
}

.hero-visual-note i {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tracer-blue), var(--tracer-cyan));
    color: #ffffff;
}

.section-pad {
    padding: 88px 0;
}

.section-kicker {
    color: var(--tracer-blue);
    background: rgba(37, 130, 243, 0.1);
    border: 1px solid rgba(37, 130, 243, 0.12);
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 3.15rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: 0;
}

.section-copy {
    color: var(--tracer-muted);
    line-height: 1.8;
}

.about-section,
.benefit-section {
    position: relative;
    background: transparent;
}

.about-visual {
    overflow: hidden;
    border-radius: var(--tracer-radius);
    background: var(--tracer-glass);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--tracer-shadow);
    backdrop-filter: blur(18px);
}

.about-visual img {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.glass-info-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.glass-info {
    padding: 1rem;
    border-radius: var(--tracer-radius);
    background: var(--tracer-glass);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 16px 40px rgba(8, 34, 79, 0.1);
}

.glass-info i {
    color: var(--tracer-blue);
}

.benefit-card {
    height: 100%;
    padding: 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: var(--tracer-radius);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 45px rgba(8, 34, 79, 0.1);
    backdrop-filter: blur(18px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.benefit-card:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 130, 243, 0.28);
    box-shadow: 0 26px 60px rgba(8, 34, 79, 0.16);
}

.benefit-icon {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
    border-radius: var(--tracer-radius);
    color: #ffffff;
    background: linear-gradient(135deg, var(--tracer-blue), var(--tracer-cyan));
    box-shadow: 0 14px 28px rgba(37, 130, 243, 0.24);
    font-size: 1.35rem;
}

.benefit-card h4 {
    font-size: 1.08rem;
    font-weight: 800;
    margin-bottom: 0.7rem;
}

.benefit-card p {
    color: var(--tracer-muted);
    line-height: 1.7;
    margin-bottom: 0;
}

.faq-section {
    background: rgba(255, 255, 255, 0.32);
}

.faq-accordion {
    display: grid;
    gap: 0.85rem;
}

.faq-accordion .accordion-item {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: var(--tracer-radius);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 45px rgba(8, 34, 79, 0.1);
    backdrop-filter: blur(18px);
}

.faq-accordion .accordion-button {
    color: var(--tracer-ink);
    background: transparent;
    font-weight: 800;
    box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--tracer-blue);
}

.faq-accordion .accordion-body {
    color: var(--tracer-muted);
    line-height: 1.75;
}

.site-footer {
    color: #ffffff;
    background:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(135deg, #071a42 0%, #0d3f93 58%, #0aa4d6 100%);
    background-size: 44px 44px, 44px 44px, auto;
}

.footer-cta {
    padding: 1.4rem;
    border-radius: var(--tracer-radius);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(16px);
}

.footer-link {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-link:hover {
    color: #ffffff;
    transform: translateX(2px);
}

.footer-social {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-decoration: none;
}

.footer-social:hover {
    color: var(--tracer-navy);
    background: #ffffff;
}

.scroll-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1000;
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--tracer-navy);
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(8, 34, 79, 0.22);
    text-decoration: none;
}

.scroll-top:hover {
    color: var(--tracer-navy);
    transform: translateY(-2px);
}

/* WhatsApp Float Button */
.wa-float {
    position: fixed;
    right: 18px;
    bottom: 74px; /* tepat di atas scroll-top (18 + 46 + 10) */
    z-index: 1000;
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #25d366;
    color: #ffffff;
    font-size: 1.4rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.wa-float:hover {
    color: #ffffff;
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55);
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 18px;
}

.login-shell {
    position: relative;
    z-index: 2;
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    min-height: 650px;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    backdrop-filter: blur(18px);
}

.login-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px;
    color: #ffffff;
    background:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(
            145deg,
            rgba(7,26,66,0.96) 0%,
            rgba(21,87,192,0.92) 65%,
            rgba(24,169,219,0.88) 100%
        );
    background-size: 40px 40px, 40px 40px, auto;
}

.login-brand-panel,
.login-panel {
    position: relative;
    z-index: 2;
}

/* LIGHT EFFECT */
.login-brand-panel::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    top: -120px;
    right: -120px;
    background: rgba(255,255,255,0.08);
    filter: blur(18px);
}

.login-logo-wrap {
    display: inline-flex;
    width: 86px;
    height: 86px;
    align-items: center;
    justify-content: center;
    border-radius: var(--tracer-radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.login-logo-wrap:hover {
    transform: scale(1.04);
}

.login-logo-wrap img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

/* =========================================
   TITLE
========================================= */

.login-brand-panel h1 {
    position: relative;
    z-index: 2;

    margin: 34px 0 16px;

    font-size: clamp(2.4rem, 4vw, 4rem);

    line-height: 1.05;

    font-weight: 800;

    letter-spacing: -1px;
}

.login-brand-panel p {
    position: relative;
    z-index: 2;

    color: rgba(255,255,255,0.82);

    line-height: 1.9;

    font-size: 1rem;
}

/* =========================================
   MINI STATS
========================================= */

.login-mini-stats {
    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 1rem;
}

.login-mini-stat {
    padding: 1rem 1.1rem;

    border-radius: 20px;

    background: rgba(255,255,255,0.12);

    border: 1px solid rgba(255,255,255,0.14);

    backdrop-filter: blur(14px);

    transition: all 0.3s ease;
}

.login-mini-stat:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.16);
}

.login-mini-stat strong {
    display: block;

    font-size: 1.2rem;

    margin-bottom: 6px;
}

.login-mini-stat span {
    color: rgba(255,255,255,0.75);

    font-size: 0.82rem;
}

/* =========================================
   RIGHT PANEL
========================================= */

.login-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 56px;

    background: rgba(255,255,255,0.96);

    backdrop-filter: blur(14px);
}

.login-panel h2 {
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--tracer-ink);
}

.login-panel .subtitle {
    color: var(--tracer-muted);
    line-height: 1.8;
    font-size: 1rem;
}

/* =========================================
   ALERT
========================================= */

.alert-soft {
    border-radius: 18px;

    padding: 0.9rem 1rem;

    font-size: 0.9rem;

    border: 1px solid transparent;
}

/* .login-brand-panel h1 {
    margin: 32px 0 14px;
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0;
}

.login-brand-panel p {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.8;
}

.login-mini-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.login-mini-stat {
    padding: 1rem;
    border-radius: var(--tracer-radius);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(14px);
}

.login-mini-stat strong {
    display: block;
    font-size: 1.25rem;
}

.login-mini-stat span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
}

.login-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
    background: rgba(255, 255, 255, 0.88);
}

.login-panel h2 {
    font-weight: 800;
    color: var(--tracer-ink);
}

.login-panel .subtitle {
    color: var(--tracer-muted);
    line-height: 1.7;
}

.alert-soft {
    border-radius: var(--tracer-radius);
    padding: 0.9rem 1rem;
    font-size: 0.9rem;
    border: 1px solid transparent;
} */

.alert-soft-danger {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #9f1239;
}

.alert-soft-success {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #166534;
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.role-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 58px;
    padding: 0.9rem 1rem;
    border: 1px solid var(--tracer-line);
    border-radius: var(--tracer-radius);
    background: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    transition: all 0.2s ease;
}

.role-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.role-option i {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--tracer-blue);
    background: rgba(37, 130, 243, 0.1);
}

.role-option:has(input:checked) {
    border-color: rgba(37, 130, 243, 0.58);
    background: rgba(37, 130, 243, 0.09);
    box-shadow: 0 12px 30px rgba(37, 130, 243, 0.12);
}

.role-option:has(input:checked) i {
    color: #ffffff;
    background: linear-gradient(135deg, var(--tracer-blue), var(--tracer-cyan));
}

.form-label {
    color: var(--tracer-ink);
    font-size: 0.9rem;
    font-weight: 700;
}

.field-wrap {
    position: relative;
}

.field-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #94a3b8;
}

.auth-input {
    width: 100%;
    min-height: 52px;
    padding: 0.82rem 3rem;
    border: 1px solid var(--tracer-line);
    border-radius: var(--tracer-radius);
    background: rgba(255, 255, 255, 0.84);
    color: var(--tracer-ink);
    outline: none;
    transition: all 0.2s ease;
}

.auth-input:focus {
    border-color: rgba(37, 130, 243, 0.68);
    box-shadow: 0 0 0 4px rgba(37, 130, 243, 0.12);
    background: #ffffff;
}

.auth-input.is-invalid {
    border-color: #fb7185;
    box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.12);
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    color: #64748b;
    background: transparent;
}

.password-toggle:hover {
    color: var(--tracer-blue);
    background: rgba(37, 130, 243, 0.08);
}

.error-message {
    display: none;
    margin-top: 0.45rem;
    color: #e11d48;
    font-size: 0.82rem;
}

.error-message.show {
    display: block;
}

.remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--tracer-muted);
    font-size: 0.9rem;
}

.remember-row input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--tracer-blue);
}

.login-submit {
    display: inline-flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: 0;
    border-radius: var(--tracer-radius);
    color: #ffffff;
    background: linear-gradient(135deg, var(--tracer-blue), var(--tracer-blue-2));
    box-shadow: 0 16px 34px rgba(21, 87, 192, 0.28);
    font-weight: 800;
    transition: all 0.2s ease;
}

.login-submit:hover,
.login-submit:focus {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(21, 87, 192, 0.36);
}

/* body.sb-nav-fixed {
    --admin-sidebar-width: 260px;
    --admin-topbar-height: 64px;
    font-family: "Poppins", "Segoe UI", sans-serif;
    background:
        linear-gradient(rgba(37, 130, 243, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 130, 243, 0.055) 1px, transparent 1px),
        linear-gradient(135deg, #eef7ff 0%, #f7fbff 52%, #e9f3ff 100%);
    background-size: 44px 44px, 44px 44px, auto;
    color: var(--tracer-ink);
}

.sb-nav-fixed #layoutSidenav {
    min-height: calc(100vh - var(--admin-topbar-height));
}

.sb-nav-fixed #layoutSidenav #layoutSidenav_nav {
    width: var(--admin-sidebar-width);
    flex-basis: var(--admin-sidebar-width);
    z-index: 1040;
    transform: translateX(calc(var(--admin-sidebar-width) * -1));
}

.sb-nav-fixed #layoutSidenav #layoutSidenav_content {
    top: var(--admin-topbar-height);
    min-height: calc(100vh - var(--admin-topbar-height));
    margin-left: calc(var(--admin-sidebar-width) * -1);
    padding-left: var(--admin-sidebar-width);
}

.sb-sidenav-toggled #layoutSidenav #layoutSidenav_nav {
    transform: translateX(0);
}

.sb-sidenav-toggled #layoutSidenav #layoutSidenav_content::before {
    top: 0;
    height: 100%;
} */

body.sb-nav-fixed {
    --admin-sidebar-width: 260px;
    --admin-topbar-height: 64px;

    font-family: "Poppins", "Segoe UI", sans-serif;

    background:
        linear-gradient(rgba(37, 130, 243, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 130, 243, 0.055) 1px, transparent 1px),
        linear-gradient(135deg, #eef7ff 0%, #f7fbff 52%, #e9f3ff 100%);

    background-size: 44px 44px, 44px 44px, auto;

    color: var(--tracer-ink);
}

.sb-nav-fixed #layoutSidenav {
    min-height: calc(100vh - var(--admin-topbar-height));
}

.sb-nav-fixed #layoutSidenav #layoutSidenav_nav {
    width: var(--admin-sidebar-width);
    flex-basis: var(--admin-sidebar-width);

    z-index: 1040;

    transform: translateX(calc(var(--admin-sidebar-width) * -1));
}

.sb-nav-fixed #layoutSidenav #layoutSidenav_content {
    top: var(--admin-topbar-height);

    min-height: calc(100vh - var(--admin-topbar-height));

    margin-left: calc(var(--admin-sidebar-width) * -1);

    padding-left: var(--admin-sidebar-width);
}

.sb-sidenav-toggled #layoutSidenav #layoutSidenav_nav {
    transform: translateX(0);
}

.sb-sidenav-toggled #layoutSidenav #layoutSidenav_content::before {
    top: 0;
    height: 100%;
}

/* =========================================
   SIDEBAR BRAND
========================================= */

.sidebar-brand {

    padding: 18px 12px 20px;

    text-align: center;

    border-bottom: 1px solid rgba(255,255,255,0.08);

    margin-bottom: 10px;
}

.sidebar-brand img {

    width: 70px;
    height: 70px;

    object-fit: contain;

    margin-bottom: 14px;

    transition: all .3s ease;

    filter:
        drop-shadow(0 0 16px rgba(168,85,247,.35));
}

.sidebar-brand img:hover {

    transform: scale(1.05);
}

.sidebar-brand-title {

    font-size: 0.9rem;

    font-weight: 800;

    line-height: 1.1;

    color: #ffffff;

    margin-bottom: 6px;
}

.sidebar-brand-title span {

    color: #fb923c;
}

.sidebar-brand-subtitle {

    font-size: 0.58rem;

    color: rgba(255,255,255,0.72);

    font-weight: 500;

    letter-spacing: 1.2px;
}

.sidebar-role {

    margin-top: 10px;

    display: inline-block;

    padding: 4px 10px;

    border-radius: 999px;

    background:
        rgba(255,255,255,0.08);

    border:
        1px solid rgba(255,255,255,0.12);

    color:
        rgba(255,255,255,0.85);

    font-size: 0.68rem;

    font-weight: 600;

    letter-spacing: .5px;

    backdrop-filter: blur(10px);
}

/* =========================================
   ACTIVE MENU
========================================= */

.sb-sidenav .nav-link.active {

    background:
        linear-gradient(
            135deg,
            #7c3aed,
            #2563eb
        );

    border-radius: 12px;

    color: #ffffff !important;

    box-shadow:
        0 8px 24px rgba(124,58,237,.35);
}

@media (min-width: 992px) {
    .sb-nav-fixed #layoutSidenav #layoutSidenav_nav {
        transform: translateX(0);
    }

    .sb-nav-fixed #layoutSidenav #layoutSidenav_content {
        margin-left: 0;
        padding-left: var(--admin-sidebar-width);
    }

    .sb-sidenav-toggled #layoutSidenav #layoutSidenav_nav {
        transform: translateX(calc(var(--admin-sidebar-width) * -1));
    }

    .sb-sidenav-toggled #layoutSidenav #layoutSidenav_content {
        margin-left: calc(var(--admin-sidebar-width) * -1);
    }
}

.sb-topnav.navbar {
    min-height: var(--admin-topbar-height);
    background: rgba(8, 34, 79, 0.88) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 35px rgba(8, 34, 79, 0.22);
}

.sb-topnav .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: var(--admin-sidebar-width);
}

.sb-topnav .form-control {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--tracer-radius) 0 0 var(--tracer-radius);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.sb-topnav .form-control::placeholder {
    color: rgba(255, 255, 255, 0.62);
}

.sb-topnav .btn-primary {
    border-color: rgba(255, 255, 255, 0.16);
    background: linear-gradient(135deg, var(--tracer-blue), var(--tracer-blue-2));
}

.sb-sidenav {
    background:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(180deg, #071a42 0%, #0a2d68 100%) !important;
    background-size: 36px 36px, 36px 36px, auto !important;
    box-shadow: 14px 0 42px rgba(8, 34, 79, 0.18);
}

#layoutSidenav_content main {
    width: 100%;
    padding: 1.5rem 0 48px;
    overflow-x: hidden;
}

body.sb-nav-fixed main > .container-fluid {
    max-width: none;
    padding-left: clamp(1rem, 2vw, 1.75rem) !important;
    padding-right: clamp(1rem, 2vw, 1.75rem) !important;
}

.dashboard-hero {
    margin: 0 0 1.25rem;
    padding: 1.3rem;
    border-radius: var(--tracer-radius);
    color: #ffffff;
    background:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, #16a6d7 0%, #1557c0 62%, #08224f 100%);
    background-size: 34px 34px, 34px 34px, auto;
    box-shadow: 0 22px 55px rgba(8, 34, 79, 0.18);
}

.dashboard-hero h1 {
    font-size: clamp(1.9rem, 3.8vw, 2.5rem);
    font-weight: 800;
    letter-spacing: 0;
}

.dashboard-hero p {
    color: rgba(255, 255, 255, 0.76);
}

.metric-card,
.chart-card,
.admin-glass-card,
body.sb-nav-fixed .card {
    border: 1px solid rgba(255, 255, 255, 0.78) !important;
    border-radius: var(--tracer-radius) !important;
    background: rgba(255, 255, 255, 0.82) !important;
    box-shadow: 0 18px 44px rgba(8, 34, 79, 0.1);
    backdrop-filter: blur(18px);
}

.metric-card {
    position: relative;
    overflow: hidden;
    height: 100%;
    padding: 1.15rem;
}

.metric-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--tracer-blue), var(--tracer-cyan));
}

.metric-label {
    color: var(--tracer-muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.metric-value {
    color: var(--tracer-ink);
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    font-weight: 800;
    line-height: 1;
}

.metric-icon {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: var(--tracer-radius);
    color: #ffffff;
    background: linear-gradient(135deg, var(--tracer-blue), var(--tracer-cyan));
    box-shadow: 0 12px 26px rgba(37, 130, 243, 0.22);
}

body.sb-nav-fixed .card-header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--tracer-radius) var(--tracer-radius) 0 0 !important;
    background: rgba(248, 250, 252, 0.78) !important;
    color: var(--tracer-ink);
    font-weight: 800;
}

body.sb-nav-fixed .table {
    margin-bottom: 0;
}

body.sb-nav-fixed .table thead th {
    background: linear-gradient(135deg, var(--tracer-blue), var(--tracer-blue-2)) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    vertical-align: middle;
}

body.sb-nav-fixed .table tbody td {
    color: #334155;
    vertical-align: middle;
}

body.sb-nav-fixed .breadcrumb {
    display: none;
}

body.sb-nav-fixed main h1 {
    color: var(--tracer-ink);
    font-size: clamp(1.9rem, 4vw, 2.65rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: 0;
    margin-bottom: 1rem;
    overflow-wrap: anywhere;
}

body.sb-nav-fixed .card-header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
}

/* =========================================
   TABLE SUMMARY ROW
========================================= */

.table-summary-row {
    background-color: #e8edf5 !important;
    border-top: 2px solid rgba(21, 87, 192, 0.2);
}

.table-summary-row td {
    color: var(--tracer-ink) !important;
    font-weight: 700;
}

body.sb-nav-fixed .card-header .fs-5 {
    font-size: clamp(1rem, 2.4vw, 1.25rem) !important;
    font-weight: 800;
    line-height: 1.3;
}

body.sb-nav-fixed .card-body {
    min-width: 0;
}

body.sb-nav-fixed .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

body.sb-nav-fixed .dataTables_wrapper {
    width: 100%;
}

body.sb-nav-fixed .dataTables_wrapper .row,
body.sb-nav-fixed div.dataTables_wrapper div.dataTables_length,
body.sb-nav-fixed div.dataTables_wrapper div.dataTables_filter,
body.sb-nav-fixed div.dataTables_wrapper div.dataTables_info,
body.sb-nav-fixed div.dataTables_wrapper div.dataTables_paginate {
    max-width: 100%;
}

body.sb-nav-fixed div.dataTables_wrapper div.dataTables_filter input {
    max-width: min(100%, 240px);
}

body.sb-nav-fixed .alert {
    border-radius: var(--tracer-radius);
}

/* @media (max-width: 991.98px) {
    body.sb-nav-fixed {
        --admin-sidebar-width: 250px;
        --admin-topbar-height: 64px;
    }

    .sb-topnav .navbar-brand {
        width: auto;
        min-width: 0;
        padding-left: 0.75rem;
    }

    .sb-topnav .navbar-brand .brand-title {
        font-size: 1rem;
    }

    .sb-topnav .form-inline {
        display: none !important;
    }

    .sb-nav-fixed #layoutSidenav #layoutSidenav_content {
        padding-left: var(--admin-sidebar-width);
    }
}

@media (max-width: 575.98px) {
    body.sb-nav-fixed {
        --admin-sidebar-width: 240px;
    }

    #layoutSidenav_content main {
        padding-top: 1rem;
    }

    body.sb-nav-fixed main > .container-fluid {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    body.sb-nav-fixed .card-header {
        align-items: flex-start;
    }

    body.sb-nav-fixed .card-header .btn {
        width: 100%;
    }

    body.sb-nav-fixed div.dataTables_wrapper div.dataTables_length,
    body.sb-nav-fixed div.dataTables_wrapper div.dataTables_filter,
    body.sb-nav-fixed div.dataTables_wrapper div.dataTables_info,
    body.sb-nav-fixed div.dataTables_wrapper div.dataTables_paginate {
        float: none;
        text-align: left;
    }

    body.sb-nav-fixed div.dataTables_wrapper div.dataTables_filter label,
    body.sb-nav-fixed div.dataTables_wrapper div.dataTables_filter input {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 991.98px) {
    .landing-navbar .navbar-collapse {
        margin-top: 1rem;
        padding: 0.85rem;
        border-radius: var(--tracer-radius);
        background: rgba(8, 34, 79, 0.92);
        border: 1px solid rgba(255, 255, 255, 0.12);
    }

    .hero-section {
        padding-top: 108px;
    }

    .hero-stat-grid,
    .glass-info-row {
        grid-template-columns: 1fr;
    }

    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-brand-panel {
        min-height: auto;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding-bottom: 72px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .login-brand-panel,
    .login-panel {
        padding: 28px;
    }

    .role-grid,
    .login-mini-stats {
        grid-template-columns: 1fr;
    }
} */

/* =========================================
   RESPONSIVE DESIGN
========================================= */

/* =========================================
   LARGE TABLET
========================================= */
@media (max-width: 1199.98px) {

    .login-shell {
        width: min(1000px, 100%);
    }

    .login-brand-panel,
    .login-panel {
        padding: 42px;
    }

    .login-brand-panel h1 {
        font-size: clamp(2rem, 4vw, 3.4rem);
    }
}

/* =========================================
   TABLET
========================================= */
@media (max-width: 991.98px) {

    body.sb-nav-fixed {
        --admin-sidebar-width: 250px;
        --admin-topbar-height: 64px;
    }

    /* TOPBAR */
    .sb-topnav .navbar-brand {
        width: auto;
        min-width: 0;
        padding-left: 0.75rem;
    }

    .sb-topnav .navbar-brand .brand-title {
        font-size: 1rem;
    }

    .sb-topnav .form-inline {
        display: none !important;
    }

    .sb-nav-fixed #layoutSidenav #layoutSidenav_content {
        padding-left: var(--admin-sidebar-width);
    }

    /* LANDING */
    .landing-navbar .navbar-collapse {
        margin-top: 1rem;
        padding: 0.85rem;
        border-radius: var(--tracer-radius);

        background: rgba(8, 34, 79, 0.92);

        border: 1px solid rgba(255, 255, 255, 0.12);
    }

    .hero-section {
        padding-top: 110px;
        padding-bottom: 80px;
    }

    .hero-stat-grid,
    .glass-info-row {
        grid-template-columns: 1fr;
    }

    /* LOGIN */
    .login-shell {
        width: min(700px, 100%);
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .login-brand-panel {
        min-height: auto;
        padding: 42px;
    }

    .login-panel {
        padding: 42px;
    }

    .login-brand-panel h1 {
        font-size: 2.8rem;
    }

    .login-panel h2 {
        font-size: 2rem;
    }

    .login-mini-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================
   MOBILE
========================================= */
@media (max-width: 767.98px) {

    .auth-page {
        padding: 18px;
        align-items: flex-start;
    }

    .login-shell {
        width: 100%;

        grid-template-columns: 1fr;

        min-height: auto !important;

        margin-top: 12px;
        margin-bottom: 12px;

        border-radius: 22px;
    }

    .login-brand-panel,
    .login-panel {
        padding: 30px;
    }

    .login-brand-panel {
        min-height: auto;
    }

    .login-brand-panel h1 {
        font-size: 2.2rem;
        line-height: 1.15;

        margin-top: 24px;
        margin-bottom: 14px;
    }

    .login-brand-panel p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .login-panel h2 {
        font-size: 1.9rem;
        line-height: 1.2;
    }

    .login-panel .subtitle {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    /* MINI CARD */
    .login-mini-stats {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 24px;
    }

    .login-mini-stat {
        padding: 16px;
    }

    .login-mini-stat strong {
        font-size: 1.1rem;
    }

    .login-mini-stat span {
        font-size: 0.82rem;
    }

    /* ROLE */
    .role-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .role-option {
        min-height: 62px;
    }

    /* INPUT */
    .auth-input {
        height: 54px;
        font-size: 0.95rem;
    }

    /* BUTTON */
    .login-submit {
        width: 100%;
        height: 56px;
        font-size: 1rem;
    }

    /* LOGO */
    .login-logo-wrap {
        width: 78px;
        height: 78px;
    }

    .login-logo-wrap img {
        width: 58px;
        height: 58px;
    }

    /* HERO */
    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }
}

/* =========================================
   SMALL MOBILE
========================================= */
@media (max-width: 575.98px) {

    body.sb-nav-fixed {
        --admin-sidebar-width: 240px;
    }

    /* CONTENT */
    #layoutSidenav_content main {
        padding-top: 1rem;
    }

    body.sb-nav-fixed main > .container-fluid {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    /* CARD */
    body.sb-nav-fixed .card-header {
        align-items: flex-start;
        gap: 10px;
    }

    body.sb-nav-fixed .card-header .btn {
        width: 100%;
    }

    /* DATATABLE */
    body.sb-nav-fixed div.dataTables_wrapper div.dataTables_length,
    body.sb-nav-fixed div.dataTables_wrapper div.dataTables_filter,
    body.sb-nav-fixed div.dataTables_wrapper div.dataTables_info,
    body.sb-nav-fixed div.dataTables_wrapper div.dataTables_paginate {
        float: none;
        text-align: left;
    }

    body.sb-nav-fixed div.dataTables_wrapper div.dataTables_filter label,
    body.sb-nav-fixed div.dataTables_wrapper div.dataTables_filter input {
        width: 100%;
        margin-left: 0;
    }

    /* HERO */
    .hero-section {
        padding-top: 100px;
        padding-bottom: 70px;
    }

    /* LOGIN */
    .auth-page {
        padding: 14px;
    }

    .login-shell {
        border-radius: 20px;
    }

    .login-brand-panel,
    .login-panel {
        padding: 24px;
    }

    .login-brand-panel h1 {
        font-size: 2rem;
    }

    .login-brand-panel p {
        font-size: 0.9rem;
    }

    .login-panel h2 {
        font-size: 1.6rem;
    }

    .login-panel .subtitle {
        font-size: 0.9rem;
    }

    .login-logo-wrap {
        width: 72px;
        height: 72px;
    }

    .login-logo-wrap img {
        width: 52px;
        height: 52px;
    }

    .login-mini-stats,
    .role-grid {
        grid-template-columns: 1fr;
    }

    .login-mini-stat {
        padding: 14px;
    }

    .login-submit {
        width: 100%;
    }
}

/* =========================================
   EXTRA SMALL DEVICE
========================================= */
@media (max-width: 420px) {

    .auth-page {
        padding: 10px;
    }

    .login-shell {
        border-radius: 18px;
    }

    .login-brand-panel,
    .login-panel {
        padding: 20px;
    }

    .login-brand-panel h1 {
        font-size: 1.75rem;
        line-height: 1.15;
    }

    .login-brand-panel p,
    .login-panel .subtitle {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .login-panel h2 {
        font-size: 1.45rem;
        line-height: 1.2;
    }

    .login-mini-stat strong {
        font-size: 1rem;
    }

    .login-mini-stat span {
        font-size: 0.74rem;
    }

    .auth-input {
        height: 50px;
        font-size: 0.9rem;
    }

    .login-submit {
        height: 52px;
        font-size: 0.95rem;
    }

    .role-option {
        min-height: 56px;
        padding: 12px;
    }

    .login-logo-wrap {
        width: 66px;
        height: 66px;
    }

    .login-logo-wrap img {
        width: 48px;
        height: 48px;
    }
}

/* WhatsApp Tooltip */
.wa-tooltip {
    position: absolute;
    right: 58px;
    background: #ffffff;
    color: #111827;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateX(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.wa-float:hover .wa-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Glow pulse animation */
@keyframes wa-glow {
    0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45); }
    50%       { box-shadow: 0 8px 32px rgba(37, 211, 102, 0.75), 0 0 0 10px rgba(37, 211, 102, 0.12); }
}

.wa-float {
    animation: wa-glow 2.5s ease-in-out infinite;
}

.wa-float:hover {
    animation: none;
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.75), 0 0 0 12px rgba(37, 211, 102, 0.15);
}


/* =====================================================
   ADMIN BUTTON CONSISTENCY — scoped ke .sb-nav-fixed
   Hanya berlaku di halaman admin, tidak merusak landing page
   ===================================================== */

/* ── Base tombol aksi di tabel ── */
body.sb-nav-fixed .btn-sm {
    border-radius: 6px !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    padding: 0.3rem 0.65rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
    transition: all 0.18s ease !important;
    border: none !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08) !important;
}

body.sb-nav-fixed .btn-sm:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* ── Edit / Warning → Amber soft ── */
body.sb-nav-fixed .btn-warning,
body.sb-nav-fixed .btn-sm.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #fbbf24) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(245,158,11,0.3) !important;
}
body.sb-nav-fixed .btn-warning:hover {
    background: linear-gradient(135deg, #d97706, #f59e0b) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(245,158,11,0.4) !important;
}

/* ── Hapus / Danger → Merah soft ── */
body.sb-nav-fixed .btn-danger,
body.sb-nav-fixed .btn-sm.btn-danger {
    background: linear-gradient(135deg, #ef4444, #f87171) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(239,68,68,0.3) !important;
}
body.sb-nav-fixed .btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #ef4444) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(239,68,68,0.4) !important;
}

/* ── Detail / Info → Biru soft ── */
body.sb-nav-fixed .btn-info,
body.sb-nav-fixed .btn-sm.btn-info {
    background: linear-gradient(135deg, #0891b2, #22d3ee) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(8,145,178,0.3) !important;
}
body.sb-nav-fixed .btn-info:hover {
    background: linear-gradient(135deg, #0e7490, #0891b2) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(8,145,178,0.4) !important;
}

/* ── Tambah / Success → Hijau solid ── */
body.sb-nav-fixed .btn-success,
body.sb-nav-fixed .btn-sm.btn-success {
    background: linear-gradient(135deg, #059669, #34d399) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(5,150,105,0.3) !important;
}
body.sb-nav-fixed .btn-success:hover {
    background: linear-gradient(135deg, #047857, #059669) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(5,150,105,0.4) !important;
}

/* ── Arsip / Secondary → Abu soft ── */
body.sb-nav-fixed .btn-secondary,
body.sb-nav-fixed .btn-sm.btn-secondary {
    background: linear-gradient(135deg, #64748b, #94a3b8) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(100,116,139,0.25) !important;
}
body.sb-nav-fixed .btn-secondary:hover {
    background: linear-gradient(135deg, #475569, #64748b) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(100,116,139,0.35) !important;
}

/* ── Primary → Biru utama ── */
body.sb-nav-fixed .btn-primary,
body.sb-nav-fixed .btn-sm.btn-primary {
    background: linear-gradient(135deg, #1557c0, #2582f3) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(21,87,192,0.3) !important;
}
body.sb-nav-fixed .btn-primary:hover {
    background: linear-gradient(135deg, #0f3f8c, #1557c0) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(21,87,192,0.4) !important;
}

/* ── Kembali / Outline secondary ── */
body.sb-nav-fixed .btn-outline-secondary {
    background: transparent !important;
    border: 1.5px solid #94a3b8 !important;
    color: #475569 !important;
    box-shadow: none !important;
}
body.sb-nav-fixed .btn-outline-secondary:hover {
    background: #f1f5f9 !important;
    border-color: #64748b !important;
    color: #1e293b !important;
    transform: translateY(-1px) !important;
}

/* ── Tombol non-sm (Tambah, Export, Import di header tabel) ── */
body.sb-nav-fixed .btn:not(.btn-sm):not(.btn-close):not(.navbar-toggler) {
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.18s ease !important;
}

/* ── Badge status konsisten ── */
body.sb-nav-fixed .badge {
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    padding: 0.35em 0.65em !important;
    border-radius: 6px !important;
}

/* ── Override badge dashboard hero ── */
body.sb-nav-fixed .dashboard-hero .badge {
    font-size: 0.9rem !important;
    padding: 0.55em 1.1em !important;
    border-radius: 999px !important;
}

/* ── Fix footer admin agar selalu di bawah ── */
body.sb-nav-fixed #layoutSidenav_content {
    display: flex !important;
    flex-direction: column !important;
    min-height: calc(100vh - var(--admin-topbar-height, 64px)) !important;
}

body.sb-nav-fixed #layoutSidenav_content main {
    flex: 1 !important;
}


/* =========================================
   HERO INTERACTIVE HOVER EFFECTS
========================================= */

/* Stat cards hover */
.hero-stat--hover {
    cursor: default;
    transition: transform 0.25s ease, background 0.25s ease,
                border-color 0.25s ease, box-shadow 0.25s ease;
}

.hero-stat--hover:hover {
    transform: translateY(-6px) scale(1.03);
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(98, 217, 255, 0.45);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22),
                0 0 0 1px rgba(98, 217, 255, 0.3);
}

.hero-stat--hover:active {
    transform: translateY(-2px) scale(1.01);
}

/* Hero visual card hover */
.hero-visual {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-visual:hover {
    transform: translateY(-8px);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.32),
                0 0 0 1px rgba(255, 255, 255, 0.28);
}

/* Hero visual note hover */
.hero-visual-note {
    transition: transform 0.25s ease, background 0.25s ease;
}

.hero-visual:hover .hero-visual-note {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.96);
}

/* Hero badge hover */
.hero-badge {
    transition: transform 0.2s ease, background 0.2s ease,
                border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
}

.hero-badge:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(98, 217, 255, 0.5);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Button active (click) press effect */
.btn-blue-glow:active {
    transform: translateY(0px) scale(0.97);
    box-shadow: 0 8px 20px rgba(98, 217, 255, 0.2);
}

.btn-outline-glass:active {
    transform: translateY(0px) scale(0.97);
    background: rgba(255, 255, 255, 0.25);
}

/* Ripple effect on buttons */
.btn-blue-glow,
.btn-outline-glass {
    position: relative;
    overflow: hidden;
}

.btn-blue-glow::after,
.btn-outline-glass::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.35) 0%, transparent 65%);
    opacity: 0;
    transform: scale(0);
    transition: transform 0.4s ease, opacity 0.4s ease;
    pointer-events: none;
}

.btn-blue-glow:active::after,
.btn-outline-glass:active::after {
    opacity: 1;
    transform: scale(2.5);
    transition: 0s;
}


/* =========================================
   ABOUT SECTION HOVER EFFECTS
========================================= */

/* Glass info cards hover */
.glass-info--hover {
    transition: transform 0.25s ease, box-shadow 0.25s ease,
                border-color 0.25s ease, background 0.25s ease;
    cursor: default;
}

.glass-info--hover:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(37, 130, 243, 0.28);
    box-shadow: 0 20px 50px rgba(8, 34, 79, 0.14);
}

.glass-info--hover:hover i {
    color: var(--tracer-blue-2);
    transform: scale(1.15);
    transition: transform 0.25s ease, color 0.25s ease;
}

.glass-info--hover i {
    transition: transform 0.25s ease, color 0.25s ease;
}

.glass-info--hover:active {
    transform: translateY(-2px);
}

/* About visual image hover */
.about-visual--hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.about-visual--hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 80px rgba(8, 34, 79, 0.18);
}

.about-visual--hover img {
    transition: transform 0.4s ease;
}

.about-visual--hover:hover img {
    transform: scale(1.04);
}

/* Section kicker badge hover */
.section-kicker {
    transition: transform 0.2s ease, background 0.2s ease,
                border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
}

.section-kicker:hover {
    transform: translateY(-2px);
    background: rgba(37, 130, 243, 0.16);
    border-color: rgba(37, 130, 243, 0.28);
    box-shadow: 0 8px 20px rgba(37, 130, 243, 0.12);
}


/* =========================================
   ADMIN TABLE — ENHANCED STYLING
========================================= */

/* Wrapper scroll */
body.sb-nav-fixed .table-responsive {
    border-radius: var(--tracer-radius);
    overflow-x: auto;
    box-shadow: 0 4px 20px rgba(8, 34, 79, 0.07);
}

/* Base table reset */
body.sb-nav-fixed .table {
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
    font-size: 0.875rem;
}

/* ── HEADER ── */
body.sb-nav-fixed .table thead tr th {
    padding: 0.85rem 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--tracer-blue) 0%, var(--tracer-blue-2) 100%) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    white-space: nowrap;
    vertical-align: middle;
    position: relative;
}

/* Separator antar kolom header */
body.sb-nav-fixed .table thead tr th:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(255, 255, 255, 0.25);
}

/* Rounded corners header */
body.sb-nav-fixed .table thead tr th:first-child {
    border-radius: var(--tracer-radius) 0 0 0;
}
body.sb-nav-fixed .table thead tr th:last-child {
    border-radius: 0 var(--tracer-radius) 0 0;
}

/* DataTables sort icons warna putih */
body.sb-nav-fixed .table thead .sorting::before,
body.sb-nav-fixed .table thead .sorting::after,
body.sb-nav-fixed .table thead .sorting_asc::before,
body.sb-nav-fixed .table thead .sorting_asc::after,
body.sb-nav-fixed .table thead .sorting_desc::before,
body.sb-nav-fixed .table thead .sorting_desc::after {
    color: rgba(255, 255, 255, 0.7) !important;
    opacity: 1 !important;
}

/* ── BODY ROWS ── */
body.sb-nav-fixed .table tbody tr td {
    padding: 0.78rem 1rem;
    color: #334155;
    vertical-align: middle;
    border-color: rgba(148, 163, 184, 0.15) !important;
    transition: background 0.18s ease, color 0.18s ease;
}

/* Zebra stripe — lebih subtle */
body.sb-nav-fixed .table-striped tbody tr:nth-of-type(odd) td {
    background-color: rgba(37, 130, 243, 0.03) !important;
}
body.sb-nav-fixed .table-striped tbody tr:nth-of-type(even) td {
    background-color: rgba(255, 255, 255, 0.7) !important;
}

/* Row hover highlight */
body.sb-nav-fixed .table tbody tr:hover td {
    background-color: rgba(37, 130, 243, 0.08) !important;
    color: var(--tracer-ink);
}

/* Rounded corners last row */
body.sb-nav-fixed .table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 var(--tracer-radius);
}
body.sb-nav-fixed .table tbody tr:last-child td:last-child {
    border-radius: 0 0 var(--tracer-radius) 0;
}

/* ── ACTION BUTTONS IN TABLE ── */
body.sb-nav-fixed .table .btn-sm {
    padding: 0.3rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    border: none;
}

body.sb-nav-fixed .table .btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    filter: brightness(1.08);
}

body.sb-nav-fixed .table .btn-sm:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Warna tombol aksi lebih vivid */
body.sb-nav-fixed .table .btn-warning {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #ffffff !important;
}
body.sb-nav-fixed .table .btn-danger {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: #ffffff !important;
}
body.sb-nav-fixed .table .btn-secondary {
    background: linear-gradient(135deg, #64748b, #94a3b8);
    color: #ffffff !important;
}
body.sb-nav-fixed .table .btn-info {
    background: linear-gradient(135deg, var(--tracer-blue-2), var(--tracer-cyan));
    color: #ffffff !important;
}
body.sb-nav-fixed .table .btn-success {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: #ffffff !important;
}
body.sb-nav-fixed .table .btn-primary {
    background: linear-gradient(135deg, var(--tracer-blue), var(--tracer-blue-2));
    color: #ffffff !important;
}

/* ── DATATABLES CONTROLS ── */

/* Length & filter wrapper */
body.sb-nav-fixed .dataTables_wrapper .dataTables_length label,
body.sb-nav-fixed .dataTables_wrapper .dataTables_filter label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tracer-muted);
}

body.sb-nav-fixed .dataTables_wrapper .dataTables_length select,
body.sb-nav-fixed .dataTables_wrapper .dataTables_filter input {
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 8px;
    padding: 0.35rem 0.65rem;
    font-size: 0.85rem;
    color: var(--tracer-ink);
    background: rgba(255, 255, 255, 0.9);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.sb-nav-fixed .dataTables_wrapper .dataTables_filter input:focus {
    outline: none;
    border-color: rgba(37, 130, 243, 0.55);
    box-shadow: 0 0 0 3px rgba(37, 130, 243, 0.1);
}

/* Pagination */
body.sb-nav-fixed .dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 8px !important;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem !important;
    margin: 0 2px;
    border: 1px solid transparent !important;
    transition: all 0.18s ease;
}

body.sb-nav-fixed .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(37, 130, 243, 0.1) !important;
    border-color: rgba(37, 130, 243, 0.25) !important;
    color: var(--tracer-blue) !important;
}

body.sb-nav-fixed .dataTables_wrapper .dataTables_paginate .paginate_button.current,
body.sb-nav-fixed .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: linear-gradient(135deg, var(--tracer-blue), var(--tracer-blue-2)) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(21, 87, 192, 0.3);
}

body.sb-nav-fixed .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
body.sb-nav-fixed .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    color: #cbd5e1 !important;
    cursor: not-allowed;
}

/* Info text */
body.sb-nav-fixed .dataTables_wrapper .dataTables_info {
    font-size: 0.82rem;
    color: var(--tracer-muted);
    padding-top: 0.6rem;
}

/* Processing overlay */
body.sb-nav-fixed .dataTables_wrapper .dataTables_processing {
    border-radius: var(--tracer-radius);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(37, 130, 243, 0.2);
    color: var(--tracer-blue);
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(8, 34, 79, 0.12);
}


/* =========================================
   ADMIN TABLE — OUTER BORDER (GACOR)
========================================= */

body.sb-nav-fixed .table-responsive {
    border-radius: var(--tracer-radius);
    box-shadow:
        0 8px 28px rgba(8, 34, 79, 0.1);
}

/* Border di card yang membungkus header + table */
body.sb-nav-fixed .card {
    border: 2px solid rgba(21, 87, 192, 0.748) !important;
    box-shadow:
        0 0 0 1px rgba(98, 217, 255, 0.12),
        0 8px 28px rgba(8, 34, 79, 0.1) !important;
}
