/* Public Metabase dashboard browser + landing promotion */

:root {
    --dashboard-green: #01563b;
    --dashboard-surface: #f7f8f6;
    --dashboard-ink: #0f172a;
    --dashboard-muted: #5b6572;
    --dashboard-border: #e2e6e2;
}

/* ── Landing promotion ─────────────────────────────────────────── */
.dashboard-promo {
    padding: 4.5rem 0;
    background: var(--dashboard-surface);
}

.dashboard-promo-visual {
    width: min(100%, 31rem);
    aspect-ratio: 16 / 11;
    margin-left: auto;
    overflow: hidden;
    border: 1px solid var(--dashboard-border);
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
}

.dashboard-promo-toolbar {
    height: 14%;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0 1rem;
    border-bottom: 1px solid var(--dashboard-border);
}

.dashboard-promo-logo {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.3rem;
    background: var(--dashboard-green);
}

.dashboard-promo-heading,
.dashboard-promo-actions,
.dashboard-promo-chart-head span,
.dashboard-promo-chart-head i {
    display: block;
    height: 0.42rem;
    border-radius: 1rem;
    background: #dfe5e1;
}

.dashboard-promo-heading {
    width: 28%;
}

.dashboard-promo-actions {
    width: 10%;
    margin-left: auto;
}

.dashboard-promo-body {
    height: 86%;
    display: flex;
}

.dashboard-promo-sidebar {
    width: 13%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding-top: 1rem;
    background: #f5f7f5;
}

.dashboard-promo-sidebar span {
    width: 1.25rem;
    height: 0.32rem;
    border-radius: 1rem;
    background: #cdd5d0;
}

.dashboard-promo-sidebar .active {
    height: 1.25rem;
    border-radius: 0.35rem;
    background: var(--dashboard-green);
}

.dashboard-promo-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 0.8rem;
}

.dashboard-promo-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
}

.dashboard-promo-summary > span {
    min-width: 0;
    padding: 0.55rem;
    border: 1px solid var(--dashboard-border);
    border-radius: 0.6rem;
}

.dashboard-promo-summary b,
.dashboard-promo-summary i {
    display: block;
    border-radius: 1rem;
}

.dashboard-promo-summary b {
    width: 42%;
    height: 0.65rem;
    background: var(--dashboard-green);
}

.dashboard-promo-summary i {
    width: 70%;
    height: 0.32rem;
    margin-top: 0.45rem;
    background: #dfe5e1;
}

.dashboard-promo-charts {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr);
    gap: 0.55rem;
}

.dashboard-promo-chart,
.dashboard-promo-donut {
    min-width: 0;
    border: 1px solid var(--dashboard-border);
    border-radius: 0.6rem;
    background: #ffffff;
}

.dashboard-promo-chart {
    display: flex;
    flex-direction: column;
    padding: 0.65rem;
}

.dashboard-promo-chart-head {
    display: flex;
    justify-content: space-between;
}

.dashboard-promo-chart-head span {
    width: 34%;
}

.dashboard-promo-chart-head i {
    width: 14%;
}

.dashboard-promo-columns {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 0.35rem;
    margin-top: 0.5rem;
    border-bottom: 1px solid #cfd8d3;
    background: repeating-linear-gradient(to bottom, transparent 0, transparent 32%, #eef1ef 33%);
}

.dashboard-promo-columns span {
    width: 9%;
    border-radius: 0.25rem 0.25rem 0 0;
    background: var(--dashboard-green);
}

.dashboard-promo-columns span:nth-child(even) {
    background: #4f9a7c;
}

.dashboard-promo-donut {
    display: grid;
    place-items: center;
}

.dashboard-promo-donut span {
    width: 62%;
    aspect-ratio: 1;
    position: relative;
    border-radius: 50%;
    background: conic-gradient(var(--dashboard-green) 0 68%, #79ae98 68% 84%, #dce6e1 84% 100%);
}

.dashboard-promo-donut span::after {
    content: "";
    position: absolute;
    inset: 25%;
    border-radius: 50%;
    background: #ffffff;
}

@media (max-width: 575.98px) {
    .dashboard-promo-content {
        gap: 0.5rem;
        padding: 0.6rem;
    }

    .dashboard-promo-sidebar {
        gap: 0.65rem;
        padding-top: 0.75rem;
    }

    .dashboard-promo-summary > span,
    .dashboard-promo-chart {
        padding: 0.45rem;
    }
}

/* ── Dashboard browser page ────────────────────────────────────── */
.dashboard-page {
    background: var(--dashboard-surface);
    min-height: 60vh;
}

.dashboard-title {
    font-weight: 700;
    color: var(--dashboard-ink);
}

.dashboard-subtitle {
    color: var(--dashboard-muted);
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 18rem minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}
.dashboard-layout > * {
    min-width: 0;
}


.dashboard-rail {
    background: #ffffff;
    border: 1px solid var(--dashboard-border);
    border-radius: 0.9rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    position: sticky;
    top: 5.5rem;
}

.dashboard-rail-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--dashboard-muted);
    margin-bottom: 0.5rem;
}
.dashboard-category-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}


.dashboard-category {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.6rem;
    color: var(--dashboard-ink);
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.dashboard-category:hover {
    background: rgba(1, 86, 59, 0.06);
}

.dashboard-category:focus-visible {
    outline: 3px solid rgba(1, 86, 59, 0.4);
    outline-offset: 2px;
}

.dashboard-category.is-current {
    background: rgba(1, 86, 59, 0.08);
    border-color: rgba(1, 86, 59, 0.35);
    font-weight: 600;
}

.dashboard-category-visual {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.6rem;
    background: rgba(1, 86, 59, 0.08);
    color: var(--dashboard-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.dashboard-category-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-category-name {
    line-height: 1.25;
}

.dashboard-content {
    min-width: 0;
    background: #ffffff;
    border: 1px solid var(--dashboard-border);
    border-radius: 0.9rem;
    padding: 1.25rem;
}

.dashboard-content-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.dashboard-selected-title {
    min-width: 0;
    margin: 0;
    color: var(--dashboard-ink);
    font-size: 1.15rem;
    font-weight: 700;
    text-wrap: balance;
}

.dashboard-fullscreen-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(1, 86, 59, 0.35);
    border-radius: 0.55rem;
    color: var(--dashboard-green);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.dashboard-fullscreen-link:hover {
    border-color: var(--dashboard-green);
    background: rgba(1, 86, 59, 0.06);
    color: var(--dashboard-green);
}

.dashboard-fullscreen-link:focus-visible {
    outline: 3px solid rgba(1, 86, 59, 0.4);
    outline-offset: 2px;
}

.dashboard-embed-shell {
    width: 100%;
    height: clamp(42rem, 70vh, 56rem);
    border: 1px solid var(--dashboard-border);
    border-radius: 0.6rem;
    overflow: hidden;
    background: #ffffff;
}

.dashboard-embed-shell iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.dashboard-placeholder {
    min-height: 42rem;
    border: 1px dashed var(--dashboard-border);
    border-radius: 0.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--dashboard-muted);
    text-align: center;
    padding: 2rem;
}

.dashboard-placeholder i {
    font-size: 2.5rem;
    color: rgba(1, 86, 59, 0.4);
}

.dashboard-empty-note {
    color: var(--dashboard-muted);
    margin: 0;
    padding: 0.5rem 0.25rem;
}

@media (max-width: 991.98px) {
    .dashboard-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .dashboard-rail {
        position: static;
    }

    .dashboard-rail-title {
        margin-bottom: 0.35rem;
    }

    .dashboard-category-list {
        flex-direction: row;
        align-items: center;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        padding-bottom: 0.25rem;
        scrollbar-width: thin;
        scroll-snap-type: x proximity;
    }

    .dashboard-category {
        flex: 0 0 auto;
        max-width: min(16rem, 75vw);
        scroll-snap-align: start;
    }

    .dashboard-category-name {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .dashboard-embed-shell {
        height: clamp(32rem, 72dvh, 48rem);
    }

    .dashboard-placeholder {
        min-height: 30rem;
    }
}

@media (max-width: 575.98px) {
    .dashboard-page {
        padding-top: 1rem !important;
    }

    .dashboard-header {
        margin-bottom: 1rem !important;
    }

    .dashboard-title {
        font-size: clamp(1.55rem, 7vw, 2rem);
        line-height: 1.15;
        text-wrap: balance;
    }

    .dashboard-layout {
        gap: 1rem;
    }

    .dashboard-rail,
    .dashboard-content {
        border-radius: 0.75rem;
    }

    .dashboard-rail {
        margin-inline: -0.25rem;
        padding: 0.75rem;
    }

    .dashboard-rail-title {
        margin-bottom: 0.25rem;
    }

    .dashboard-category {
        gap: 0.55rem;
        padding: 0.45rem 0.6rem;
    }

    .dashboard-category-visual {
        width: 2rem;
        height: 2rem;
        border-radius: 0.5rem;
    }

    .dashboard-content {
        padding: 0.75rem;
    }

    .dashboard-content-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-fullscreen-link {
        justify-content: center;
        width: 100%;
    }

    .dashboard-embed-shell {
        height: clamp(34rem, 75dvh, 44rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-category,
    .dashboard-fullscreen-link,
    .bento-hero-card,
    .bento-regular-card,
    .bento-hero-icon-box,
    .bento-regular-icon-box,
    .bento-hero-cta,
    .bento-regular-arrow {
        transition: none !important;
        transform: none !important;
    }
}

/* ── Section: Pintasan Portal (Bento Grid) ───────────────────────── */
.portal-shortcuts-section {
    padding: 3.75rem 0 4.25rem;
    background-color: var(--portal-bg, #f8f9fa);
}

.portal-shortcuts-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--portal-accent, #2563eb);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.35rem;
}

.portal-shortcuts-line {
    display: inline-block;
    width: 1.5rem;
    height: 2px;
    background-color: var(--portal-accent, #2563eb);
    border-radius: 1px;
}

.portal-shortcuts-heading {
    font-family: "Manrope", sans-serif;
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--portal-primary, #0f172a);
    letter-spacing: -0.02em;
    margin-bottom: 1.75rem;
}

/* Featured Hero Bento Card */
.bento-hero-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 20rem;
    height: 100%;
    padding: 2.25rem;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #1d4ed8 100%);
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-hero-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 35px rgba(15, 23, 42, 0.22);
    color: inherit;
}

.bento-hero-glow-1 {
    position: absolute;
    top: -4rem;
    right: -3rem;
    width: 14rem;
    height: 14rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.45) 0%, rgba(37, 99, 235, 0) 70%);
    filter: blur(2.5rem);
    pointer-events: none;
    transition: background 0.5s ease;
}

.bento-hero-card:hover .bento-hero-glow-1 {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.6) 0%, rgba(59, 130, 246, 0) 70%);
}

.bento-hero-glow-2 {
    position: absolute;
    bottom: -4rem;
    left: -2.5rem;
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(2rem);
    pointer-events: none;
}

.bento-hero-header {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    z-index: 2;
}

.bento-hero-icon-box {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem;
    transition: transform 0.25s ease;
}

.bento-hero-card:hover .bento-hero-icon-box {
    transform: scale(1.08);
}

.bento-hero-icon-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.bento-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.35rem 0.8rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bento-hero-body {
    position: relative;
    z-index: 2;
    margin-top: 2.25rem;
}

.bento-hero-title {
    font-family: "Manrope", sans-serif;
    font-size: 1.85rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.bento-hero-tagline {
    font-size: 0.88rem;
    font-weight: 600;
    color: #93c5fd;
    margin-bottom: 0.5rem;
}

.bento-hero-desc {
    color: rgba(241, 245, 249, 0.82);
    font-size: 0.92rem;
    line-height: 1.55;
    max-width: 30rem;
    margin-bottom: 1.25rem;
}

.bento-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    transition: gap 0.25s ease, color 0.25s ease;
}

.bento-hero-card:hover .bento-hero-cta {
    gap: 0.75rem;
    color: #93c5fd;
}

/* Regular Bento 2x2 Cards Grid */
.bento-grid-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 10.5rem;
    padding: 1.35rem 1.4rem;
    border-radius: 1.25rem;
    background: #ffffff;
    border: 1px solid var(--portal-border, #e2e8f0);
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.bento-grid-card:hover {
    transform: translateY(-3px);
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    color: inherit;
}

.bento-grid-card .bento-grid-icon-box {
    width: 3.15rem;
    height: 3.15rem;
    border-radius: 0.85rem;
    background: rgba(37, 99, 235, 0.08);
    color: var(--portal-accent, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    transition: transform 0.25s ease;
}

.bento-grid-card:hover .bento-grid-icon-box {
    transform: scale(1.1);
}

.bento-grid-card .bento-grid-icon-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.bento-grid-card .bento-grid-content {
    margin-top: 1rem;
}

.bento-grid-card .bento-grid-content h3 {
    font-family: "Manrope", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--portal-primary, #0f172a);
    margin-bottom: 0.2rem;
    transition: color 0.2s ease;
}

.bento-grid-card:hover .bento-grid-content h3 {
    color: var(--portal-accent, #2563eb);
}

.bento-grid-card .bento-grid-content p {
    font-size: 0.78rem;
    color: #64748b;
    margin: 0;
    line-height: 1.35;
}

.bento-grid-card .bento-grid-arrow {
    position: absolute;
    top: 1.35rem;
    right: 1.35rem;
    font-size: 1.15rem;
    color: #94a3b8;
    transition: transform 0.25s ease, color 0.25s ease;
}

.bento-grid-card:hover .bento-grid-arrow {
    transform: translate(3px, -3px);
    color: var(--portal-accent, #2563eb);
}

@media (max-width: 991.98px) {
    .bento-hero-card {
        min-height: 18rem;
    }
    .bento-grid-card {
        min-height: 9.5rem;
        padding: 1.15rem 1.25rem;
    }
}

