@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --bsi-teal: #009f9a;
    --bsi-gold: #f5a623;
    --bsi-blue: #2563eb;
    --bsi-dark: #111827;
    --bsi-gray: #6b7280;
    --bg-soft: #f5f7fb;
    --card-bg: #ffffff;
    --border-soft: #e5e7eb;
    --radius-lg: 18px;
    --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);
    --transition-fast: 0.18s ease-out;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #f1fbff 0, #f5f7fb 38%, #edf1f7 100%);
    color: var(--bsi-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}



.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--bsi-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text-main {
    font-weight: 700;
    font-size: 16px;
}

.logo-text-sub {
    font-size: 11px;
    color: var(--bsi-gray);
}

.nav {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 14px;
}

.nav-link {
    padding: 6px 12px;
    border-radius: 999px;
    color: #4b5563;
    border: 1px solid transparent;
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.nav-link:hover {
    background: rgba(0, 159, 154, 0.07);
    border-color: rgba(0, 159, 154, 0.25);
    color: var(--bsi-teal);
}

.nav-link--active {
    background: var(--bsi-teal);
    color: white;
    border-color: transparent;
    box-shadow: none;
}

.page {
    max-width: 1120px;
    width: 100%;
    margin: 18px auto 24px;
    padding: 0 16px 32px;
    flex: 1;
}

.hero {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 26px;
    padding: 26px 24px 24px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 22px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -60px -80px auto;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle at center, rgba(0, 159, 154, 0.16), transparent 60%);
    opacity: 0.9;
    pointer-events: none;
}

.hero--center {
    text-align: center;
    padding: 30px 24px 26px;
}

.hero--compact {
    padding: 22px 20px 18px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(0, 159, 154, 0.08);
    color: var(--bsi-teal);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.hero-title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    color: #009f9a;
}

.hero-subtitle {
    font-size: 14px;
    color: var(--bsi-gray);
    max-width: none;
    margin: 0 auto;
}

.hero-actions {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border-radius: 999px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    box-shadow: none;
}

.btn-primary:hover {
    transform: none;
    box-shadow: none;
}
.btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    box-shadow: none;
}

.btn-success:hover {
    transform: none;
    box-shadow: none;
}


.btn-ghost {
    border: 1px solid rgba(148, 163, 184, 0.6);
    color: #4b5563;
    background: rgba(255, 255, 255, 0.8);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.98);
    transform: translateY(-1px);
}

.btn-full {
width: 100%;
    margin-top: 10px;
    padding: 12px 20px; /* Menentukan tinggi tombol yang sama */
    border-radius: 50px; /* Membuat bentuk kapsul sesuai gambar */
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none; /* Menghilangkan garis pinggir hitam */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.card-grid {
    display: grid;
    gap: 16px;
}

.card-grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card-grid--4 {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 18px 18px 20px;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.card--action {
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border var(--transition-fast);
    border: 1px solid rgba(229, 231, 235, 0.9);
}

.card--action::after {
    content: "";
    position: absolute;
    inset: auto -40px -70px auto;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle at center, rgba(0, 159, 154, 0.18), transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.card--action:hover {
    transform: translateY(-4px);
    box-shadow: none;
    border-color: rgba(0, 159, 154, 0.35);
}

.card--action:hover::after {
    opacity: 1;
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 10px;
}

.card-icon--purple {
    background: #f5f3ff;
    color: #7c3aed;
}

.card-icon--gold {
    background: #fffbeb;
    color: var(--bsi-gold);
}

.card-icon--blue {
    background: #eff6ff;
    color: var(--bsi-blue);
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.card-title--big {
    font-size: 22px;
    margin-bottom: 10px;
}

.card-text {
    font-size: 13px;
    color: var(--bsi-gray);
    line-height: 1.55;
    margin-bottom: 6px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--bsi-blue);
    margin-top: 4px;
}

.card--placeholder {
    margin-top: 10px;
}

.card--form {
    min-height: 160px;
}

.page--split {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 18px;
    align-items: flex-start;
}

.split-left,
.split-right {
    height: 100%;
}

.card--guide {
    padding-bottom: 22px;
}

.guide-placeholder {
    margin-top: 14px;
    padding: 12px 12px 14px;
    border-radius: 14px;
    background: #f3f4ff;
    border: 1px dashed #c7d2fe;
}

.guide-placeholder-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #4f46e5;
}

.list {
    list-style: none;
    margin-top: 8px;
    font-size: 13px;
    color: var(--bsi-gray);
}

.list li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 4px;
}

.list li::before {
    content: "•";
    position: absolute;
    left: 4px;
    top: -1px;
    color: var(--bsi-teal);
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 9px;
}

.pill--orange {
    background: #fff7ed;
    color: #c05621;
}

.pill--indigo {
    background: #eef2ff;
    color: #4338ca;
}

.pill--green {
    background: #ecfdf5;
    color: #047857;
}

.pill--blue {
    background: #eff6ff;
    color: #1d4ed8;
}

.card--form-panel {
    padding: 18px 18px 20px;
}

.alert {
    font-size: 12px;
    border-radius: 12px;
    padding: 8px 10px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.alert strong {
    font-weight: 600;
}

.alert--warning {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
}

.alert--info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    margin-bottom: 14px;
}

.alert-month {
    font-size: 11px;
    opacity: 0.8;
}

.nim-form {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nim-label {
    font-size: 13px;
    font-weight: 600;
}

.nim-info {
    font-size: 12px;
    color: var(--bsi-gray);
}

.nim-info a {
    color: var(--bsi-blue);
}

.nim-input {
    margin-top: 4px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    transition: border var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.nim-input:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.85);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.65);
    background: #f9fafb;
}

.nim-hint {
    font-size: 11px;
    color: #9ca3af;
}

.cek-result {
    margin-top: 10px;
    font-size: 13px;
}

.result-card {
    margin-top: 4px;
    padding: 10px 11px 12px;
    border-radius: 12px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.result-card p {
    margin-bottom: 3px;
}

.result-card strong {
    font-weight: 600;
}

.error-box {
    margin-top: 4px;
    padding: 10px 11px;
    border-radius: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.tips-box {
    margin-top: 14px;
    padding: 10px 11px 11px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px dashed #e5e7eb;
}

.tips-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.footer {
    border-top: 1px solid rgba(229, 231, 235, 0.8);
    background: rgba(249, 250, 251, 0.96);
    backdrop-filter: blur(12px);
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 8px 16px 10px;
    font-size: 11px;
    color: #9ca3af;
}

.btn:hover {
    opacity: 0.92;
}

.btn,
.btn:hover,
.btn:focus,
.btn:active {
    box-shadow: none !important;
}

@media (max-width: 768px) {
    .topbar-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .page {
        margin-top: 14px;
    }

    .hero {
        border-radius: 22px;
        padding: 20px 16px 18px;
    }

    .hero-title {
        font-size: 22px;
    }

    .page--split {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 20px;
    }

    .card {
        padding: 16px 14px 18px;
    }

    .card-title--big {
        font-size: 19px;
    }
}


/* ===============================
   MOBILE NAVBAR
================================ */

.nav-toggle {
    display: none;
    font-size: 22px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--bsi-dark);
}

@media (max-width: 768px) {

    .topbar-inner {
        flex-direction: row;
        justify-content: space-between;
    }

    .nav-toggle {
        display: block;
    }

    .nav {
        display: none;
        position: absolute;
        top: 58px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        border-top: 1px solid #e5e7eb;
        padding: 10px 16px;
        z-index: 50;
    }

    .nav.nav--open {
        display: flex;
    }

    .nav-link {
        padding: 10px 0;
        border-radius: 0;
    }

    /* PAGE LAYOUT STACK */
    .page--split {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 18px 16px;
    }
}


/* ===============================
   RESULT TABLE (ALIGN COLON)
================================ */

.result-table {
    display: grid;
    grid-template-columns: 110px 12px 1fr;
    row-gap: 6px;
    column-gap: 4px;
    font-size: 13px;
}

.result-table .label {
    font-weight: 600;
    color: var(--bsi-dark);
}

.result-table .colon {
    text-align: center;
}

.result-table .value {
    color: var(--bsi-dark);
}

.result-table .value--bold {
    font-weight: 700;
}



/* KPI */
    /* ===== KPI ===== */
    .kpi-row {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 16px;
      margin: 20px 0;
    }
    .kpi-box {
      padding: 18px;
      border-radius: 16px;
      color: #fff;
    }
    .kpi-box span {
      font-size: 13px;
      opacity: 0.9;
    }
    .kpi-box strong {
      display: block;
      font-size: 30px;
      margin-top: 6px;
    }
    .kpi-blues { background: linear-gradient(135deg,#2563eb,#1e40af); }
    .kpi-green { background: linear-gradient(135deg,#16a34a,#166534); }
    .kpi-teal { background: linear-gradient(135deg,#0d9488,#134e4a); }
    .kpi-orange { background: linear-gradient(135deg,#f59e0b,#b45309); }
    .kpi-indigo { background: linear-gradient(135deg,#4f46e5,#312e81); }


/* ===============================
   KPI – RESPONSIVE OPTIMIZATION
   =============================== */

    /* tablet */
    @media (max-width: 900px) {
    .kpi-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .kpi-box {
        padding: 14px;
    }

    .kpi-box strong {
        font-size: 24px;
    }
    }

    /* mobile */
    @media (max-width: 480px) {
    .kpi-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .kpi-box {
        padding: 12px 10px;
        border-radius: 14px;
        text-align: center;
    }

    .kpi-box span {
        font-size: 11px;
    }

    .kpi-box strong {
        font-size: 20px;
        margin-top: 4px;
    }
    }

    /* ===== FILTER ===== */
    .filter-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr) auto;
      gap: 10px;
    }
    .filter-grid input,
    .filter-grid select {
      padding: 10px 12px;
      border-radius: 10px;
      border: 1px solid #d1d5db;
      font-size: 14px;
    }
    .btn-reset {
      padding: 10px 20px;
      border-radius: 999px;
      border: none;
      background: #e5e7eb;
      cursor: pointer;
      font-weight: 600;
    }

    /* ===== TABLE ===== */
    .table-wrap { overflow-x: auto; }

    table.rekap-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 12.5px;
    }
    table.rekap-table th {
      background: #f9fafb;
      padding: 8px;
      text-align: left;
      white-space: nowrap;
    }
    table.rekap-table td {
      padding: 7px 8px;
      border-top: 1px solid #e5e7eb;
      white-space: nowrap;
    }
    table.rekap-table tr:hover {
      background: #f8fafc;
    }
    .td-bold { font-weight: 600; }

    /* ===== ICON ===== */
    .icon { font-size: 15px; }
    .icon-yes { color: #16a34a; }
    .icon-no { color: #dc2626; }

    /* ===== PAGINATION ===== */
    .pagination {
      display: flex;
      justify-content: flex-end;
      gap: 8px;
      margin-top: 14px;
    }
    .pagination button {
      padding: 6px 12px;
      border-radius: 8px;
      border: 1px solid #d1d5db;
      background: #fff;
      cursor: pointer;
      font-size: 13px;
    }
    .icon-yes {
    color: #16a34a;
    font-size: 16px;
    }

    .icon-no {
    color: #dc2626;
    font-size: 16px;
    }

    .icon-tp {
    color: #f59e0b;
    font-weight: 700;
    font-size: 13px;
    padding: 2px 6px;
    border-radius: 6px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    }

    /* rata tengah kolom Pre, Post, Assessment, Mentoring */
    .rekap-table th:nth-child(4),
    .rekap-table th:nth-child(5),
    .rekap-table th:nth-child(6),
    .rekap-table th:nth-child(7),
    .rekap-table th:nth-child(8),
    .rekap-table th:nth-child(9),
    .rekap-table th:nth-child(10),
    .rekap-table td:nth-child(4),
    .rekap-table td:nth-child(5),
    .rekap-table td:nth-child(6),
    .rekap-table td:nth-child(7),
    .rekap-table td:nth-child(8),
    .rekap-table td:nth-child(9),
    .rekap-table td:nth-child(10) {
    text-align: center;
    }

    .card:has(.filter-grid) {
    margin-bottom: 28px;
    }


    /* ===============================
   FILTER – RESPONSIVE / MOBILE
   =============================== */

    /* default (desktop) sudah bagus, kita biarkan */
    .filter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 12px;
    align-items: center;
    }

    /* tablet & mobile */
    @media (max-width: 768px) {
    .filter-grid {
        grid-template-columns: 1fr; /* stack ke bawah */
    }

    .filter-grid input,
    .filter-grid select {
        width: 100%;
        font-size: 15px;
        padding: 12px 14px;
    }

    .filter-grid button {
        width: 100%;
        padding: 14px;
        font-size: 15px;
        border-radius: 999px;
    }
    }

    /* extra small phone */
    @media (max-width: 420px) {
    .filter-grid input,
    .filter-grid select {
        font-size: 14px;
        padding: 12px;
    }

    .filter-grid button {
        padding: 14px;
        font-weight: 600;
    }
    }


    /* ===============================
   TABLE – RESPONSIVE / MOBILE
   =============================== */

    /* pembungkus tabel */
    .table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    }

    /* default desktop */
    .rekap-table {
    width: 100%;
    border-collapse: collapse;
    }

    /* tablet & mobile */
    @media (max-width: 768px) {

    .rekap-table {
        font-size: 12px;
        min-width: 900px; /* paksa scroll horizontal */
    }

    .rekap-table th,
    .rekap-table td {
        padding: 6px 8px;
        white-space: nowrap;
    }

    /* kolom icon lebih sempit */
    .rekap-table th:nth-child(5),
    .rekap-table th:nth-child(6),
    .rekap-table th:nth-child(7),
    .rekap-table th:nth-child(8),
    .rekap-table td:nth-child(5),
    .rekap-table td:nth-child(6),
    .rekap-table td:nth-child(7),
    .rekap-table td:nth-child(8) {
        width: 60px;
        text-align: center;
    }
    }

    /* extra small phone */
    @media (max-width: 420px) {

    .rekap-table {
        font-size: 11px;
        min-width: 860px;
    }

    .rekap-table th,
    .rekap-table td {
        padding: 5px 6px;
    }
    }


    .input-wrap {
    position: relative;
    }

    .suggestion {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    max-height: 220px;
    overflow-y: auto;
    display: none;
    }

    .suggestion div {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
    }

    .suggestion div:hover {
    background: #f1f5f9;
    }

    /* mobile tap friendly */
    @media (max-width: 768px) {
    .suggestion div {
        padding: 14px;
        font-size: 15px;
    }
    }


/* ================= GLOBAL AUTOCOMPLETE ================= */
.suggestion-global {
  position: absolute;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  z-index: 10000;
  max-height: 260px;
  overflow-y: auto;
  display: none;
}

.suggestion-global div {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
}

.suggestion-global div:hover {
  background: #f1f5f9;
}

.autocomplete{position:relative}
.autocomplete-list{
  position:absolute;top:110%;left:0;right:0;
  background:#fff;border:1px solid #d1d5db;
  border-radius:8px;max-height:220px;overflow-y:auto;
  z-index:9999;display:none;
}
.autocomplete-item{padding:10px;cursor:pointer}
.autocomplete-item:hover{background:#f1f5f9}
.center{text-align:center}
.tp{color:#f59e0b;font-weight:600}

/* ================= KPI GRID FIX ================= */
.kpi-row.kpi-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-box {
  border-radius: 18px;
  padding: 20px 18px;
  color: #fff;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kpi-box span {
  font-size: 13px;
  opacity: 0.95;
}

.kpi-box strong {
  font-size: 30px;
  margin-top: 6px;
  line-height: 1;
}

/* KPI PEMBINAAN LEBIH KECIL */
.kpi-box.kpi-small {
  padding: 14px 14px;
}

.kpi-box.kpi-small strong {
  font-size: 22px;
}

/* ================= COLOR FIX ================= */
.kpi-purple {
  background: linear-gradient(135deg, #6a5acd, #3f37c9);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .kpi-row.kpi-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  .kpi-box strong {
    font-size: 24px;
  }
}


/* ================= STATUS CELL HIGHLIGHT ================= */
.td-center {
  text-align: center;
  font-weight: 600;
}

/* HADIR */
.cell-yes {
  background: #e6f9f0;
  color: #16a34a;
}

/* TUGAS PENGGANTI */
.cell-tp {
  background: #fff7e6;
  color: #ca8a04;
}

/* TIDAK HADIR */
.cell-no {
  background: #fdecec;
  color: #dc2626;
}

/* Biar rapi */
.rekap-table td.cell-yes,
.rekap-table td.cell-tp,
.rekap-table td.cell-no {
  border-radius: 8px;
}

/* ================= TABLE DENSITY COMPACT ================= */

/* Tinggi baris lebih padat */
.rekap-table td,
.rekap-table th {
  padding: 6px 8px;          /* sebelumnya biasanya 12–16px */
  font-size: 13px;
}

/* Header tetap tegas */
.rekap-table th {
  font-size: 12.5px;
  font-weight: 600;
}

/* Center cell */
.td-center {
  text-align: center;
  vertical-align: middle;
}

/* STATUS CELL – COMPACT */
.cell-yes,
.cell-no,
.cell-tp {
  padding: 4px 6px !important;
  border-radius: 6px;
}

/* Icon size diperkecil */
.cell-yes span,
.cell-no span {
  font-size: 14px;
}

/* TP lebih kecil & rapi */
.cell-tp {
  font-size: 12px;
  font-weight: 600;
}

/* WARNA LEBIH SOFT (TIDAK TERLALU MELEBAR) */
.cell-yes {
  background: #ecfdf5;
  color: #16a34a;
}

.cell-no {
  background: #fef2f2;
  color: #dc2626;
}

.cell-tp {
  background: #fffbeb;
  color: #ca8a04;
}

/* Mobile: tambah sedikit padding horizontal */
@media (max-width: 768px) {
  .rekap-table td,
  .rekap-table th {
    padding: 5px 6px;
    font-size: 12px;
  }
}



/* ================= MOBILE NAV ================= */
.nav {
  display: flex;
  gap: 24px;
}

/* Mobile */
@media (max-width: 768px) {
  .nav {
    position: absolute;
    top: 64px;
    right: 16px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    flex-direction: column;
    padding: 12px;
    min-width: 200px;

    display: none;
    z-index: 9999;
  }

  .nav.nav-open {
    display: flex;
  }

  .nav-toggle {
    display: block;
    font-size: 22px;
    background: none;
    border: none;
    cursor: pointer;
  }
}

/* Desktop */
@media (min-width: 769px) {
  .nav-toggle {
    display: none;
  }
}


/* ================= MOBILE NAV ACTIVE STYLE ================= */
@media (max-width: 768px) {
  .nav .nav-link {
    padding: 12px 14px;
    border-radius: 8px;
    color: #475569; /* abu netral */
    font-weight: 500;
    text-align: center;
  }

  /* ACTIVE — TANPA KOTAK */
  .nav .nav-link--active {
    background: transparent !important;
    color: #00a79d; /* warna BSI */
    font-weight: 600;
    position: relative;
  }

  /* INDICATOR GARIS HALUS */
  .nav .nav-link--active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 25%;
    bottom: 25%;
    width: 4px;
    border-radius: 4px;
    background: #00a79d;
  }
}

@media (max-width: 768px) {
  .nav {
    animation: fadeSlide .2s ease;
  }

  @keyframes fadeSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* ================= MOBILE BOTTOM NAV ================= */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #ffffff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid #e5e7eb;
  z-index: 9998;
}

.mobile-bottom-nav .mb-item {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: #6b7280;
  font-size: 11px;
  padding-top: 6px;
}

.mobile-bottom-nav .mb-icon {
  width: 22px;
  height: 22px;
  margin: 0 auto 2px;
  fill: currentColor;
  display: block;
}

.mobile-bottom-nav .mb-label {
  display: block;
  line-height: 1;
}

.mobile-bottom-nav .mb-item.active {
  color: #00a79d; font-weight: 700;
}

.mobile-bottom-nav .mb-item {
  position: relative;
}

.mobile-bottom-nav .mb-item.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 20%;
  width: 60%;
  height: 3px;
  background-color: #00a79d;
  border-radius: 3px;
}

.mobile-bottom-nav .mb-item::after {
  transition: all 0.25s ease;
}



.mobile-bottom-nav .mb-item.active .mb-icon {
  fill: #00a79d;
}

/* BERI RUANG KONTEN BIAR TIDAK KETUTUP */
@media (max-width: 767px) {
  body {
    padding-bottom: 72px;
  }
}

/* HANYA TAMPIL DI MOBILE */
@media (min-width: 768px) {
  .mobile-bottom-nav {
    display: none;
  }
}


.suggestion-global {
  position: absolute;
  z-index: 9999;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,.15);
  overflow: hidden;
  display: none;
}

.suggestion-global div {
  padding: 10px 14px;
  cursor: pointer;
}

.suggestion-global div:hover {
  background: #f1f5f9;
}

.suggestion-global small {
  display: block;
  color: #64748b;
  font-size: 12px;
}

.selected-info {
  margin-top: 10px;
  background: #f8fafc;
  border-left: 4px solid #0ea5e9;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
}


/* === AUTOCOMPLETE DROPDOWN (REFINED UI) === */

.nim-suggestion-box {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    max-height: 260px;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* ITEM */
.nim-suggestion-item {
    padding: 12px 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: background 0.15s ease;
}

/* DIVIDER */
.nim-suggestion-item + .nim-suggestion-item {
    border-top: 1px solid #f0f0f0;
}

/* HOVER */
.nim-suggestion-item:hover {
    background: #f4fbfa;
}

/* NIM (PRIMARY) */
.nim-suggestion-item strong {
    font-size: 14px;
    font-weight: 600;
    color: #00a79d;
    letter-spacing: 0.3px;
}

/* NAMA + KAMPUS (SECONDARY) */
.nim-suggestion-item span {
    font-size: 13px;
    color: #555;
    line-height: 1.3;
}


.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text-main {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.batch-highlight {
    font-size: 12px;
    font-weight: 800;
    color: #ffffff;
    background: #00A79D;
    padding: 2px 8px;
    border-radius: 6px;
    margin-top: 2px;
    display: inline-block;
}

.batch-banner {
    width: 100%;
    background: linear-gradient(90deg, #0055A5, #00A79D);
    color: #ffffff;
    text-align: center;
    font-weight: 800;
    padding: 8px 12px;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* =========================
   HEADER UTAMA
   ========================= */
.main-header {
    background: #ffffff;
    border-bottom: 1px solid #e6edf2;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* =========================
   BRANDING
   ========================= */
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}


.brand-batch {
    display: inline-block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    background: #00A79D;
    padding: 3px 10px;
    border-radius: 999px;
    width: fit-content;
}

/* =========================
   NAVIGATION
   ========================= */
.main-nav {
    display: flex;
    gap: 10px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    text-decoration: none;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: #f1f7f9;
    color: #0055A5;
}

.nav-link.active {
    background: linear-gradient(90deg, #0055A5, #00A79D);
    color: #ffffff;
}


/* =====================
   TOPBAR CLEAN
   ===================== */
.topbar {
    background: #ffffff;
    border-bottom: 1px solid #e5edf3;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    height: 56px;
    display: flex;
    align-items: center;
}

/* Brand tetap kiri */
.topbar-inner > .brand {
    flex-shrink: 0;
}

/* Nav ambil semua sisa ruang dan center isinya */
.topbar-inner > .nav {
    flex: 1;
    justify-content: center;
}

/* navUserBtn tetap kanan, tidak bergeser */
.topbar-inner > #navUserBtn {
    flex-shrink: 0;
    margin-left: 12px;
}

/* nav-toggle tidak mempengaruhi layout desktop */
.topbar-inner > .nav-toggle {
    order: 3;
    margin-left: auto;
}

/* =====================
   BRAND
   ===================== */
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand-logo {
    height: 36px;
}

.brand-title {
    font-size: 14px;
    font-weight: 700;
    color: #003f5c;
    line-height: 1.2;
}

.brand-batch {
    margin-top: 2px;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    background: #00A79D;
    padding: 2px 10px;
    border-radius: 999px;
    width: fit-content;
}

/* =====================
   NAV
   ===================== */
.nav {
    display: flex;
    gap: 10px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    text-decoration: none;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: #f2f7f9;
    color: #0055A5;
}

.nav-link--active {
    background: linear-gradient(90deg, #0055A5, #00A79D);
    color: #ffffff;
}

/* =====================
   MOBILE
   ===================== */
.nav-toggle {
    display: none;
    font-size: 22px;
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 60px;
        right: 20px;
        background: #ffffff;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        flex-direction: column;
        padding: 6px;
        width: 200px;
    }

    .nav.show {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }
}


        .nim-field-wrapper {
            position: relative;
        }

        .nim-suggestion-box {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: #ffffff;
            border: 1px solid #ddd;
            border-top: none;
            max-height: 240px;
            overflow-y: auto;
            z-index: 9999;
            display: none;
        }

        .nim-suggestion-item {
            padding: 10px 12px;
            cursor: pointer;
            font-size: 14px;
            line-height: 1.4;
        }

        .nim-suggestion-item:hover {
            background: #f0f7f6;
        }

        .nim-suggestion-item strong {
            color: #00a79d;
        }

/* =====================
   TOPBAR + AKSEN BSI
   ===================== */
.topbar {
    background: #ffffff;
    border-bottom: 1px solid #e5edf3;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* GARIS KUNING BSI */
.topbar::after {
    content: "";
    display: block;
    height: 3px;
    background: #F5B400; /* Kuning BSI */
    width: 100%;
}

/* ================= HERO BUTTON ================= */
.hero-actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  justify-content:center;
}
.hero-btn{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:14px 18px 14px 22px;
  border-radius:16px;
  position:relative;
  text-decoration:none;
  min-width:220px;
}
.hero-btn::before{
  content:"";
  position:absolute;
  left:0; top:8px; bottom:8px;
  width:6px;
  border-radius:8px;
}
.hero-btn.blue{background:#eef5ff;color:#003b73}
.hero-btn.blue::before{background:#0055A5}
.hero-btn.yellow{background:#fff6db;color:#5c4a00}
.hero-btn.yellow::before{background:#f4c430}

/* ================= KPI ================= */
.kpi-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  margin-top:26px;
}
@media(max-width:768px){
  .kpi-grid{grid-template-columns:repeat(2,1fr)}
}
.kpi-blue{background:rgba(0, 159, 154, 0.08)}
.kpi-yellow{background:#fff7db}

/* ================= TABLE ================= */
.frame-2col{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
  margin-top:30px;
  align-items:stretch;
}
@media(max-width:900px){
  .frame-2col{grid-template-columns:1fr}
}
.data-card{
  background:#fff;
  border-radius:16px;
  overflow:hidden;
}
.data-head{
  padding:14px 16px;
  font-weight:700;
}
.data-head.good{background:#e9f8f3}
.data-head.bad{background:#fdecea}
.data-body{padding:10px 16px 16px}

table{width:100%;border-collapse:collapse;font-size:14px}
th,td{padding:8px;border-bottom:1px solid #eee}
th{text-align:center}
td.center{text-align:center}

.rank{font-weight:700}
.top1{background:#e8f8f5}
.top2{background:#f1fcfa}
.top3{background:#f7fffd}

/* ================= PROGRESS ================= */
.progress-wrap{
  display:flex;
  align-items:center;
  gap:8px;
}
.progress{
  flex:1;
  height:6px;
  background:#eee;
  border-radius:4px;
}
.progress>div{
  height:100%;
  border-radius:4px;
}
.good-bar{background:#1abc9c}
.bad-bar{background:#e74c3c}
.percent{
  min-width:42px;
  text-align:center;
  font-weight:600;
}

.hero--dashboard {
    text-align: center;
}

.hero-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 28px;
}

.hero-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px 18px;
    text-align: left;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
    transition: all .25s ease;
    border-left: 6px solid transparent;
}

.hero-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(0,0,0,.12);
}

.hero-card-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 6px;
}

.hero-card-icon {
    width: 28px;
    height: 28px;
    color: inherit;
    flex-shrink: 0;
}

.hero-card-icon path {
    fill: currentColor;
}

.hero-card-title {
    font-size: 15px;
    line-height: 1.3;
    margin: 2px 0 0 0;
    font-weight: 600;
}

.hero-card-text {
    font-size: 13px;
    color: #555;
}

/* VARIANT WARNA */
.hero-card--blue {
    border-left-color: #0055a5;
    color: #0055a5;
}

.hero-card--teal {
    border-left-color: #00a79d;
    color: #00a79d;
}

.hero-card--yellow {
    border-left-color: #f5b400;
    color: #7a5a00;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-card-grid {
        grid-template-columns: 1fr;
    }

    .hero-card {
        padding: 14px 16px;
    }
}


/* ================= CLICKABLE ROW ================= */
.click-row{
  cursor:pointer;
}
.click-row:hover{
  background:#f5faff !important;
}



/* ===============================
   DESKTOP: TITLE MOBILE DISEMBUNYIKAN
   =============================== */
.mobile-form-title {
  display: none;
}


/* Default: sembunyikan (desktop) */
.mobile-form-title{
  display:none !important;
}

/* Mobile: tampilkan */
@media (max-width: 768px){
  .mobile-form-title{
    display:block !important;
  }

  .split-left{
    display:none !important;
  }

  .page--split{
    display:block !important;
  }

  .split-right{
    width:100% !important;
  }
}

/* ===============================
   MOBILE FORM TITLE HIGHLIGHT
   =============================== */

.mobile-form-title{
  display:none; /* default desktop */
}

/* Mobile only */
@media (max-width: 768px){

  .mobile-form-title{
    display:block;
    padding:14px 16px;
    margin-bottom:16px;
    border-radius:14px;

    /* Highlight background */
    background: linear-gradient(
      135deg,
      #e6f7f4,
      #f1fffd
    );

    border:1px solid #cfeee8;
  }

  .mobile-form-title .pill{
    display:inline-block;
    margin-bottom:6px;
  }

  .mobile-form-title .card-title{
    margin:6px 0 6px;
    font-size:20px;
    line-height:1.3;
  }

  .mobile-form-title .card-text{
    margin:0;
    font-size:13px;
    color:#555;
  }

}
/* Warna Merah */
.btn-danger {
    background-color: #ef4444; /* Warna merah yang modern */
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}

/* Container Utama */
.page-container {
    display: flex;
    justify-content: center;
    padding: 20px;
    background-color: #f4f7f9;
    min-height: 80vh;
}

/* Kartu Putih di Tengah */
.centered-card {
    background: white;
    width: 100%;
    max-width: 500px; /* Lebar maksimal agar tidak terlalu lebar di PC */
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.header-section {
    text-align: left;
    margin-bottom: 25px;
}

.main-title {
    font-size: 24px;
    color: #001f3f;
    margin-top: 10px;
}

/* Styling Kartu Identitas Step 2 */
.identity-card {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.user-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.avatar {
    background: #e6f4f1;
    color: #2d5a5e;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.info-box {
    background: white;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.info-box small { color: #888; display: block; font-size: 11px; }
.info-box span { font-weight: bold; color: #333; }

/* Tips Styling */
.tips-container {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #ddd;
}

.tips-list {
    padding-left: 20px;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* ================================================
   APP SHELL — SIDEBAR LAYOUT
   ================================================ */

.app-shell {
    display: flex;
    height: 100vh;
    overflow: hidden;
    background: #f5f7fb;
}

/* ---- SIDEBAR ---- */
.sidebar {
    width: 240px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 200;
    transition: transform .25s ease;
    overflow: hidden;
}

.sidebar-section {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,.1) transparent;
    padding-bottom: 4px;
}

.sidebar-section::-webkit-scrollbar { width: 4px; }
.sidebar-section::-webkit-scrollbar-track { background: transparent; }
.sidebar-section::-webkit-scrollbar-thumb { background: rgba(0,0,0,.12); border-radius: 4px; }

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px 16px;
    border-bottom: 1px solid #f3f4f6;
    flex-shrink: 0;
}

.sidebar-brand img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

.sidebar-brand-text { min-width: 0; }

.sidebar-brand-title {
    font-size: 13px;
    font-weight: 700;
    color: #0055a5;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-brand-sub {
    font-size: 10.5px;
    font-weight: 700;
    color: #fff;
    background: #00a79d;
    border-radius: 999px;
    padding: 1px 8px;
    display: inline-block;
    margin-top: 3px;
}

/* ---- NAV SECTION ---- */
.sidebar-section {
    padding: 16px 12px 8px;
    flex: 1;
}

.sidebar-section-label {
    font-size: 10px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 0 8px;
    margin-bottom: 6px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 500;
    color: #4b5563;
    text-decoration: none;
    transition: background .15s, color .15s;
    margin-bottom: 2px;
}

.sidebar-link svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    opacity: .7;
}

.sidebar-link:hover {
    background: #f3f7ff;
    color: #0055a5;
}

.sidebar-link:hover svg { opacity: 1; }

.sidebar-link.active {
    background: linear-gradient(90deg, #eff6ff, #f0fdf9);
    color: #0055a5;
    font-weight: 600;
    border-left: 3px solid #0055a5;
    padding-left: 9px;
}

.sidebar-link.active svg { opacity: 1; color: #0055a5; }

/* ---- SIDEBAR FOOTER ---- */
.sidebar-footer {
    border-top: 1px solid #f3f4f6;
    padding: 10px 12px 6px;
    flex-shrink: 0;
    margin-top: auto;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    transition: background .15s;
    margin-bottom: 4px;
}

.sidebar-user:hover { background: #f9fafb; }

.sidebar-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1f3c88, #00a79d);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-user-info { min-width: 0; }
.sidebar-user-name { font-size: 12.5px; font-weight: 600; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 11px; color: #6b7280; }

.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    color: #dc2626;
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: background .15s;
}

.sidebar-logout:hover { background: #fef2f2; }
.sidebar-logout svg { width: 15px; height: 15px; }

/* ---- MAIN AREA ---- */
.app-main {
    flex: 1;
    margin-left: 240px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
}

/* ---- APP HEADER ---- */
.app-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 24px;
    height: 54px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: sticky;
    top: 0;
    z-index: 100;
    flex-shrink: 0;
}

.app-header-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #374151;
    padding: 4px;
    border-radius: 6px;
    line-height: 1;
}

.app-header-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    flex: 1;
}

.app-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.app-header-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 5px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: #374151;
    font-size: 12.5px;
    transition: background .15s;
    background: #fff;
}

.app-header-user:hover { background: #f9fafb; }

.app-header-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1f3c88, #00a79d);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.app-header-email {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---- APP CONTENT ---- */
.app-content {
    flex: 1;
    padding: 20px 24px 48px;
    max-width: none !important;
    width: 100% !important;
    box-sizing: border-box;
}

/* Semua container di dalam app-content: full width */
.app-content > *,
.app-content .page,
.app-content .admin-page,
.app-content .centered-card {
    max-width: none !important;
    width: 100% !important;
    box-sizing: border-box;
}

/* ---- SIDEBAR OVERLAY (mobile) ---- */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 199;
}

.sidebar-overlay.show { display: block; }

/* ---- MOBILE ---- */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .app-main {
        margin-left: 0;
    }

    .app-header-toggle {
        display: none;
    }

    .app-content {
        padding: 16px 16px 80px;
    }
}

/* ================================================
   HEADER RIGHT — GREETING + AVATAR
   ================================================ */
.app-header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-user-info {
    text-align: right;
    max-width: 260px;
}

#headerSubInfo {
    white-space: normal;
    word-break: break-word;
}

.header-greeting {
    font-size: 13px;
    color: #374151;
    line-height: 1.3;
}

.header-greeting strong {
    color: #0055a5;
    font-weight: 700;
}

.header-role-badge {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    background: #0055a5;
    color: #fff;
    border-radius: 999px;
    padding: 2px 10px;
    margin-top: 2px;
}

.header-role-badge.badge-admin {
    background: linear-gradient(90deg, #0055a5, #00a79d);
}

#headerSubInfo {
    font-size: 11px;
    color: #6b7280;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.header-avatar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
}

.header-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1f3c88, #00a79d);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e5e7eb;
    transition: border-color .15s;
}

.header-avatar-btn:hover .header-avatar {
    border-color: #0055a5;
}

/* BIGGER SIDEBAR LINKS */
.sidebar-link {
    font-size: 14.5px !important;
    padding: 11px 14px !important;
    gap: 12px !important;
}

.sidebar-link svg {
    width: 20px !important;
    height: 20px !important;
}

.sidebar-section-label {
    font-size: 11px !important;
    margin-bottom: 8px !important;
}

@media (max-width: 768px) {
    .header-user-info { display: flex; align-items: center; gap: 6px; }
    #headerGreeting { display: none; }
    #headerName { font-size: 13px; font-weight: 700; }
    .header-greeting { font-size: 12px; }
    .header-role-badge { font-size: 9px; padding: 1px 7px; }
}

@media (min-width: 769px) {
    .header-greeting { font-size: 14px; }
    #headerName { font-size: 15px; }
}

/* Fix body tidak scroll (scroll ada di app-main) */
body[data-page] {
    overflow: hidden;
    height: 100vh;
}

/* Sidebar mobile - hapus shadow */
.sidebar {
    box-shadow: none !important;
}

/* Mobile: app-main scroll normal */
@media (max-width: 768px) {
    body[data-page] { overflow: auto; height: auto; }
    .app-shell { height: auto; overflow: visible; }
    .app-main  { height: auto; overflow-y: visible; }
}

/* ================================================
   FIX SCROLL + LAYOUT + THEME
   ================================================ */

/* Scrollbar hanya di app-content, bukan app-main */
.app-main {
    overflow: hidden !important;
}

.app-content {
    overflow-y: auto !important;
    overflow-x: hidden;
}

/* Hilangkan max-width di dalam app-content */
.app-content .page,
.app-content .page--full,
.app-content .page--split {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Scrollbar styling */
.app-content::-webkit-scrollbar { width: 6px; }
.app-content::-webkit-scrollbar-track { background: transparent; }
.app-content::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
.app-content::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

#rankingList::-webkit-scrollbar { width: 4px; }
#rankingList::-webkit-scrollbar-track { background: transparent; }
#rankingList::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
#rankingList::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* Detail awardee responsive */
@media (max-width: 768px) {
  .detail-awardee-grid { grid-template-columns: 1fr !important; }
  .detail-awardee-grid > div:first-child { height: 320px !important; position: static !important; border-right: none !important; border-bottom: 1px solid #f3f4f6; }
  #detailCols { grid-template-columns: 1fr !important; }
}

/* ================================================
   HOME HERO — BSI BLUE THEME
   ================================================ */
.hero--dashboard {
    background: linear-gradient(135deg, #0055a5 0%, #003f7a 60%, #002a52 100%) !important;
    border-radius: 16px;
    padding: 36px 32px 32px !important;
    box-shadow: none !important;
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}

.hero--dashboard::before {
    content: "";
    position: absolute;
    top: -60px; right: -60px;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(0,167,157,.35) 0%, transparent 70%);
    pointer-events: none;
}

.hero--dashboard::after {
    content: "";
    position: absolute;
    bottom: -40px; left: 40px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(245,166,35,.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero--dashboard .hero-badge {
    background: rgba(255,255,255,.15) !important;
    color: #fde68a !important;
    font-size: 12.5px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,.2);
}

.hero--dashboard .hero-title {
    color: #ffffff !important;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
}

.hero--dashboard .hero-subtitle {
    color: rgba(255,255,255,.75) !important;
}

/* Hero cards inside dashboard hero */
.hero-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 24px;
    position: relative;
    z-index: 1;
}

.hero-card {
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 14px;
    padding: 16px 18px;
    text-decoration: none;
    transition: background .2s, transform .2s;
    display: block;
}

.hero-card:hover {
    background: rgba(255,255,255,.2);
    transform: translateY(-2px);
}

.hero-card--blue  { border-left: 3px solid #60a5fa; }
.hero-card--teal  { border-left: 3px solid #2dd4bf; }
.hero-card--yellow{ border-left: 3px solid #fbbf24; }

.hero-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.hero-card-icon {
    width: 20px; height: 20px;
    fill: rgba(255,255,255,.9);
    flex-shrink: 0;
}

.hero-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.hero-card-text {
    font-size: 12.5px;
    color: rgba(255,255,255,.7);
    line-height: 1.5;
    margin: 0;
}

/* KPI STRIP */
.kpi-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.kpi-strip .kpi-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px 18px;
}

.kpi-strip .kpi-card .kpi-val {
    font-size: 26px;
    font-weight: 800;
    color: #0055a5;
    line-height: 1;
}

.kpi-strip .kpi-card .kpi-lbl {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

/* Top table cards */
.top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

@media (max-width: 768px) {
    .hero--dashboard { padding: 24px 18px 20px !important; }
    .hero--dashboard .hero-title { font-size: 20px; }
    .app-content .page,
    .app-content .page--full { padding: 0 !important; }
}

/* ================================================
   APP CONTENT INNER LAYOUTS
   ================================================ */

/* Split layout (form pages: kiri = guide, kanan = form) */
.app-split {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    align-items: start;
}

.app-split-left {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px 20px;
    position: sticky;
    top: 20px;
}

.app-split-right {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px 24px 28px;
}

/* Page title bar */
.page-titlebar {
    margin-bottom: 20px;
}

.page-titlebar h2 {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 2px;
}

.page-titlebar p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

/* Fix admin-page padding inside app-content */
.app-content .admin-page {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/* Fix old .page--split / split-left / split-right inside app-content */
.app-content .page--split {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    align-items: start;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.app-content .split-left {
    position: sticky;
    top: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: none;
}

.app-content .split-right {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    box-shadow: none;
}

/* Header role badge fix */
.header-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.header-greeting {
    font-size: 13px;
    color: #374151;
    line-height: 1.2;
    white-space: nowrap;
}

/* Guide left panel colors */
.app-split-left .pill--blue,
.app-content .split-left .pill--blue {
    display: inline-block;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.app-split-left .card-title--big,
.app-content .split-left .card-title--big {
    font-size: 18px;
    font-weight: 700;
    color: #0055a5;
    margin-bottom: 8px;
}

.app-split-left .list,
.app-content .split-left .list {
    padding-left: 16px;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.7;
}

.guide-placeholder {
    background: linear-gradient(135deg, #eff6ff, #f0fdf9);
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 16px;
    font-size: 13px;
    color: #374151;
    line-height: 1.6;
    border: 1px solid #dbeafe;
}

.guide-placeholder-label {
    display: block;
    font-weight: 700;
    color: #0055a5;
    margin-bottom: 6px;
    font-size: 13px;
}

@media (max-width: 900px) {
    .app-content .page--split,
    .app-split {
        grid-template-columns: 1fr;
    }
    .app-content .split-left,
    .app-split-left {
        position: static;
    }
}

/* Header right — compact vertical stack */
.header-user-info {
    line-height: 1 !important;
}

.header-role-badge {
    font-size: 10px !important;
    padding: 2px 8px !important;
    margin-top: 3px !important;
    display: inline-block !important;
}

/* Remove mobile-form-title (duplikat di split layout) */
.app-content .mobile-form-title { display: none; }

/* Emoji di judul form - ganti nuansa */
.app-content .split-left .card-title--big {
    font-size: 17px !important;
}

/* Guide placeholder border */
.app-content .split-left .guide-placeholder {
    margin-top: 14px;
}

/* ================================================
   MOBILE BOTTOM NAV
   ================================================ */
.mob-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    z-index: 300;
    padding: 0 4px;
    align-items: center;
    justify-content: space-around;
}

.mob-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    height: 100%;
    text-decoration: none;
    color: #9ca3af;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .01em;
    transition: color .15s;
    padding: 0 4px;
    position: relative;
    border: none;
    background: none;
    cursor: pointer;
}

.mob-nav-item svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    transition: transform .15s;
}

.mob-nav-item.active {
    color: #00A59F;
}

.mob-nav-item.active svg {
    transform: none;
}

.mob-nav-item.active::after {
    content: "";
    position: absolute;
    bottom: 0; left: 15%; right: 15%;
    height: 3px;
    background: #00A59F;
    border-radius: 3px 3px 0 0;
}

.mob-nav-item:hover { color: #00A59F; }

/* Admin badge on mob nav */
.mob-nav-badge {
    position: absolute;
    top: 6px;
    right: calc(50% - 18px);
    background: #dc2626;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    border-radius: 999px;
    padding: 1px 5px;
    min-width: 14px;
    text-align: center;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .mob-nav { display: flex; }
    .app-content { padding-bottom: 72px !important; }
}

/* ================================================
   BSI BRAND COLOR OVERRIDE — NO GRADIENTS
   ================================================ */

/* Root vars */
:root {
  --bsi-teal:   #00A79D;
  --bsi-blue:   #0055A5;
  --bsi-yellow: #F5A623;
  --bsi-light:  #F0F7FF;
}

/* ---- SIDEBAR ---- */
.sidebar {
  background: #fff !important;
  border-right: 1px solid #e5e7eb !important;
}

.sidebar-brand-title { color: #0055A5 !important; }
.sidebar-brand-sub   { background: #0055A5 !important; color: #fff !important; }

.sidebar-link {
  color: #0055A5 !important;
  font-weight: 500 !important;
  border-radius: 8px !important;
  border-left: 3px solid transparent !important;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease, opacity 0.15s ease !important;
  position: relative !important;
  overflow: hidden !important;
  transform: translateX(0) !important;
}

.sidebar-link svg {
  color: #0055A5 !important;
  opacity: .65 !important;
  transition: opacity 0.2s ease, transform 0.2s ease !important;
}

.sidebar-link:hover {
  background: #F0F7FF !important;
  color: #0055A5 !important;
  border-left-color: #00A79D !important;
  transform: translateX(3px) !important;
  box-shadow: 0 2px 8px rgba(0,85,165,0.08) !important;
}

.sidebar-link:hover svg {
  opacity: 1 !important;
  transform: scale(1.1) !important;
}

.sidebar-link:active {
  transform: translateX(2px) scale(0.98) !important;
  box-shadow: none !important;
  opacity: 0.85 !important;
  transition-duration: 0.08s !important;
}

/* ripple */
.sidebar-link::after {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: radial-gradient(circle at var(--rx,50%) var(--ry,50%), rgba(0,85,165,0.12) 0%, transparent 70%) !important;
  opacity: 0 !important;
  transition: opacity 0.4s ease !important;
  pointer-events: none !important;
  border-radius: inherit !important;
}
.sidebar-link.rippling::after {
  opacity: 1 !important;
  transition: opacity 0s !important;
}

/* Active state */
.sidebar-link.active {
  background: linear-gradient(135deg, #EFF6FF 0%, #F0FDFA 100%) !important;
  color: #0055A5 !important;
  font-weight: 700 !important;
  border-left: 3px solid #0055A5 !important;
  padding-left: 11px !important;
  box-shadow: 0 2px 12px rgba(0,85,165,0.10), inset 0 0 0 1px rgba(0,85,165,0.06) !important;
  transform: translateX(0) !important;
  position: relative !important;
}


.sidebar-link.active svg {
  opacity: 1 !important;
  color: #0055A5 !important;
  filter: drop-shadow(0 0 3px rgba(0,85,165,0.25)) !important;
}

/* Sidebar footer user */
.sidebar-user-avatar { background: #0055A5 !important; }
.sidebar-logout { color: rgba(255,255,255,.75) !important; border: 1px solid rgba(255,255,255,.15) !important; border-radius: 10px !important; }
.sidebar-logout:hover { background: rgba(220,38,38,.85) !important; color: #fff !important; border-color: transparent !important; }

/* ---- APP HEADER ---- */
.app-header { background: #fff !important; }
.app-header-title { color: #0055A5 !important; font-weight: 700 !important; }

.header-greeting strong { color: #0055A5 !important; }

.header-role-badge {
  background: #0055A5 !important;
  color: #fff !important;
}

.header-role-badge.badge-admin {
  background: #00A79D !important;
  color: #fff !important;
}

.header-avatar { background: #0055A5 !important; border-color: #e5e7eb !important; }
.header-avatar-btn:hover .header-avatar { border-color: #F5A623 !important; }

/* ---- MOBILE BOTTOM NAV ---- */
.mob-nav { background: #fff !important; border-top: 2px solid #F5A623 !important; }

.mob-nav-item { color: #9ca3af !important; }

.mob-nav-item.active { color: #00A59F !important; }

.mob-nav-item.active::after {
  background: #00A59F !important;
  bottom: 0 !important; top: auto !important;
  border-radius: 3px 3px 0 0 !important;
}

.mob-nav-item:hover { color: #00A59F !important; }

/* ---- HERO DASHBOARD ---- */
.hero--dashboard {
  background: #0055A5 !important;
}

.hero--dashboard::before {
  background: radial-gradient(circle, rgba(0,167,157,.3) 0%, transparent 70%) !important;
}

.hero--dashboard::after {
  background: radial-gradient(circle, rgba(245,166,35,.2) 0%, transparent 70%) !important;
}

.hero--dashboard .hero-badge {
  background: rgba(255,255,255,.15) !important;
  color: #F5A623 !important;
  border-color: rgba(255,255,255,.25) !important;
}

/* ---- NAV LINK (topbar lama, fallback) ---- */
.nav-link--active {
  background: #0055A5 !important;
  color: #fff !important;
}

/* ---- BUTTONS ---- */
.btn-success { background: #00A79D !important; }
.btn-primary { background: #0055A5 !important; }

/* ---- SIDEBAR BRAND ---- */
.sidebar-section-label { color: #9ca3af !important; }

/* Remove gradients on specific elements (not sidebar-link.active) */
.header-role-badge,
.mob-nav-item.active::after {
  background-image: none !important;
}

/* ================================================
   BSI FINAL BRAND — SIDEBAR TEAL + YELLOW
   ================================================ */

/* SIDEBAR dark background */
.sidebar {
  background: #00A59F !important;
  border-right: none !important;
}

.sidebar-brand {
  border-bottom-color: rgba(255,255,255,.15) !important;
}

.sidebar-brand-title { color: #fff !important; }

.sidebar-brand-sub {
  background: linear-gradient(90deg, #FEB23E, #f97316) !important;
  color: #fff !important;
  font-weight: 800 !important;
  letter-spacing: .3px !important;
  padding: 2px 10px !important;
}

.sidebar-section-label { color: rgba(255,255,255,.55) !important; }

/* Nav links on dark bg */
.sidebar-link {
  color: rgba(255,255,255,.85) !important;
  border-left: 3px solid transparent !important;
  border-radius: 8px !important;
}

.sidebar-link svg { color: rgba(255,255,255,.7) !important; opacity: 1 !important; }

.sidebar-link:hover {
  background: rgba(255,255,255,.15) !important;
  color: #fff !important;
  border-left-color: #FEB23E !important;
}

.sidebar-link:hover svg { color: #fff !important; }

/* ACTIVE: yellow left + white bg tint */
.sidebar-link.active {
  background: rgba(255,255,255,.18) !important;
  color: #fff !important;
  font-weight: 700 !important;
  border-left: 3px solid #FEB23E !important;
  padding-left: 9px !important;
  background-image: none !important;
}

.sidebar-link.active svg { color: #fff !important; }

/* Sidebar footer */
.sidebar-footer {
  border-top-color: rgba(255,255,255,.15) !important;
}

.sidebar-user-link,
.sidebar-link[href="profile.html"] {
  color: rgba(255,255,255,.85) !important;
}

.sidebar-user-avatar {
  background: #FEB23E !important;
  color: #fff !important;
}

.sidebar-user-name { color: #fff !important; }
.sidebar-user-role { color: rgba(255,255,255,.6) !important; }

.sidebar-logout {
  color: rgba(255,255,255,.7) !important;
}

.sidebar-logout:hover {
  background: rgba(255,255,255,.12) !important;
  color: #fff !important;
}

.sidebar-logout svg { stroke: currentColor !important; }

/* ---- HERO BANNER: teal + yellow accent ---- */
.hero--dashboard {
  background: #00A59F !important;
}

.hero--dashboard::before {
  background: radial-gradient(circle, rgba(254,178,62,.25) 0%, transparent 70%) !important;
}

.hero--dashboard::after {
  background: radial-gradient(circle, rgba(0,85,165,.2) 0%, transparent 70%) !important;
}

.hero--dashboard .hero-badge {
  background: rgba(255,255,255,.2) !important;
  color: #FEB23E !important;
  border-color: rgba(255,255,255,.3) !important;
}

.hero--dashboard .hero-title { color: #fff !important; }
.hero--dashboard .hero-subtitle { color: rgba(255,255,255,.8) !important; }

.hero-card {
  background: rgba(255,255,255,.15) !important;
  border-color: rgba(255,255,255,.25) !important;
}

.hero-card:hover { background: rgba(255,255,255,.25) !important; }

.hero-card--blue   { border-left-color: #FEB23E !important; }
.hero-card--teal   { border-left-color: rgba(255,255,255,.6) !important; }
.hero-card--yellow { border-left-color: #FEB23E !important; }

.hero-card-title { color: #fff !important; }
.hero-card-text  { color: rgba(255,255,255,.75) !important; }
.hero-card-icon  { fill: #fff !important; }

/* Mobile nav border */
.mob-nav { border-top: 2px solid #FEB23E !important; }
.mob-nav-item.active { color: #00A59F !important; }
.mob-nav-item.active::after { background: #00A59F !important; bottom: 0 !important; top: auto !important; border-radius: 3px 3px 0 0 !important; }

/* Header avatar border on hover */
.header-avatar-btn:hover .header-avatar { border-color: #FEB23E !important; }

/* Header role badge */
.header-role-badge         { background: #00A59F !important; }
.header-role-badge.badge-admin { background: #FEB23E !important; color: #fff !important; }

/* Badge sekarang ada di dalam .header-greeting — styling inline */
.header-user-info {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 2px !important;
}
.header-greeting {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  flex-wrap: nowrap !important;
}
.header-role-badge {
  font-size: 10px !important;
  padding: 2px 9px !important;
  flex-shrink: 0 !important;
  margin-top: 0 !important;
}

/* ================================================
   CONTRAST FIX — NO SHADOW
   ================================================ */

/* Kill ALL shadows */
*, *::before, *::after {
  box-shadow: none !important;
  text-shadow: none !important;
}

/* SIDEBAR contrast */
.sidebar-section-label {
  color: rgba(255,255,255,.5) !important;
  font-size: 10px !important;
  letter-spacing: .1em !important;
}

.sidebar-link {
  color: #fff !important;
  font-weight: 600 !important;
  opacity: 1 !important;
}

.sidebar-link svg {
  color: #fff !important;
  opacity: .8 !important;
}

.sidebar-link:hover {
  background: rgba(0,0,0,.12) !important;
  color: #fff !important;
  border-left-color: #FEB23E !important;
  opacity: 1 !important;
}

.sidebar-link:hover svg { opacity: 1 !important; }

.sidebar-link.active {
  background: rgba(0,0,0,.18) !important;
  color: #fff !important;
  border-left-color: #FEB23E !important;
}

.sidebar-link.active svg { opacity: 1 !important; }

/* Sidebar brand divider */
.sidebar-brand { border-bottom: 1px solid rgba(255,255,255,.2) !important; }

/* Sidebar footer divider */
.sidebar-footer { border-top: 1px solid rgba(255,255,255,.2) !important; }

/* Sidebar user info */
.sidebar-user-name { color: #fff !important; font-weight: 700 !important; }
.sidebar-user-role { color: rgba(255,255,255,.7) !important; }

.sidebar-logout {
  color: #fff !important;
  opacity: .8;
}
.sidebar-logout:hover { background: rgba(0,0,0,.15) !important; opacity: 1; }

/* HERO CARDS — putih solid agar kontras */
.hero-card {
  background: rgba(0,0,0,.15) !important;
  border: 1px solid rgba(255,255,255,.3) !important;
  border-left-width: 3px !important;
}

.hero-card:hover { background: rgba(0,0,0,.25) !important; }

.hero-card-title { color: #fff !important; font-weight: 700 !important; }
.hero-card-text  { color: rgba(255,255,255,.85) !important; }

/* MENU label */
.sidebar-section { padding-top: 14px !important; }

/* Header — no border shadow */
.app-header { border-bottom: 1px solid #e5e7eb !important; }

/* KPI cards on home */
.kpi-strip .kpi-card,
.stat-card {
  border: 1px solid #e5e7eb !important;
}

/* Progress bars */
.progress-bar { box-shadow: none !important; }

/* ================================================
   SIDEBAR WHITE + KPI REDESIGN
   ================================================ */

/* SIDEBAR — putih */
.sidebar {
  background: #fff !important;
  border-right: 1px solid #e5e7eb !important;
}

.sidebar-brand { border-bottom: 1px solid #f3f4f6 !important; }
.sidebar-brand-title { color: #0055A5 !important; font-weight: 700 !important; font-family: 'Plus Jakarta Sans', sans-serif !important; font-size: 14px !important; letter-spacing: -.1px !important; }

/* Header greeting size — "Selamat Datang," sama besar dengan nama, tapi tidak tebal */
#headerGreeting { font-size: 15px !important; font-weight: 400 !important; color: #374151 !important; }
#headerName     { font-size: 15px !important; font-weight: 700 !important; color: #0055A5 !important; }
.sidebar-brand-sub   { background: linear-gradient(90deg, #FEB23E, #f97316) !important; color: #fff !important; font-weight: 800 !important; padding: 2px 10px !important; }

.sidebar-section-label { color: #9ca3af !important; }

/* Links on white bg */
.sidebar-link {
  color: #374151 !important;
  font-weight: 500 !important;
  border-left: 3px solid transparent !important;
}

.sidebar-link svg { color: #6b7280 !important; opacity: 1 !important; }

.sidebar-link:hover {
  background: #f0fdf9 !important;
  color: #00A59F !important;
  border-left-color: #00A59F !important;
}

.sidebar-link:hover svg { color: #00A59F !important; }

/* Active: teal left border + yellow highlight */
.sidebar-link.active {
  background: #fffbf0 !important;
  color: #0055A5 !important;
  font-weight: 700 !important;
  border-left: 3px solid #FEB23E !important;
  padding-left: 9px !important;
}

.sidebar-link.active svg { color: #0055A5 !important; }

/* Sidebar footer */
.sidebar-footer { border-top: 1px solid #f3f4f6 !important; padding: 10px 12px 6px !important; gap: 6px !important; margin-top: auto !important; }
.sidebar-user-name  { color: #111827 !important; font-weight: 600 !important; }
.sidebar-user-role  { color: #6b7280 !important; }
.sidebar-user-avatar { background: #00A59F !important; }

.sidebar-admin-group {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 4px;
  margin-top: 4px;
}

.sidebar-copyright {
  font-size: 10px;
  color: rgba(255,255,255,.35);
  text-align: center;
  padding: 6px 16px 14px;
  letter-spacing: .2px;
  margin-top: 0;
}

.sidebar-copyright { color: #9ca3af !important; }

.sidebar-logout       { color: #ef4444 !important; opacity: 1 !important; border: 1.5px solid #fecaca !important; background: transparent !important; }
.sidebar-logout:hover { background: #dc2626 !important; color: #fff !important; border-color: #dc2626 !important; }
.sidebar-logout:hover svg { stroke: #fff !important; }
.sidebar-logout svg   { stroke: currentColor !important; }

/* ---- KPI BOXES — warna-warni BSI ---- */
/* Hapus warna background lama (biarkan style.css lama) */
.home-kpi-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

/* Override kpi card agar pakai accent color */
.kpi-card-blue   { background: #EFF6FF !important; border-left: 4px solid #0055A5 !important; border-top: none !important; border-right: none !important; border-bottom: none !important; }
.kpi-card-teal   { background: #F0FDFA !important; border-left: 4px solid #00A59F !important; border-top: none !important; border-right: none !important; border-bottom: none !important; }
.kpi-card-yellow { background: #FFFBEB !important; border-left: 4px solid #FEB23E !important; border-top: none !important; border-right: none !important; border-bottom: none !important; }
.kpi-card-green  { background: #F0FDF4 !important; border-left: 4px solid #22c55e !important; border-top: none !important; border-right: none !important; border-bottom: none !important; }

/* Apply to existing stat/kpi cards by nth-child */
.kpi-strip .kpi-card:nth-child(1),
.home-kpi-wrap > *:nth-child(1) { background: #EFF6FF !important; border-left: 4px solid #0055A5 !important; border-color: #0055A5 !important; border-width: 0 0 0 4px !important; }

.kpi-strip .kpi-card:nth-child(2),
.home-kpi-wrap > *:nth-child(2) { background: #F0FDFA !important; border-width: 0 0 0 4px !important; border-color: #00A59F !important; }

.kpi-strip .kpi-card:nth-child(3),
.home-kpi-wrap > *:nth-child(3) { background: #FFFBEB !important; border-width: 0 0 0 4px !important; border-color: #FEB23E !important; }

.kpi-strip .kpi-card:nth-child(4),
.home-kpi-wrap > *:nth-child(4) { background: #F0FDF4 !important; border-width: 0 0 0 4px !important; border-color: #22c55e !important; }

/* KPI value colors */
.kpi-strip .kpi-card:nth-child(1) .kpi-val,
.kpi-strip .kpi-card:nth-child(1) .stat-val { color: #0055A5 !important; }
.kpi-strip .kpi-card:nth-child(2) .kpi-val,
.kpi-strip .kpi-card:nth-child(2) .stat-val { color: #00A59F !important; }
.kpi-strip .kpi-card:nth-child(3) .kpi-val,
.kpi-strip .kpi-card:nth-child(3) .stat-val { color: #d97706 !important; }
.kpi-strip .kpi-card:nth-child(4) .kpi-val,
.kpi-strip .kpi-card:nth-child(4) .stat-val { color: #16a34a !important; }

/* Mobile nav on white sidebar pages */
.mob-nav-item.active { color: #00A59F !important; }

/* KPI GRID HOME */
.kpi-grid {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 14px !important;
  margin-bottom: 24px !important;
}

.card--kpi {
  border-radius: 16px !important;
  padding: 18px 16px !important;
  border: 1px solid rgba(0,0,0,0.05) !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 0 0 1px rgba(255,255,255,0.8) inset !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
  cursor: default !important;
}
.card--kpi:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1) !important;
}
.hkpi-card {
  cursor: pointer !important;
  animation: hkpi-fadein .45s ease both !important;
}
.hkpi-card .kpi-icon-wrap { transition: transform .18s !important; }
.hkpi-card:hover .kpi-icon-wrap { transform: scale(1.12) rotate(-5deg) !important; }
.hkpi-hint { font-size:9.5px; color:#9ca3af; margin-top:4px; font-weight:500; transition:color .15s; }
.hkpi-card:hover .hkpi-hint { color:#0055a5; }
@keyframes hkpi-fadein { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }
@keyframes hkpi-in     { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }
@keyframes hkpi-bar    { from{width:0} to{width:var(--w)} }
@keyframes hkpi-num      { 0%{transform:scale(.5);opacity:0} 70%{transform:scale(1.1)} 100%{transform:scale(1);opacity:1} }
@keyframes hkpi-bar-v    { from{height:0} to{height:var(--w)} }
@keyframes hkpi-ring-draw{ from{stroke-dasharray:0 1000} }

.kpi-label { font-size: 11px !important; color: #6b7280 !important; margin-bottom: 3px !important; font-weight: 600 !important; line-height: 1.3 !important; text-transform: uppercase !important; letter-spacing: 0.4px !important; }
.card--kpi strong { font-size: 26px !important; font-weight: 800 !important; line-height: 1 !important; display: block !important; letter-spacing: -0.5px !important; }

.kpi-icon-wrap { width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0; }

.kpi-blue   { background: linear-gradient(145deg, #eff6ff, #dbeafe44) !important; }
.kpi-blue strong { color: #1d4ed8 !important; }
.kpi-icon-blue { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1d4ed8; }

.kpi-yellow { background: linear-gradient(145deg, #fffbeb, #fef3c744) !important; }
.kpi-yellow strong { color: #b45309 !important; }
.kpi-icon-yellow { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #b45309; }

.kpi-green  { background: linear-gradient(145deg, #f0fdf4, #dcfce744) !important; }
.kpi-green strong { color: #16a34a !important; }
.kpi-icon-green { background: linear-gradient(135deg, #dcfce7, #bbf7d0); color: #16a34a; }

.kpi-teal   { background: linear-gradient(145deg, #f0fdfa, #ccfbf144) !important; }
.kpi-teal strong { color: #0d9488 !important; }
.kpi-icon-teal { background: linear-gradient(135deg, #ccfbf1, #99f6e4); color: #0d9488; }

.kpi-orange { background: linear-gradient(145deg, #fff7ed, #ffedd544) !important; }
.kpi-orange strong { color: #c2410c !important; }
.kpi-icon-orange { background: linear-gradient(135deg, #ffedd5, #fed7aa); color: #c2410c; }

.kpi-purple { background: linear-gradient(145deg, #faf5ff, #ede9fe44) !important; }
.kpi-purple strong { color: #7c3aed !important; }
.kpi-icon-purple { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: #7c3aed; }

.frame-2col--asymm { grid-template-columns: 3fr 2fr !important; }

@media (max-width: 768px) {
  .detail-awardee-grid { grid-template-columns: 1fr !important; }
  .detail-awardee-grid > div:first-child { border-right: none !important; border-bottom: 1px solid #f3f4f6; max-height: 260px; }
}

@media (max-width: 1024px) {
  .kpi-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .frame-2col--asymm { grid-template-columns: 1fr !important; }
}
@media (max-width: 640px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ================================================
   HERO BANNER — REDESIGN KOMBINASI WARNA
   ================================================ */
.hero--dashboard {
  background: #0055A5 !important;
  border-radius: 16px !important;
  padding: 36px 32px 28px !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Dekorasi lingkaran teal kanan atas */
.hero--dashboard::before {
  content: "" !important;
  position: absolute !important;
  top: -80px; right: -80px !important;
  width: 320px; height: 320px !important;
  background: #00A59F !important;
  border-radius: 50% !important;
  opacity: .35 !important;
}

/* Dekorasi kuning kiri bawah */
.hero--dashboard::after {
  content: "" !important;
  position: absolute !important;
  bottom: -60px; left: -40px !important;
  width: 200px; height: 200px !important;
  background: #FEB23E !important;
  border-radius: 50% !important;
  opacity: .2 !important;
}

.hero--dashboard .hero-badge {
  background: rgba(255,255,255,.15) !important;
  color: #FEB23E !important;
  border: 1px solid rgba(255,255,255,.3) !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  padding: 5px 14px !important;
  border-radius: 999px !important;
  display: inline-block !important;
  margin-bottom: 14px !important;
}

.hero--dashboard .hero-title {
  color: #fff !important;
  font-size: 30px !important;
  font-weight: 800 !important;
  margin-bottom: 8px !important;
  position: relative; z-index: 1;
}

.hero--dashboard .hero-subtitle {
  color: rgba(255,255,255,.8) !important;
  font-size: 14px !important;
  margin-bottom: 24px !important;
  position: relative; z-index: 1;
}

/* Action cards — putih transparan dengan border */
.hero-card-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 12px !important;
  position: relative !important;
  z-index: 1 !important;
}

.hero-card {
  background: rgba(255,255,255,.12) !important;
  border: 1.5px solid rgba(255,255,255,.25) !important;
  border-radius: 12px !important;
  padding: 16px 18px !important;
  text-decoration: none !important;
  transition: background .2s, transform .15s !important;
  display: block !important;
}

.hero-card:hover {
  background: rgba(255,255,255,.22) !important;
  transform: translateY(-2px) !important;
  border-color: #FEB23E !important;
}

/* Kiri border warna berbeda tiap card */
.hero-card--blue   { border-left: 3px solid #FEB23E !important; }
.hero-card--teal   { border-left: 3px solid rgba(255,255,255,.6) !important; }
.hero-card--yellow { border-left: 3px solid #FEB23E !important; }

.hero-card-header {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 6px !important;
}

.hero-card-icon { width: 18px !important; height: 18px !important; fill: #FEB23E !important; flex-shrink: 0 !important; }
.hero-card-title { font-size: 14px !important; font-weight: 700 !important; color: #fff !important; }
.hero-card-text  { font-size: 12.5px !important; color: rgba(255,255,255,.75) !important; line-height: 1.5 !important; margin: 0 !important; }

@media (max-width: 768px) {
  .hero-card-grid { grid-template-columns: 1fr !important; }
  .hero--dashboard { padding: 24px 18px 20px !important; }
  .hero--dashboard .hero-title { font-size: 22px !important; }
}

.badge-lecture { background: linear-gradient(135deg,#ede9fe,#ddd6fe); color: #6d28d9; }

.sidebar-brand-title,
.sidebar-brand-sub {
  text-transform: uppercase;
}

/* =========================================================
   HEADER GREETING + ROLE BADGE — richer design
========================================================= */

.header-user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  line-height: 1.25;
}

.header-greeting {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6b7280;
  font-weight: 400;
}
.header-greeting strong {
  color: #0055a5;
  font-weight: 700;
  font-size: 13.5px;
}

#headerSubInfo {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #6b7280;
  font-weight: 500;
  letter-spacing: 0.1px;
}
#headerSubInfo svg {
  width: 11px; height: 11px;
  color: #9ca3af;
  flex-shrink: 0;
}

/* ---- AVATAR ---- */
.header-avatar-btn {
  display: inline-flex;
  padding: 2px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dbeafe, #e0f2fe);
  transition: transform .18s, box-shadow .18s;
}
.header-avatar-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 85, 165, 0.18);
}
.header-avatar {
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1f3c88, #0055a5);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
  letter-spacing: 0.3px;
}

/* =========================================================
   ROLE BADGE — tinggi specificity + !important biar menang
========================================================= */
header.app-header .header-role-badge,
.app-header .header-role-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 3px 10px 3px 7px !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  border-radius: 999px !important;
  line-height: 1.5 !important;
  vertical-align: middle !important;

  /* DEFAULT = AWARDEE — biru */
  background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%) !important;
  color: #1e40af !important;
  border: 1px solid #bfdbfe !important;
  box-shadow: 0 1px 2px rgba(30, 64, 175, 0.08) !important;
}

.app-header .header-role-badge svg {
  width: 12px !important;
  height: 12px !important;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
}

/* LECTURE — emerald */
.app-header .header-role-badge.badge-lecture {
  background: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 100%) !important;
  color: #047857 !important;
  border-color: #a7f3d0 !important;
  box-shadow: 0 1px 2px rgba(4, 120, 87, 0.1) !important;
}

/* OPERATOR — violet */
.app-header .header-role-badge.badge-operator {
  background: linear-gradient(135deg, #ede9fe 0%, #f5f3ff 100%) !important;
  color: #6d28d9 !important;
  border-color: #ddd6fe !important;
  box-shadow: 0 1px 2px rgba(109, 40, 217, 0.1) !important;
}

/* ADMIN — amber/gold */
.app-header .header-role-badge.badge-admin {
  background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%) !important;
  color: #b45309 !important;
  border-color: #fde68a !important;
  box-shadow: 0 1px 2px rgba(180, 83, 9, 0.1) !important;
}

/* Mobile */
@media (max-width: 640px) {
  .header-greeting { font-size: 12px; gap: 6px; }
  .header-greeting strong { font-size: 12.5px; }
  .app-header .header-role-badge {
    font-size: 9.5px !important;
    padding: 2px 8px 2px 6px !important;
  }
  .app-header .header-role-badge svg { width: 10px !important; height: 10px !important; }
  .header-avatar { width: 32px; height: 32px; font-size: 11px; }
}