/* Root Variable */
:root {
    --primary: #0f766e;
    --primary-dark: #115e59;
    --primary-light: #ccfbf1;
    --secondary: #16a34a;

    --dark: #0f172a;
    --muted: #64748b;
    --light: #f8fafc;
    --border: #e2e8f0;
    --white: #ffffff;
}

/* Global */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--dark);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(20, 184, 166, .12), transparent 30%),
        radial-gradient(circle at top right, rgba(34, 197, 94, .12), transparent 28%),
        var(--light);
}

/* Navbar */
.navbar-modern {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, .9);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--dark) !important;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -.3px;
}

.brand-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    padding: 5px;
    border-radius: 14px;
    background: var(--white);
    border: 1px solid rgba(15, 118, 110, .12);
    box-shadow: 0 8px 20px rgba(15, 118, 110, .18);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-title {
    font-size: 1.08rem;
    font-weight: 800;
}

.brand-subtitle {
    font-size: .74rem;
    color: var(--muted);
    font-weight: 500;
}

/* Navbar Menu */
.navbar-nav .nav-link {
    color: #334155 !important;
    font-size: .92rem;
    font-weight: 700;
    padding: 10px 16px !important;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, .95);
    background: rgba(255, 255, 255, .76);
    transition: all .25s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-dark) !important;
    background: #ecfdf5;
    border-color: rgba(15, 118, 110, .28);
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    color: var(--white) !important;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    box-shadow: 0 10px 22px rgba(15, 118, 110, .24);
}

/* Mobile Button */
.navbar-toggler {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--white);
    box-shadow: 0 8px 20px rgba(15, 23, 42, .08) !important;
}

.navbar-toggler:focus {
    box-shadow: 0 8px 20px rgba(15, 23, 42, .08) !important;
}

.navbar-toggler-box {
    width: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.navbar-toggler-box span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--dark);
    border-radius: 999px;
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    border-radius: 0 0 42px 42px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 20px 45px rgba(15, 118, 110, .22);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, .24), transparent 30%),
        radial-gradient(circle at bottom right, rgba(255, 255, 255, .18), transparent 25%);
    pointer-events: none;
}

.hero > * {
    position: relative;
    z-index: 2;
}

/* Card */
.card {
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(226, 232, 240, .9);
    box-shadow: 0 14px 35px rgba(15, 23, 42, .07);
}

.card:hover {
    transform: translateY(-2px);
    transition: .25s ease;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .10);
}

/* Button */
.btn {
    border-radius: 999px;
    font-weight: 600;
    padding: 10px 18px;
}

.btn-success,
.btn-primary {
    border: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.btn-success:hover,
.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #15803d);
}

/* Statistic Box */
.stat-box {
    padding: 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(226, 232, 240, .9);
    box-shadow: 0 14px 35px rgba(15, 23, 42, .07);
}

/* Foto Realisasi */
.foto-realisasi {
    width: 100px;
    height: 72px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
}

/* Back To Top */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 28px;
    z-index: 9999;

    width: 54px;
    height: 54px;
    display: none;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;
    cursor: pointer;

    background: conic-gradient(var(--primary) 0deg, #e2e8f0 0deg);
    box-shadow: 0 14px 35px rgba(15, 23, 42, .22);
    transition: all .25s ease;
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, .28);
}

.back-to-top-inner {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--primary-dark);
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;

    border-radius: 50%;
    background: var(--white);
}

.back-to-top.loading .arrow-top {
    display: none;
}

.back-to-top.loading .back-to-top-inner::after {
    content: "";
    width: 20px;
    height: 20px;
    border: 3px solid #ccfbf1;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spinTop .75s linear infinite;
}

@keyframes spinTop {
    to {
        transform: rotate(360deg);
    }
}

/* Footer */
.footer-modern {
    background: var(--white);
    border-top: 1px solid var(--border);
}

.footer-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    padding: 4px;
    border-radius: 12px;
    background: var(--light);
    border: 1px solid var(--border);
}

.footer-link {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
}

.footer-link:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 991px) {
    .navbar-collapse {
        margin-top: 14px;
        padding: 14px;
        border-radius: 20px;
        background: var(--white);
        border: 1px solid var(--border);
        box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
    }

    .navbar-nav .nav-link {
        margin-bottom: 8px;
        border-radius: 14px;
    }

    .brand-subtitle {
        display: none;
    }
}

/* Print */
@media print {
    .navbar,
    footer,
    .no-print {
        display: none !important;
    }

    body {
        background: var(--white);
    }

    .card,
    .stat-box {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}