@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root{
    --bg:#f5f8fb;
    --card:#ffffff;
    --muted:#9aa6b2;
    --blue-500:#2b6fe6;
    --blue-300:#a8c7ff;
    --chip-1:#2e7be6;
    --chip-2:#5ea2ff;
    --chip-3:#8fc1ff;
    --soft:#f1f6fb;
    --radius:12px;
    --shadow: 0 6px 18px rgba(28,40,60,0.06);
    --outline: 1px solid rgba(15,23,42,0.04);
    font-family: 'Montserrat', sans-serif;
}

* {
    padding: 0;
    margin: 0;
}

html, body {
    background-color: rgba(234, 234, 234, 0.6);
}


/* =================================
       Components/Header Css
================================= */
.header-app-header {
    height: 80px;
    padding-top: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
}

.header-title-font {
    font-size: 1.75rem;
    font-weight: bold;
}

.header-badge-system {
    font-size: 11px;
    padding: 0.45em 0.8em;
    background-color: #dcfce7;
    border: 1px solid #16a34a;
    border-radius: 50px;
    color: #166534;
    font-weight: 500;
}

.header-btn-export {
    background-color: #0069d9;
    border-color: #0062cc;
}

.header-btn-export:hover {
    background-color: #0056b3;
    border-color: #004085;
}

.header-container {
    padding-left: 30px;
    padding-right: 30px;
}

.dropdown .btn-outline-secondary {
    box-shadow: none !important;
    outline: none !important;
}

.dropdown .btn-outline-secondary:hover,
.dropdown .btn-outline-secondary:focus,
.dropdown .btn-outline-secondary:active,
.dropdown .btn-outline-secondary.focus,
.dropdown .btn-outline-secondary.active,
.dropdown .btn-outline-secondary.show {
    background-color: transparent !important;
    border-color: #6c757d !important;
    color: #6c757d !important;
    box-shadow: none !important;
}

.dropdown .btn-outline-secondary.dropdown-toggle.show {
    background-color: transparent !important;
    border-color: #6c757d !important;
    color: #6c757d !important;
}

.btn:focus,
.btn.focus,
.dropdown-toggle:focus {
    outline: 0 !important;
    box-shadow: none !important;
}


/* =================================
        Components/Card Css
================================= */
.features-card-card {
    border-radius: 16px;
    transition: transform 0.2s;
    background-color: #ffffff;
    height: 100%;
}

.features-card-card:hover {
    transform: translateY(-4px);
}

.features-card-icon-rounded {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.features-card-card span.small {
    font-size: 0.875rem;
    line-height: 1;
}

.features-card-sparkline-green,
.features-card-sparkline-red,
.features-card-sparkline-orange {
    height: 40px;
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: 100% 28px;
    margin-top: auto;
}

.features-card-sparkline-green {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40'%3E%3Cpath d='M5,35 Q30,20 60,28 T115,25' stroke='%2316a34a' stroke-width='6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

.features-card-sparkline-red {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40'%3E%3Cpath d='M5,20 Q30,30 60,25 T115,32' stroke='%23dc3545' stroke-width='6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

.features-card-sparkline-orange {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40'%3E%3Cpath d='M5,30 Q30,18 60,25 T115,15' stroke='%23fd7e14' stroke-width='6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}


/* =================================
        Components/TopCharts Css
================================= */
.chart-card {  }

.chart-chart-wrapper {
    position: relative;
    height: 300px;
    width: 100%;
}

.chart-chart-wrapper canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

.chart-legend {  }



/* =================================
      Components/MiddleCard Css
================================= */
.middle-card-card {
    border-radius: 16px;
    background-color: #ffffff;
    transition: transform 0.2s;
}

.middle-card-card:hover {
    transform: translateY(-4px);
}

.middle-card-icon-rounded {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.middle-card-card span.small {
    font-size: 0.875rem;
    line-height: 1;
}



/* =================================
    Components/MiddleCharts Css
================================= */
.middle-chart-card {
    border-radius: 16px;
    background-color: #ffffff;
}

.middle-chart-icon-rounded {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.middle-chart-chart-wrapper {
    position: relative;
    height: 300px;
    width: 100%;
}

.middle-chart-chart-wrapper canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}


/* =================================
      Components/Tables Css
================================= */
.table-card .badge-danger {
    background-color: #fee2e2;
    color: #991b1b;
    font-size: 0.75rem;
    font-weight: 600;
}

.table-card .badge-warning {
    background-color: #fffbeb;
    color: #92400e;
    font-size: 0.75rem;
    font-weight: 600;
}

.table-card .badge-pill.badge-warning {
    background-color: #fbbf24;
    color: #000;
}

.table-card .badge-pill {
    font-size: 0.9rem;
}

.table-header-divider th {
    position: relative;
    padding-bottom: 12px !important;
    font-size: 0.75rem;
    color: #6c757d;
}

.table-header-divider th:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 1px;
    height: 24px;
    background-color: #dee2e6;
}

.table-header-divider {
    position: relative;
}

.table-header-divider::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #dee2e6;
}



/* =================================
    Components/BottomCharts Css
================================= */
.gift-chart-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.gift-chart-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08) !important;
}

.gift-icon-rounded {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gift-chart-wrapper {
    position: relative;
}

.badge-warning {
    background-color: #fff3cd;
    color: #f59e0b;
    font-weight: 600;
}

.gift-metric-title {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #6b7280;
    text-transform: uppercase;
}

.gift-currency {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2563eb;
    margin-right: 4px;
}

.gift-amount {
    font-size: 3rem;
    font-weight: 800;
    color: #2563eb;
}

.gift-percent {
    font-size: 2.6rem;
    font-weight: 800;
    color: #f59e0b;
}

.gift-metric-divider {
    font-size: 3rem;
    font-weight: 300;
    color: #d1d5db;
    line-height: 1;
}


/* =================================
      Components/MapCard Css
================================= */
.map-card-card {
    background: var(--card);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
    border: var(--outline);
}

.map-card-header .map-card-pin {
    display: inline-flex;
    height: 44px;
    width: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(180deg, #eef6ff, #f5fbff);
    font-size: 18px;
    box-shadow: 0 2px 6px rgba(47, 84, 255, 0.06) inset;
}

.map-card-body {
    display: flex;
    gap: 20px;
}

.map-card-left {
    flex: 1;
    min-height: 420px;
}

.map-card-frame {
    background: var(--soft);
    border-radius: 12px;
    height: 100%;
    position: relative;
    padding: 32px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.03);
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.map-card-region-chip {
    position: absolute;
    min-width: 96px;
    height: 64px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(37, 78, 154, 0.08);
    transform-origin: center;
    transition: transform 220ms ease, box-shadow 220ms ease, opacity 220ms ease;
    cursor: pointer;
    user-select: none;
    padding: 6px 10px;
}

.map-card-region-chip.light {
    color: #1b3b5f;
    background: linear-gradient(180deg, #eaf4ff, #f8fbff);
    box-shadow: none;
    font-weight: 600;
}

.map-card-region-chip.primary {
    background: linear-gradient(180deg, var(--chip-1), #3e86ff);
}

.map-card-region-chip.medium {
    background: linear-gradient(180deg, var(--chip-2), #78a8ff);
}

.map-card-region-chip.small {
    background: linear-gradient(180deg, var(--chip-3), #bfe0ff);
    color: #06304f;
    font-weight: 600;
}

.map-card-region-chip:hover {
    transform: translateY(-6px) scale(1.03);
}

.map-card-region-chip.active {
    outline: 3px solid rgba(59, 113, 255, 0.12);
    transform: translateY(-8px) scale(1.07);
    box-shadow: 0 18px 38px rgba(43, 111, 230, 0.18);
}

.map-card-right {
    width: 360px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.map-card-region-item {
    background: linear-gradient(180deg, #fbfdff, #f7fbff);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(15, 23, 42, 0.03);
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.map-card-region-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(18, 52, 88, 0.04);
}

.map-card-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.map-card-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--blue-300);
    box-shadow: 0 3px 8px rgba(49, 103, 223, 0.12);
}

.map-card-texts {
    display: flex;
    flex-direction: column;
}

.map-card-name {
    font-weight: 700;
    font-size: 15px;
    color: #0f2c4a;
}

.map-card-meta {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
}

.map-card-amount {
    font-weight: 800;
    color: var(--blue-500);
    font-size: 16px;
}


/* =================================
    Components/BottomTables Css
================================= */
.bottom-tables-badge-danger {
    background-color: #e74c3c;
    color: white;
}

.bottom-tables-badge-warning {
    background-color: #f39c12;
    color: white;
}

.bottom-tables-badge-anomaly {
    background-color: #e74c3c;
    color: white;
    border-radius: 50px;
    padding: 4px 12px;
    font-size: 0.8rem;
}

.bottom-tables-badge-review {
    background-color: #f39c12;
    color: white;
    border-radius: 50px;
    padding: 4px 12px;
    font-size: 0.8rem;
}

.bottom-tables-badge-silver { background-color: #95a5a6; color: white; }
.bottom-tables-badge-bronze { background-color: #cd7f32; color: white; }
.bottom-tables-badge-gold { background-color: #f1c40f; color: #212529; }
.bottom-tables-badge-platinum { background-color: #7f8c8d; color: white; }
.bottom-tables-badge-diamond { background-color: #3498db; color: white; }

.bottom-tables-table td .bottom-tables-small {
    display: block;
    font-size: 0.8rem;
}

.bottom-tables-table.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.025);
}

.bottom-tables-card {
    border: 1px solid #dee2e6;
}

.bottom-tables-header {
    border-bottom: 1px solid #dee2e6;
}

/* =================================
        Mobil Responsive Css
================================= */
@media (max-width: 768px) {
    .header-app-header {
        height: auto;
        min-height: 70px;
        padding: 12px 15px;
        flex-direction: column;
        align-items: flex-start !important;
    }

    .header-container {
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .header-title-font {
        font-size: 1.4rem;
        font-weight: bold;
    }

    .header-badge-system {
        font-size: 10px;
        padding: 0.4em 0.7em;
        margin-left: 12px !important;
    }

    .header-app-header > .header-container > .d-flex:last-child {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }

    .dropdown {
        flex: 1;
        min-width: 120px;
        margin-right: 0 !important;
    }

    .dropdown .btn {
        width: 100%;
        text-align: left;
        font-size: 0.9rem;
        padding: 0.5rem 0.8rem;
    }

    .dropdown .btn::after {
        float: right;
        margin-top: 8px;
    }

    .header-btn-export {
        flex: 1;
        min-width: 120px;
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header-btn-export i {
        margin-right: 6px;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .header-title-font {
        font-size: 1.25rem;
    }

    .header-badge-system {
        font-size: 9px;
        padding: 0.35em 0.6em;
        margin-left: 8px;
    }

    .dropdown,
    .header-btn-export {
        min-width: 100%;
        margin-bottom: 8px;
    }

    .header-app-header > .header-container > .d-flex:last-child {
        flex-direction: column;
        align-items: stretch;
    }

    .dropdown .btn,
    .header-btn-export {
        justify-content: center;
    }

    .dropdown .btn::after {
        float: none;
        margin-left: 8px;
        margin-top: 0;
    }
}


