/* GENIUS QRIS GATEWAY - V3 PREMIUM */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
}

body {
    font-family: Inter, Segoe UI, Arial, sans-serif;
    background: #06111d;
    color: #f8fafc;
}

a {
    text-decoration: none;
    color: inherit;
}

.app {
    display: flex;
    min-height: 100vh;
    background:
        radial-gradient(circle at 78% -10%, rgba(53, 125, 255, .14), transparent 30%),
        radial-gradient(circle at 12% 25%, rgba(255, 191, 55, .07), transparent 24%),
        #06111d;
}

/* SIDEBAR */
.sidebar {
    width: 286px;
    min-height: 100vh;
    position: sticky;
    top: 0;
    padding: 28px 20px;
    background: linear-gradient(180deg, #0c1726, #07111e);
    border-right: 1px solid rgba(255, 255, 255, .09);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 38px;
}

.brand-mark {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #ffd66b, #b77b12);
    color: #111;
    font-size: 28px;
    font-weight: 950;
    box-shadow: 0 18px 45px rgba(255, 193, 57, .28);
}

.brand-title {
    font-size: 30px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: .4px;
}

.brand-sub {
    color: #ffc94a;
    font-weight: 950;
    font-size: 12px;
    letter-spacing: 1.3px;
    margin-top: 5px;
}

.nav-label {
    margin: 24px 10px 12px;
    color: #7f8da7;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav a{
    display:flex;
    align-items:center;
    gap:12px;
    padding-left:18px;
}
    padding: 15px 17px;
    margin: 8px 0;
    border-radius: 13px;
    color: #dce4f8;
    font-size: 15px;
    font-weight: 750;
    transition: .2s;
}

.nav a:before{
    display:none;
}

.nav a:hover{
    background:rgba(255,211,106,.06);
    color:#ffd36a;
    transform:translateX(4px);
    transition:.25s;
}
    background: rgba(255, 211, 106, .09);
    color: #ffd36a;
}

.nav a.active{
    background:linear-gradient(
        90deg,
        rgba(255,211,106,.18),
        rgba(255,211,106,.06)
    );
    color:#ffd36a;
    border-left:3px solid #ffd36a;
    box-shadow:none;
}

.sidebar-card {
    margin-top: 40px;
    padding: 24px;
    border-radius: 20px;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .025));
    border: 1px solid rgba(255, 255, 255, .10);
}

.sidebar-card:before {
    content: "☎";
    display: block;
    color: #ffc94a;
    font-size: 42px;
    margin-bottom: 12px;
}

.sidebar-card b {
    font-size: 17px;
}

.sidebar-card p {
    color: #9aa4b8;
    font-size: 13px;
    line-height: 1.7;
}

.sidebar-card:after {
    content: "Live Chat";
    display: block;
    margin-top: 16px;
    padding: 13px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffd36a, #d9a83c);
    color: #111;
    font-weight: 950;
}

/* MAIN */
.main {
    flex: 1;
    padding: 28px 34px 20px;
    overflow: hidden;
}

/* DASHBOARD TOPBAR */
.dash-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.dash-title-wrap {
    display: flex;
    gap: 22px;
    align-items: flex-start;
}

.dash-menu-icon {
    font-size: 27px;
    color: #dce8ff;
    margin-top: 5px;
}

.dash-topbar h1 {
    margin: 0;
    font-size: 32px;
    letter-spacing: -.6px;
}

.dash-topbar p {
    margin: 7px 0 0;
    color: #a9b7d1;
    font-size: 15px;
}

.dash-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.clock-wrap {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #b9c7dd;
    font-size: 13px;
    text-align: left;
}

.clock-icon {
    font-size: 22px;
}

.clock-wrap b {
    display: block;
    color: #38a8ff;
    margin-top: 3px;
}

.top-icons {
    display: flex;
    gap: 12px;
    font-size: 20px;
    color: #dce8ff;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-profile span {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e5e7eb;
    color: #111;
    font-size: 22px;
    font-weight: 950;
}

.admin-profile b {
    font-size: 14px;
}

/* OLD TOPBAR SUPPORT */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 22px;
}

.topbar h1 {
    margin: 0;
    font-size: 32px;
}

.topbar p {
    margin: 8px 0 0;
    color: #a9b7d1;
}

.admin-mini {
    text-align: right;
    color: #b9c7dd;
    font-size: 13px;
}

/* BUTTON */
.btn,
.mini-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 10px;
    border: 1px solid rgba(255, 196, 67, .78);
    background: rgba(255, 196, 67, .075);
    color: #ffc94a;
    font-weight: 950;
    font-size: 13px;
    cursor: pointer;
    transition: .2s;
}

.btn:hover,
.mini-btn:hover {
    background: #ffc94a;
    color: #111;
}

.mini-btn.danger,
.danger {
    color: #ff6b6b !important;
    border-color: rgba(255, 91, 91, .35) !important;
}

/* PILLS */
.pill {
    display: inline-flex;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 950;
}

.pill-live {
    background: rgba(25, 240, 139, .18);
    color: #19f08b;
}

/* KPI */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(190px, 1fr));
    gap: 20px;
    margin-bottom: 22px;
}

.kpi-card,
.panel-card{
    background:#101927;
    border:1px solid rgba(255,255,255,.06);
    border-radius:20px;
    box-shadow:
        0 8px 25px rgba(0,0,0,.25),
        inset 0 1px rgba(255,255,255,.03);
}
.card {
    background: linear-gradient(180deg, rgba(20, 31, 47, .96), rgba(9, 18, 31, .96));
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 21px;
    box-shadow: 0 22px 65px rgba(0, 0, 0, .32);
}

.kpi-card {
    min-height: 182px;
    padding: 24px;
    display: flex;
    gap: 18px;
}

.kpi-icon {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 28px;
    font-weight: 950;
    color: #fff;
    box-shadow: 0 16px 35px rgba(79, 70, 229, .22);
}

.kpi-icon.purple {
    background: linear-gradient(135deg, #4f46e5, #1e40af);
}

.kpi-icon.success {
    background: linear-gradient(135deg, #16a34a, #065f46);
}

.kpi-icon.warning {
    background: linear-gradient(135deg, #f59e0b, #854d0e);
}

.kpi-icon.danger {
    background: linear-gradient(135deg, #ef4444, #7f1d1d);
}

.kpi-label {
    color: #d7e1f2;
    font-size: 15px;
    font-weight: 850;
    text-transform: uppercase;
    margin-top: 8px;
}

.kpi-value {
    margin-top: 26px;
    font-size: 38px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -1px;
}

.kpi-foot {
    margin-top: 20px;
    color: #a6b3cc;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* COLOR HELPERS */
.gold {
    color: #ffc94a !important;
}

.green {
    color: #19f08b !important;
}

.orange {
    color: #ffb84d !important;
}

.red {
    color: #ff5b6b !important;
}

.blue {
    color: #38a8ff !important;
}

/* GRID / PANEL */
.grid,
.dash-grid {
    display: grid;
    grid-template-columns: 1.72fr .88fr;
    gap: 20px;
}

.panel-card,
.card {
    padding: 24px;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.panel-head h3,
.panel-card h3,
.card h3 {
    margin: 0 0 18px;
    font-size: 20px;
}

.panel-head p {
    margin: 8px 0 0;
    color: #9aa4b8;
}

.select-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .14);
    color: #dce8ff;
    background: rgba(255, 255, 255, .035);
    font-weight: 800;
}

/* LINE CHART */
.line-chart-box {
    height: 335px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, .015), rgba(255, 255, 255, .005));
}

.line-chart-box svg {
    width: 100%;
    height: 100%;
}

.grid-line {
    stroke: rgba(255, 255, 255, .08);
    stroke-width: 1;
    stroke-dasharray: 5 5;
}

.chart-line {
    fill: none;
    stroke: #5666ff;
    stroke-width: 3.5;
    filter: drop-shadow(0 0 8px rgba(86, 102, 255, .6));
}

.chart-dot {
    fill: #5666ff;
    stroke: #dce8ff;
    stroke-width: 2;
}

.axis-label {
    fill: #a7b4cc;
    font-size: 13px;
}

/* STATUS SYSTEM */
.system-row {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .085);
    font-size: 15px;
}

.sys-icon {
    font-size: 24px;
    color: #38a8ff;
}

.sys-badge {
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 950;
    font-size: 13px;
}

.sys-badge.green {
    background: rgba(25, 240, 139, .12);
    color: #19f08b;
}

.sys-badge.blue {
    background: rgba(56, 168, 255, .12);
    color: #38a8ff;
}

.sys-badge.red {
    background: rgba(255, 91, 107, .14);
    color: #ff5b6b;
}

.system-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    font-size: 16px;
    font-weight: 900;
}

/* OLD STATUS ROW SUPPORT */
.status-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.status-row:last-child {
    border-bottom: 0;
}

/* TABLE */
.transaction-panel {
    margin-top: 20px;
}

.table-wrap {
    width: 100%;
    overflow: auto;
}

table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
}

thead th {
    background: rgba(255, 255, 255, .055);
    color: #c3d0e5;
    text-align: left;
    font-size: 13px;
    padding: 15px 14px;
    font-weight: 850;
}

thead th:first-child {
    border-radius: 12px 0 0 12px;
}

thead th:last-child {
    border-radius: 0 12px 12px 0;
}

tbody td {
    padding: 16px 14px;
    color: #eef4ff;
    font-size: 14px;
    font-weight: 750;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

tbody tr:hover{
    background:rgba(255,255,255,.02);
}

.row-arrow {
    font-size: 30px;
    text-align: right;
    color: #e5ecfa;
}

/* BADGE */
.badge{
    padding:6px 14px;
    border-radius:50px;
    font-size:11px;
    letter-spacing:.5px;
    font-weight:700;
}

.b-success {
    background: rgba(25, 240, 139, .14);
    color: #19f08b;
}

.b-pending {
    background: rgba(255, 211, 106, .16);
    color: #ffd36a;
}

.b-expired {
    background: rgba(255, 91, 107, .16);
    color: #ff5b6b;
}

.table-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    color: #9aa4b8;
}

.pager {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pager button,
.pager b {
    min-width: 38px;
    height: 38px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .035);
    color: #dce8ff;
}

.pager b {
    border-color: #ffc94a;
    color: #ffc94a;
}

/* FORM */
input,
select,
textarea {
    width: 100%;
    padding: 13px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .05);
    color: #fff;
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #ffd36a;
    box-shadow: 0 0 0 3px rgba(255, 211, 106, .10);
}

label {
    display: block;
    color: #dce4f8;
    font-weight: 850;
    margin: 12px 0 7px;
}

small {
    color: #9aa4b8;
}

.submit-btn {
    width: 100%;
    margin-top: 18px;
    padding: 15px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffd36a, #d9a83c);
    color: #111;
    font-weight: 950;
    cursor: pointer;
}

.switch-card {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .035);
    border-radius: 14px;
}

.switch-card input {
    width: auto;
    transform: scale(1.25);
}

/* FOOTER */
.footer-note {
    text-align: center;
    color: #7f8da7;
    margin: 24px 0 6px;
    font-size: 12px;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid,
    .dash-grid {
        grid-template-columns: 1fr;
    }

    .dash-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .app {
        display: block;
    }

    .sidebar {
        width: 100%;
        min-height: auto;
        position: relative;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

    .main {
        padding: 18px;
    }

    .dash-topbar,
    .topbar {
        display: block;
    }

    .dash-title-wrap {
        gap: 14px;
    }

    .dash-actions,
    .admin-mini {
        margin-top: 16px;
        text-align: left;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .dash-topbar h1,
    .topbar h1 {
        font-size: 28px;
    }

    .line-chart-box {
        height: 240px;
    }
}
/* FIX SIDEBAR ICON KOTAK */
.nav a{
    display:flex;
    align-items:center;
    gap:14px;

    padding:15px 18px;
    margin:8px 0;

    border-radius:14px;

    color:#dce4f8;
    font-size:15px;
    font-weight:700;
    line-height:1.4;

    transition:.25s;
}

.nav a{
    padding-left:18px !important;
}

/* FIX CHART LEBIH TIPIS & HALUS */
.chart-line{
    stroke-width:2 !important;
    filter:none !important;
    opacity:.85 !important;
}

.chart-dot{
    r:3;
    stroke-width:1.5 !important;
}

.grid-line{
    stroke:rgba(255,255,255,.045) !important;
    stroke-width:.7 !important;
    stroke-dasharray:4 8 !important;
}

.line-chart-box{
    background:rgba(255,255,255,.008) !important;
}