
/* =========================================================
   Admin Dashboard V2 — myID@MBIP
   ========================================================= */

.admin-v2-body {
    background:
        radial-gradient(circle at top left, rgba(255,193,7,.22), transparent 26rem),
        radial-gradient(circle at bottom right, rgba(11,43,43,.14), transparent 30rem),
        #f4f7f8;
    color: #182b2b;
}

.admin-v2-shell {
    display: flex;
    min-height: 100vh;
}

.admin-v2-sidebar {
    width: 280px;
    min-height: 100vh;
    position: sticky;
    top: 0;
    background:
        linear-gradient(180deg, rgba(11,43,43,.98), rgba(7,30,30,.98)),
        #0b2b2b;
    color: #fff;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: 18px 0 40px rgba(11,43,43,.16);
    z-index: 10;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 10px;
}

.sidebar-brand strong {
    display: block;
    font-size: 1.05rem;
    letter-spacing: -.02em;
}

.sidebar-brand span {
    color: rgba(255,255,255,.58);
    font-size: .82rem;
}

.sidebar-section-label {
    color: rgba(255,255,255,.42);
    text-transform: uppercase;
    font-size: .72rem;
    letter-spacing: .12em;
    margin-top: 8px;
}

.sidebar-nav {
    display: grid;
    gap: 8px;
}

.sidebar-nav a,
.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 18px;
    color: rgba(255,255,255,.78);
    text-decoration: none;
    transition: all .2s ease;
}

.sidebar-nav a i,
.sidebar-logout i {
    width: 22px;
    text-align: center;
    font-size: 1.05rem;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(255,193,7,.16);
    color: #fff;
    transform: translateX(3px);
}

.sidebar-nav a.active {
    border: 1px solid rgba(255,193,7,.35);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}

.sidebar-mini-card {
    margin-top: auto;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 22px;
    padding: 18px;
    display: grid;
    gap: 5px;
}

.sidebar-mini-card i {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: #FFC107;
    color: #0b2b2b;
    font-size: 1.35rem;
    margin-bottom: 6px;
}

.sidebar-mini-card strong {
    font-size: .96rem;
}

.sidebar-mini-card span {
    color: rgba(255,255,255,.58);
    font-size: .82rem;
}

.sidebar-logout {
    background: rgba(255,255,255,.07);
}

.sidebar-logout:hover {
    background: rgba(220,53,69,.18);
    color: #fff;
}

.admin-v2-main {
    flex: 1;
    padding: 30px;
    min-width: 0;
}

.admin-v2-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 22px;
    margin-bottom: 22px;
}

.admin-v2-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255,193,7,.22);
    color: #0b2b2b;
    font-weight: 700;
    font-size: .78rem;
    margin-bottom: 12px;
}

.admin-v2-topbar h1 {
    font-size: clamp(1.8rem, 2.6vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -.05em;
    color: #0b2b2b;
    margin: 0;
}

.admin-v2-topbar p {
    color: #6b7b7b;
    margin: 6px 0 0;
}

.admin-v2-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,.74);
    border: 1px solid rgba(255,255,255,.72);
    backdrop-filter: blur(18px);
    border-radius: 22px;
    padding: 12px 14px;
    box-shadow: 0 16px 35px rgba(18,38,38,.07);
}

.profile-text {
    text-align: right;
}

.profile-text strong {
    display: block;
    color: #0b2b2b;
    font-size: .92rem;
}

.profile-text span {
    display: block;
    color: #718181;
    font-size: .78rem;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    background: #0b2b2b;
    color: #FFC107;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(11,43,43,.18);
}

.hero-console-card {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    padding: clamp(24px, 4vw, 42px);
    background:
        radial-gradient(circle at 85% 30%, rgba(255,193,7,.56), transparent 18rem),
        linear-gradient(135deg, #0b2b2b, #123f3f);
    color: #fff;
    display: grid;
    grid-template-columns: 1.45fr .75fr;
    gap: 30px;
    box-shadow: 0 25px 65px rgba(11,43,43,.24);
}

.hero-console-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(90deg, #000, transparent);
    opacity: .45;
}

.hero-console-content,
.hero-console-visual {
    position: relative;
    z-index: 2;
}

.hero-pill {
    display: inline-flex;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    color: #ffe08a;
    font-weight: 700;
    font-size: .78rem;
    margin-bottom: 18px;
}

.hero-console-card h2 {
    max-width: 720px;
    font-size: clamp(1.65rem, 3vw, 3.05rem);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -.055em;
}

.hero-console-card p {
    max-width: 660px;
    color: rgba(255,255,255,.72);
    font-size: 1rem;
    margin: 16px 0 0;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.hero-actions .btn {
    border-radius: 16px;
    font-weight: 700;
}

.hero-console-visual {
    display: grid;
    place-items: center;
    min-height: 230px;
}

.identity-orbit {
    position: relative;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    border: 1px dashed rgba(255,255,255,.22);
    display: grid;
    place-items: center;
}

.identity-orbit::before {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 1px dashed rgba(255,193,7,.34);
}

.orbit-core {
    width: 94px;
    height: 94px;
    border-radius: 32px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.20);
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 45px rgba(0,0,0,.20);
}

.orbit-core i {
    color: #FFC107;
    font-size: 2.8rem;
}

.orbit-node {
    position: absolute;
    background: #fff;
    color: #0b2b2b;
    border-radius: 999px;
    padding: 8px 13px;
    font-size: .75rem;
    font-weight: 800;
    box-shadow: 0 15px 35px rgba(0,0,0,.18);
}

.node-a { top: 12px; right: 20px; }
.node-b { bottom: 32px; right: 0; }
.node-c { left: 0; bottom: 62px; }

.metric-card {
    position: relative;
    min-height: 132px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(255,255,255,.78);
    backdrop-filter: blur(18px);
    border-radius: 26px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 18px 45px rgba(18,38,38,.07);
}

.metric-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    font-size: 1.45rem;
}

.icon-yellow { background: rgba(255,193,7,.24); color: #9a7000; }
.icon-green { background: rgba(25,135,84,.13); color: #198754; }
.icon-blue { background: rgba(13,110,253,.12); color: #0d6efd; }
.icon-red { background: rgba(220,53,69,.12); color: #dc3545; }

.metric-card span {
    color: #6b7b7b;
    font-size: .82rem;
}

.metric-card h3 {
    color: #0b2b2b;
    font-size: 2rem;
    font-weight: 800;
    margin: 2px 0 0;
    letter-spacing: -.04em;
}

.metric-link {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #f3f6f6;
    color: #0b2b2b;
    text-decoration: none;
}

.console-panel {
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(255,255,255,.82);
    backdrop-filter: blur(18px);
    border-radius: 28px;
    padding: 22px;
    box-shadow: 0 18px 45px rgba(18,38,38,.07);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.panel-header h5 {
    color: #0b2b2b;
    font-weight: 800;
    margin: 0;
    letter-spacing: -.02em;
}

.panel-header p {
    color: #708080;
    margin: 4px 0 0;
    font-size: .88rem;
}

.modern-table thead th {
    color: #7b8b8b;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    border-bottom: 1px solid #edf1f1;
    padding-top: 14px;
    padding-bottom: 14px;
}

.modern-table tbody td {
    padding-top: 16px;
    padding-bottom: 16px;
    border-color: #edf1f1;
}

.table-main {
    color: #0b2b2b;
    font-weight: 700;
}

.table-sub {
    color: #7b8b8b;
    font-size: .82rem;
}

.role-stack {
    display: grid;
    gap: 12px;
}

.role-stat {
    border-radius: 20px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.role-stat strong {
    display: block;
    color: #0b2b2b;
}

.role-stat span {
    color: #687878;
    font-size: .8rem;
}

.role-stat b {
    font-size: 1.35rem;
    color: #0b2b2b;
}

.role-admin { background: rgba(255,193,7,.22); }
.role-kerani { background: rgba(13,110,253,.10); }
.role-user { background: rgba(25,135,84,.10); }

.security-note-card {
    display: flex;
    gap: 14px;
    background: #0b2b2b;
    color: #fff;
    border-radius: 22px;
    padding: 16px;
}

.security-icon {
    width: 48px;
    height: 48px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    background: #FFC107;
    color: #0b2b2b;
    flex: 0 0 48px;
    font-size: 1.35rem;
}

.security-note-card strong {
    display: block;
}

.security-note-card p {
    color: rgba(255,255,255,.66);
    margin: 4px 0 0;
    font-size: .86rem;
}

.system-overview-card {
    background: #f8fbfb;
    border: 1px solid #eef3f3;
    border-radius: 24px;
    padding: 18px;
    height: 100%;
    transition: all .2s ease;
}

.system-overview-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 32px rgba(18,38,38,.08);
}

.system-code {
    display: inline-flex;
    padding: 7px 11px;
    background: rgba(255,193,7,.22);
    color: #0b2b2b;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.system-overview-card h6 {
    color: #0b2b2b;
    font-weight: 800;
    min-height: 38px;
}

.system-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    color: #718181;
    font-size: .85rem;
    margin-top: 16px;
}

.system-meta a {
    color: #0b2b2b;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 991.98px) {
    .admin-v2-shell {
        display: block;
    }

    .admin-v2-sidebar {
        width: 100%;
        min-height: auto;
        position: relative;
        border-radius: 0 0 28px 28px;
    }

    .sidebar-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sidebar-mini-card {
        display: none;
    }

    .admin-v2-main {
        padding: 20px;
    }

    .admin-v2-topbar {
        display: grid;
    }

    .admin-v2-profile {
        justify-content: space-between;
    }

    .profile-text {
        text-align: left;
    }

    .hero-console-card {
        grid-template-columns: 1fr;
    }

    .hero-console-visual {
        min-height: 180px;
    }
}

@media (max-width: 575.98px) {
    .sidebar-nav {
        grid-template-columns: 1fr;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .panel-header {
        display: grid;
    }

    .metric-card {
        min-height: auto;
    }
}
