body {
    font-family: Arial, sans-serif;
    background: #f4f6f9;
}

/* GRID UTAMA */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    align-items: stretch;
    /* 🔥 biar item full tinggi */
}

/* SLIDER WRAPPER */
.slider-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.slider {
    display: flex;
    width: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* SLIDE */
.slide {
    width: 100%;
    /* 🔥 FIX utama */
    flex-shrink: 0;
    /* 🔥 cegah slide kosong */
    display: block;
    gap: 20px;
    margin-bottom: 24px;
    overflow: hidden;
}

h3 {
    text-align: center;
    margin-bottom: 15px;
}

.chart-container {
    position: relative;
    width: 100%;
    height: 320px; /* PC */

    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tablet */
@media (max-width: 1024px) {
    .chart-container {
        height: 260px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .chart-container {
        height: 240px;
    }

    .kpi-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .kpi-title-charts {
        font-size: 13px;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;

        /* standar (future-proof) */
        line-clamp: 2;

        overflow: hidden;
    }
}

.chart-box {
    height: 320px;
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.kpi-head {
    margin-top: 15px;
    margin-bottom: 15px;
}

/* =========================
        KPI CONTAINER
        ========================= */
.kpi-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}

/* =========================
        KPI CARD BASE
        ========================= */
.kpi-card {
    background: linear-gradient(145deg, #ffffff, #f4f6f9);
    border-radius: 14px;
    padding: 1rem;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

/* hover effect */
.kpi-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

/* glow accent */
.kpi-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at top right,
        rgba(255, 255, 255, 0.35),
        transparent 55%
    );
    pointer-events: none;
}

/* INI KUNCINYA */
.kpi-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* isi card tanpa terpotong */
    border-radius: 10px;
}

/* =========================
        KPI HEADER
        ========================= */
.kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kpi-title {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #6b7280;
    /* margin-bottom: 10px; */
}

.kpi-title-charts {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #6b7280;
    margin-left: 2px;
    margin-right: 2px;
    /* padding: 10px; */
    /* margin-bottom: 10px; */
}

.kpi-title-table {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #6b7280;
    padding: 1px;
    /* margin-bottom: 10px; */
}

.kpi-title-mainadmin {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #6b7280;
    padding: 1px;
    /* margin-bottom: 10px; */
}

/* =========================
        KPI ICON
        ========================= */
.kpi-icon {
    margin-left: auto;
    font-size: 1.3rem;
    padding: 10px;
    border-radius: 12px;
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* =========================
            KPI VALUE
            ========================= */
.kpi-value {
    font-size: 2rem;
    font-weight: 800;
    margin: 0.6rem 0;
    letter-spacing: -1px;
    color: #111827;
}

.kpi-value-mainadmin {
    font-size: 3rem;
    font-weight: 800;
    margin: 2.2rem 0;
    letter-spacing: -1px;
    color: #111827;
}

/* =========================
            KPI TREND TEXT
             ========================= */
.kpi-trend {
    font-size: 0.85rem;
    color: #16a34a;
    font-weight: 500;
}

.kpi-trend-mainadmin {
    font-size: 0.9rem;
    color: #16a34a;
    font-weight: 500;
}

/* =========================
            COLOR VARIANTS
           ========================= */
.kpi-card.orange {
    border-left: 6px solid #fb923c;
}

.kpi-card.orange .kpi-icon {
    background: linear-gradient(135deg, #fb923c, #f97316);
}

.kpi-card.blue {
    border-left: 6px solid #60a5fa;
}

.kpi-card.blue .kpi-icon {
    background: linear-gradient(135deg, #60a5fa, #2563eb);
}

.kpi-card.green {
    border-left: 6px solid #4ade80;
}

.kpi-card.green .kpi-icon {
    background: linear-gradient(135deg, #4ade80, #16a34a);
}

.kpi-card.red {
    border-left: 6px solid #f87171;
}

.kpi-card.red .kpi-icon {
    background: linear-gradient(135deg, #f87171, #dc2626);
}

.kpi-card.purple {
    border-left: 6px solid #c084fc;
}

.kpi-card.purple .kpi-icon {
    background: linear-gradient(135deg, #c084fc, #7c3aed);
}

.kpi-card.teal {
    border-left: 6px solid #2dd4bf;
}

.kpi-card.teal .kpi-icon {
    background: linear-gradient(135deg, #2dd4bf, #0d9488);
}

/* =========================
            RESPONSIVE TOUCH
        ========================= */
@media (max-width: 1400px) {
    .kpi-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .kpi-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .kpi-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .kpi-container {
        grid-template-columns: 1fr;
    }
}

.clock {
    text-align: left;
    padding: 0.3rem 0;
    /* background: linear-gradient(135deg, #f0f4f8, #d9e2ec); */
    /* background lembut */
    border-radius: 12px;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); */
    width: 250px;
    margin: auto;
}

.rt-hari {
    font-size: 2rem;
    font-weight: 900;
    color: #1f2937;
    /* dark modern gray */
    letter-spacing: -1px;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.rt-tanggal {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4b5563;
    /* medium gray */
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.rt-jam {
    font-family: "Orbitron", "Digital-7", monospace;
    /* font digital modern */
    font-size: 1.2rem;
    font-weight: 700;
    color: #4ade80;
    /* green neon modern */
    letter-spacing: 1px;
    /* background: #111827; */
    /* dark background untuk efek LED */
    /* padding: 0.3rem 0.6rem; */
    border-radius: 6px;
    display: inline-block;
}

.kpi-title-line {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #6b7280;
}

/* Table header */
table thead tr {
    border-bottom: 2px solid #d1d5db;
    /* garis tegas */
}

table thead th {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #374151;
    /* abu gelap */
    font-weight: 600;
}

/* Table body rows */
table tbody tr {
    transition: background-color 0.3s ease;
}

table tbody tr:hover {
    background-color: #f3f4f6;
    /* hover effect */
}

/* Table cells */
table th,
table td {
    padding: 0.45rem 0.6rem;
}

/* Persentase BOR bar */
.bor-bar {
    height: 24px;
    background-color: #f3f4f6;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.bor-bar div {
    height: 100%;
    text-align: right;
    padding-right: 8px;
    line-height: 24px;
    font-weight: 600;
    color: #000000;
    border-radius: 12px;
    transition: width 0.5s ease;
}

.bor-bar .low {
    background-color: #22c55e;
    /* hijau */
}

.bor-bar .medium {
    background-color: #facc15;
    /* kuning */
}

.bor-bar .high {
    background-color: #ef4444;
    /* merah */
}

.kpi-card-line.crypto {
    background: linear-gradient(135deg, #0b2a4a 0%, #0a3a63 45%, #07294d 100%);

    border-radius: 18px;
    padding: 16px;
    color: #e5e7eb;

    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.kpi-header-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.kpi-title-line {
    font-size: 14px;
    font-weight: 600;
    color: #c7d2fe;
}

.kpi-icon-line {
    font-size: 18px;
    color: #6366f1;
}

.chart-wrapper-line {
    height: 180px;
    position: relative;
}

.header-icon {
    width: 35px;
    height: 30px;
    display: inline-block;
}

.menu {
    display: flex;
    justify-content: center;
    padding: 20px;
    gap: 20px;
}

.menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
    padding: 0;
    margin: 0;
}

.menu a {
    position: relative;
    text-decoration: none;
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background: #38bdf8;
    transition: width 0.3s ease;
}

.menu a:hover {
    color: #38bdf8;
}

.menu a:hover::after {
    width: 100%;
}

.menu a.active {
    color: #38bdf8;
}

.menu a.active::after {
    width: 100%;
}

.right-item {
    margin-left: auto; /* digunakan agar konten di dorong berada di sebelah kanan */
}

.right-item a {
    position: relative;
    text-decoration: none;
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.right-item a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background: #ffffff;
    transition: width 0.3s ease;
}

.right-item a:hover {
    color: #ffffff;
}

.right-item a:hover::after {
    width: 100%;
}

.right-item a.active {
    color: #ffffff;
}

.right-item a.active::after {
    width: 100%;
}

.profile-company {
    /* padding: 30px; */
    background: var(--bg);
    /* border: 1px solid #ddd; */
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: 0.3s;
}

.profile-company:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.5);
}

.chart-wrapper {
    position: relative;
    width: 100%;
    height: 320px;
}

@media (max-width: 1024px) {
    .chart-wrapper {
        height: 260px;
    }
}

@media (max-width: 768px) {
    .chart-wrapper {
        height: 240px;
    }

    .kpi-header {
        flex-direction: row;
        align-items: flex-start;
        gap: 6px;
    }

    .kpi-title-charts {
        font-size: 13px;
    }

    .header-icon {
        width: 30px;
        height: 25px;
        display: inline-block;
    }

    .apexcharts-canvas {
        margin: 0 auto !important;
    }
}
