@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Playfair+Display:ital,wght@0,400;1,400&display=swap");
:root {
    --putih: #ffffff;
    --hitam: #000000;
    --blue: #1a56db;
    --blue-dark: #1341b0;
    --blue-light: #d5eeff94;
    --blue-soft: #f0f7ff;
    /* --biru: #385d8d; */
    /* --biru: #669dc1; */
    --biru: #035f9c;
    --biru-dark: #123b5d; /* --biru: #5692ba; */
    --green: #1f6d8c;
    --green-soft: #f0f7ff;
    --text: #1e293b;
    --muted: #64748b;
    --border: #e2e8f0;
    --bg: #f0f6ff;
}
body {
    font-family: "Plus Jakarta Sans", sans-serif;
}

/* ── Page wrapper ── */
.show-page {
    max-width: 1400px;
    margin: 0 auto;

    padding: 2.5rem 2rem 4rem;
}

/* ── Breadcrumb ── */
.show-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #64748b;

    margin-top: 1.5rem;
    margin-bottom: 1rem;

    padding-bottom: 0.75rem;
    /* border-bottom: 1px solid #f1f5f9; */
}
.show-breadcrumb a {
    color: var(--biru);
    text-decoration: none;
    font-weight: 500;
}
.show-breadcrumb a:hover {
    text-decoration: underline;
}
.show-breadcrumb i {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* ── Tab bar ── */
.show-tabbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f8fafc;
}
.show-tabs {
    display: inline-flex;
    background: #f8fafc;
    border-radius: 12px;
    padding: 0.5rem;
    gap: 0.5rem;
}
.show-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    border: none;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
}
.show-tab:hover {
    color: #1e293b;
}
.show-tab.active {
    background: #fff;
    color: var(--biru);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.show-interp-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s;
}
.show-interp-btn:hover {
    border-color: var(--biru);
    color: var(--biru);
}

/* ── Sidebar ── */
.show-sidebar {
    width: 320px;
    flex-shrink: 0;
    height: fit-content;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 2rem;
}
.sidebar-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f8fafc;
}
.sidebar-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
}
.filter-group {
    margin-bottom: 1.75rem;
}
.filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--biru);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 0.5rem;
}
.filter-options::-webkit-scrollbar {
    width: 4px;
}
.filter-options::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 2px;
}
.filter-empty {
    color: #94a3b8;
    font-size: 0.875rem;
    font-style: italic;
}

/* filter label rows — Tailwind-compatible */
.filter-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
}
.filter-options label:hover {
    background: #f0f9ff;
    color: var(--biru);
}
.filter-options input[type="checkbox"],
.filter-options input[type="radio"] {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--biru);
    cursor: pointer;
    flex-shrink: 0;
}

.sidebar-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.btn-apply {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    border: none;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}
.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4);
}
.btn-pulse {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 70%
    );
    animation: pulse-shine 2.5s ease infinite;
}
@keyframes pulse-shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}
.btn-reset {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    border-radius: 16px;
    background: #fef2f2;
    color: #dc2626;
    border: 2px solid #fecaca;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-reset:hover {
    background: #fee2e2;
}

/* ── Table ── */
.show-hidden {
    display: none !important;
}
.show-table-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f8fafc;
}
.table-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}
.table-actions {
    display: flex;
    gap: 0.5rem;
}
.dl-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}
.dl-btn.primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.dl-btn.primary:hover {
    transform: translateY(-1px);
}
.show-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.data-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 700;
    color: var(--biru);
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
}
.data-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f8fafc;
}
.data-table tr:hover td {
    background: #f8fafc;
}
.table-empty {
    text-align: center;
    padding: 3rem;
    color: #94a3b8;
    font-style: italic;
}

/* ── Section separator (untuk interpretasi) ── */
.section-separator {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
}
.sep-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #e2e8f0, transparent);
}
.sep-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.4rem 1rem;
    background: white;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .show-page {
        padding: 1.5rem 1rem 3rem;
    }
    .show-tabbar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    .show-sidebar {
        width: 100%;
        position: static;
    }
}

@media (max-width: 1023px) {
    .filter-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 40;

        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .filter-overlay.show {
        opacity: 1;
        pointer-events: auto;
    }

    .filter-sheet {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;

        z-index: 50;

        background: white;

        border-radius: 24px 24px 0 0;

        padding: 1.25rem;

        max-height: 82vh;
        overflow-y: auto;

        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.12);

        transform: translateY(105%);
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .filter-sheet.show {
        transform: translateY(0);
    }
}

@media (min-width: 1024px) {
    .filter-overlay {
        display: none !important;
    }

    .filter-sheet {
        position: sticky !important;
        top: 100px;

        transform: none !important;

        width: 320px;
        max-height: calc(100vh - 120px);

        overflow-y: auto;

        border-radius: 24px;
        border: 1px solid #e5e7eb;

        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);

        padding: 1.5rem;

        background: white;
    }
}
