/* =========================================
   HS GROUP - DASHBOARD STYLESHEET
========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #030914;
  --panel: rgba(7, 23, 42, .83);
  --line: rgba(40, 139, 255, .34);
  --blue: #087bff;
  --cyan: #20c9ff;
  --text: #edf5ff;
  --muted: #91a7c1;
  --green: #20dfa0;
  --red: #ff5e73;
}

/* =========================================
   GLOBAL
========================================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(
      ellipse at 75% 8%,
      #062958 0,
      transparent 32%
    ),
    radial-gradient(
      ellipse at 4% 85%,
      #031c3a 0,
      transparent 34%
    ),
    var(--bg);

  color: var(--text);
  font: 14px Inter, Arial, sans-serif;
  min-height: 100vh;
}

button,
input,
select {
  font-family: inherit;
}

button {
  cursor: pointer;
}

/* =========================================
   APP SHELL
========================================= */

.app-shell {
  min-height: 100vh;
  display: flex;
}

/* =========================================
   SIDEBAR
========================================= */

.sidebar {
  width: 238px;
  flex: 0 0 238px;

  background: rgba(2, 10, 21, .94);
  border-right: 1px solid rgba(0, 133, 255, .42);

  padding: 22px 13px;

  display: flex;
  flex-direction: column;

  z-index: 5;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;

  padding: 0 12px 25px;
  border-bottom: 1px solid #102943;
}

.brand-mark {
  width: 39px;
  height: 39px;

  border-radius: 12px;

  background: linear-gradient(
    145deg,
    #0b8bff,
    #0345b8
  );

  display: grid;
  place-items: center;

  font-size: 24px;
  font-weight: 800;

  box-shadow: 0 0 22px #007bff88;
}

.brand b {
  display: block;
  font-size: 17px;
  letter-spacing: .4px;
}

.brand small,
.admin small {
  display: block;
  color: #58baff;

  font-size: 9px;
  letter-spacing: 1.2px;

  margin-top: 3px;
}

/* =========================================
   SIDEBAR NAVIGATION
========================================= */

.nav-caption {
  font-size: 9px;
  color: #58718d;
  letter-spacing: 1.4px;

  padding: 25px 13px 10px;
}

.sidebar nav {
  display: grid;
  gap: 5px;
}

.nav-item {
  padding: 12px 11px;

  border-radius: 9px;

  color: #a9bdd2;
  text-decoration: none;
  font-size: 12px;

  display: flex;
  align-items: center;
  gap: 12px;

  border: 1px solid transparent;

  transition: .2s ease;
}

.nav-item span {
  width: 18px;
  text-align: center;
  font-size: 17px;
}

.nav-item:hover,
.nav-item.active {
  background: linear-gradient(
    90deg,
    #0757c9,
    #047cff
  );

  border-color: #24aaff;
  color: white;

  box-shadow: 0 0 18px #007bff66;
}

.nav-item[hidden] {
  display: none !important;
}

.sidebar-bottom {
  margin-top: auto;

  padding: 15px 10px 4px;

  color: #829ab5;
  font-size: 11px;

  border-top: 1px solid #102943;
}

.status-dot {
  display: inline-block;

  width: 7px;
  height: 7px;

  background: #21d99a;
  border-radius: 50%;

  margin-right: 8px;

  box-shadow: 0 0 8px #21d99a;
}

/* =========================================
   MAIN AREA
========================================= */

.main-area {
  min-width: 0;
  flex: 1;
}

/* =========================================
   TOPBAR
========================================= */

.topbar {
  height: 65px;

  border-bottom: 1px solid rgba(30, 122, 212, .23);

  background: #030b17cc;

  display: flex;
  align-items: center;

  padding: 0 34px;
  gap: 18px;
}

.search-global {
  width: min(400px, 55%);

  border: 1px solid #17395b;
  background: #061426;

  border-radius: 10px;

  padding: 9px 13px;
  color: #8ba7c3;
}

.search-global input {
  background: none;
  border: 0;
  outline: 0;

  color: white;

  width: 90%;
  margin-left: 7px;
}

/* =========================================
   USER PROFILE
========================================= */

.admin {
  margin-left: auto;

  display: flex;
  align-items: center;

  gap: 10px;
  font-size: 11px;
}

.admin small {
  color: #91a7c1;
  letter-spacing: 0;
}

.admin b {
  display: block;

  max-width: 160px;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar {
  width: 32px;
  height: 32px;

  border-radius: 50%;

  background: linear-gradient(
    140deg,
    #e3f2ff,
    #54789e
  );

  color: #09203b;

  display: grid;
  place-items: center;

  font-weight: 800;
}

.bell {
  font-size: 19px;
  color: #9bb8d6;
  margin-right: 12px;
}

.admin #logoutButton {
  margin-left: 10px;
  white-space: nowrap;
}

.mobile-menu {
  display: none;

  border: 0;
  background: none;

  color: white;
  font-size: 20px;
}

/* =========================================
   MAIN CONTENT
========================================= */

.content {
  max-width: 1600px;
  margin: auto;

  padding: 30px 34px 22px;
}

/* =========================================
   PAGE HEADING
========================================= */

.page-heading {
  display: flex;
  align-items: center;

  gap: 15px;
  margin-bottom: 18px;
}

.heading-icon {
  width: 55px;
  height: 55px;

  border: 1px solid #168eff;
  border-radius: 50%;

  display: grid;
  place-items: center;

  color: #65caff;
  font-size: 27px;

  box-shadow: 0 0 22px #007bff66;
  background: #06234a;
}

.eyebrow {
  font-size: 9px;
  letter-spacing: 1.5px;

  color: #49b7ff;

  margin-bottom: 5px;
}

.page-heading h1 {
  font-size: 25px;
  margin: 0 0 5px;
}

.page-heading p,
.panel-title p {
  margin: 0;

  color: var(--muted);
  font-size: 11px;
}

.heading-spacer {
  flex: 1;
}

/* =========================================
   API BALANCE
========================================= */

.api-balance {
  display: flex;
  align-items: center;

  gap: 12px;
  padding: 11px 15px;

  background: linear-gradient(
    120deg,
    #06223b,
    #061629
  );

  border: 1px solid #13517c;
  border-radius: 11px;

  min-width: 220px;
}

.balance-icon {
  font-size: 24px;
  color: #19d4e8;
}

.api-balance small {
  display: block;

  color: #9ab0c9;
  font-size: 10px;
}

.api-balance b {
  display: block;

  color: #25e5b0;
  margin-top: 4px;
}

.icon-btn,
.close-btn {
  margin-left: auto;

  border: 1px solid #147bc3;
  background: #092342;

  color: #dff4ff;

  border-radius: 8px;
  padding: 7px 10px;
}

/* =========================================
   DEMO ALERT
========================================= */

.demo-alert {
  display: flex;
  align-items: center;

  gap: 11px;
  padding: 10px 14px;

  border: 1px solid #765b23;
  background: #2a210d88;

  border-radius: 9px;

  margin: 0 0 16px;

  color: #ffd477;
}

.demo-alert > span {
  font-size: 19px;
}

.demo-alert b,
.demo-alert small {
  display: block;
}

.demo-alert b {
  font-size: 10px;
  letter-spacing: 1px;
}

.demo-alert small {
  font-size: 10px;
  color: #c6b17d;

  margin-top: 3px;
}

/* =========================================
   STATISTICS GRID
========================================= */

.stats-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 14px;
  margin-bottom: 16px;
}

.stat-card,
.panel {
  background: linear-gradient(
    135deg,
    rgba(11, 34, 58, .88),
    rgba(4, 16, 31, .9)
  );

  border: 1px solid var(--line);
  border-radius: 15px;

  box-shadow:
    0 12px 35px #0005,
    inset 0 1px #ffffff0b;
}

.stat-card {
  padding: 17px 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 103px;
}

.stat-card small {
  display: block;

  color: #a9bdd2;
  font-size: 11px;
}

.stat-card strong {
  display: block;

  font-size: 23px;

  margin: 7px 0 5px;
}

.stat-card em {
  font-size: 10px;
  font-style: normal;
}

.positive {
  color: var(--green);
}

.negative {
  color: var(--red);
}

.stat-icon {
  width: 40px;
  height: 40px;

  border-radius: 12px;

  display: grid;
  place-items: center;

  font-size: 23px;

  border: 1px solid currentColor;

  box-shadow: 0 0 17px currentColor;
}

.blue {
  color: #168dff;
}

.green {
  color: #13dda0;
}

.red {
  color: #ff5974;
}

.cyan {
  color: #18c8ff;
}

/* =========================================
   VALIDATOR FORMS
========================================= */

.forms-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 16px;
  margin-bottom: 16px;
}

.panel {
  padding: 19px;
}

.panel-title {
  display: flex;
  align-items: center;

  gap: 11px;

  margin-bottom: 17px;
}

.panel-icon {
  width: 37px;
  height: 37px;

  display: grid;
  place-items: center;

  background: linear-gradient(
    145deg,
    #078dff,
    #0751c9
  );

  border-radius: 10px;

  font-size: 19px;

  box-shadow: 0 0 15px #007bff66;
}

.panel-title h2 {
  font-size: 15px;
  margin: 0 0 5px;
}

.validator-form {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 12px;
}

.validator-form label {
  font-size: 10px;
  color: #b9cde1;

  display: grid;
  gap: 7px;
}

.validator-form input,
.validator-form select,
.filters input,
.filters select {
  width: 100%;
  min-width: 0;

  border: 1px solid #31516d;
  border-radius: 7px;

  background: #081a2d;
  color: #eff7ff;

  padding: 11px 12px;

  outline: none;
  font: 12px Inter, Arial, sans-serif;
}

.validator-form input:focus,
.validator-form select:focus,
.filters input:focus,
.filters select:focus {
  border-color: #0b9dff;

  box-shadow: 0 0 0 2px #078bff22;
}

.validator-form select option,
.filters select option {
  background: #07182b;
}

.primary-btn {
  grid-column: 1 / -1;

  border: 1px solid #279eff;
  border-radius: 7px;

  padding: 11px;

  background: linear-gradient(
    90deg,
    #0868ed,
    #008fff
  );

  color: white;

  font-weight: 700;
  font-size: 12px;

  box-shadow: 0 5px 16px #006dff44;
}

.primary-btn:hover {
  filter: brightness(1.13);
}

.primary-btn:disabled {
  opacity: .6;
  cursor: wait;
}

/* =========================================
   EWALLET OPTIONS
========================================= */

.wallet-form {
  grid-template-columns: 1fr;
}

.wallet-options {
  display: grid;

  grid-template-columns: repeat(5, 1fr);

  gap: 7px;
}

.wallet-option {
  background: #0a1c30;

  border: 1px solid #25445e;
  border-radius: 7px;

  color: #c5d5e6;

  padding: 9px 4px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 5px;

  font-size: 9px;
}

.wallet-option.selected {
  border-color: #138eff;

  background: #07356a;

  box-shadow: 0 0 12px #007bff55;

  color: white;
}

.wallet-logo {
  width: 17px;
  height: 17px;

  border-radius: 5px;

  display: grid;
  place-items: center;

  color: white;

  font-size: 10px;
  font-weight: 800;
}

.dana {
  background: #168bff;
}

.ovo {
  background: #7642c9;
}

.gopay {
  background: #00a9df;
}

.shopee {
  background: #ed633e;
}

.linkaja {
  background: #e62d4e;
}

/* =========================================
   VALIDATION RESULT
========================================= */

.result-box {
  display: flex;
  align-items: flex-start;

  gap: 10px;
  margin-top: 13px;

  border-radius: 9px;

  padding: 12px;

  border: 1px solid #1d4c64;
  background: #061d2b;

  min-height: 62px;
}

.empty-result {
  border-style: dashed;
  background: #06182a;
}

.result-symbol {
  width: 24px;
  height: 24px;

  flex: 0 0 24px;

  border-radius: 50%;

  display: grid;
  place-items: center;

  background: #0b493c;
  color: #37efad;

  font-weight: 800;
}

.result-box b {
  display: block;

  color: #34e5a7;

  font-size: 12px;

  margin: 2px 0 6px;
}

.result-box small {
  display: block;

  color: #a8bfd3;

  font-size: 10px;
  line-height: 1.6;
}

.result-details {
  margin-left: auto;

  text-align: right;

  font-size: 10px;
  color: #dcecff;
}

.result-details b {
  font-size: 11px;
}

/* =========================================
   VALIDATION HISTORY
========================================= */

.history-panel {
  padding: 18px 19px;
}

.history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.history-head .panel-title {
  margin: 0;
}

.outline-btn {
  border: 1px solid #2873a9;

  background: #0a2038;
  color: #dcefff;

  border-radius: 7px;

  padding: 9px 12px;

  font-size: 10px;
}

.outline-btn:hover {
  border-color: #28a9ff;
  background: #0d3154;
}

.filters {
  display: grid;

  grid-template-columns:
    155px 130px 130px minmax(160px, 1fr);

  gap: 9px;

  margin: 17px 0 12px;
}

.filters label {
  font-size: 9px;
  color: #8fa8c1;

  display: flex;
  align-items: center;

  gap: 7px;
}

.filters input,
.filters select {
  padding: 9px;
  font-size: 10px;
}

/* =========================================
   HISTORY TABLE
========================================= */

.table-wrap {
  overflow: auto;

  border: 1px solid #163b5a;
  border-radius: 8px;
}

table {
  width: 100%;

  border-collapse: collapse;
  white-space: nowrap;

  font-size: 10px;
}

th {
  background: #0b2036;

  color: #8faecc;

  text-align: left;

  padding: 11px 10px;

  font-weight: 600;
}

td {
  padding: 10px;

  border-top: 1px solid #122d47;

  color: #c8d8e8;
}

tbody tr:hover {
  background: #0c2b49;
}

.status-pill {
  padding: 4px 8px;

  border-radius: 20px;

  background: #064b3c;
  color: #4cf0b4;

  font-size: 9px;
}

.status-pill.fail {
  background: #541f30;
  color: #ff8294;
}

.view-btn {
  border: 1px solid #1c6ba4;

  background: #08284a;
  color: #bfe4ff;

  border-radius: 5px;

  padding: 4px 8px;
}

.empty-history {
  text-align: center;

  color: #8fa8c1;

  padding: 25px;

  font-size: 11px;
}

.table-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;

  color: #7893ad;

  font-size: 10px;

  padding-top: 12px;
}

.text-btn {
  background: none;
  border: 0;

  color: #ff8294;

  font-size: 10px;
}

/* =========================================
   FOOTER
========================================= */

footer {
  padding: 22px 0 0;

  color: #526b86;

  font-size: 9px;
  letter-spacing: 1px;
}

footer span {
  color: #159eff;
  margin: 0 5px;
}

.footer-demo {
  color: #d8b56b;
}

/* =========================================
   TOAST
========================================= */

.toast {
  position: fixed;

  right: 22px;
  bottom: 22px;

  padding: 12px 16px;

  border: 1px solid #1889da;
  border-radius: 9px;

  background: #082440;
  color: white;

  box-shadow: 0 10px 30px #0009;

  opacity: 0;

  transform: translateY(10px);

  transition: .25s;

  pointer-events: none;

  z-index: 20;

  font-size: 12px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   MODAL
========================================= */

.modal-backdrop {
  position: fixed;
  inset: 0;

  background: #000a;

  display: grid;
  place-items: center;

  padding: 20px;

  z-index: 15;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  width: min(480px, 100%);

  border: 1px solid #168cff;
  border-radius: 15px;

  background: linear-gradient(
    145deg,
    #0c2744,
    #04101f
  );

  padding: 20px;

  box-shadow: 0 0 45px #007bff44;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 18px;
}

.modal-head small {
  font-size: 9px;

  color: #4dbaff;

  letter-spacing: 1px;
}

.modal-head h3 {
  margin: 5px 0 0;
  font-size: 17px;
}

.close-btn {
  font-size: 19px;
  padding: 2px 9px;
}

.detail-grid {
  display: grid;

  grid-template-columns: 130px 1fr;

  gap: 12px;

  font-size: 11px;

  padding: 15px;

  border: 1px solid #1c486b;
  border-radius: 9px;

  background: #06192c;
}

.detail-grid span:nth-child(odd) {
  color: #819bb6;
}

.detail-grid span:nth-child(even) {
  color: #e4f2ff;
  overflow-wrap: anywhere;
}

.modal-done {
  display: block;

  margin: 16px 0 0 auto;
}

/* =========================================
   RESPONSIVE TABLET
========================================= */

@media (max-width: 1100px) {

  .sidebar {
    width: 205px;
    flex-basis: 205px;
  }

  .content {
    padding: 24px 20px;
  }

  .wallet-options {
    grid-template-columns: repeat(3, 1fr);
  }

  .filters {
    grid-template-columns: repeat(2, 1fr);
  }

}

/* =========================================
   RESPONSIVE MOBILE
========================================= */

@media (max-width: 760px) {

  .sidebar {
    position: fixed;

    left: -250px;
    top: 0;
    bottom: 0;

    width: 238px;

    transition: left .25s;
  }

  .sidebar.open {
    left: 0;
    box-shadow: 15px 0 40px #0009;
  }

  .mobile-menu {
    display: block;
  }

  .topbar {
    padding: 0 14px;
    height: 58px;
  }

  .search-global {
    width: auto;
    flex: 1;
    min-width: 80px;
  }

  .admin .bell {
    display: none;
  }

  .admin {
    gap: 6px;
  }

  .admin #logoutButton {
    padding: 7px 9px;
    margin-left: 4px;
  }

  .admin > div:nth-child(2) {
    display: none;
  }

  .content {
    padding: 20px 13px;
  }

  .page-heading {
    flex-wrap: wrap;
    gap: 10px;
  }

  .heading-icon {
    width: 44px;
    height: 44px;
  }

  .page-heading h1 {
    font-size: 18px;
  }

  .page-heading p {
    font-size: 10px;
  }

  .heading-spacer {
    display: none;
  }

  .api-balance {
    width: 100%;
    min-width: 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
  }

  .stat-card {
    padding: 13px;
    min-height: 90px;
  }

  .stat-card strong {
    font-size: 20px;
  }

  .stat-icon {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .forms-grid {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 14px;
  }

  .wallet-options {
    grid-template-columns: repeat(3, 1fr);
  }

  .history-head {
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
  }

  .filters {
    grid-template-columns: 1fr 1fr;
  }

  .filters .history-search {
    grid-column: 1 / -1;
  }

  .table-foot {
    align-items: flex-start;
    gap: 8px;
    flex-direction: column;
  }

  .demo-alert small {
    line-height: 1.5;
  }

}

/* =========================================
   RESPONSIVE SMALL MOBILE
========================================= */

@media (max-width: 420px) {

  .search-global {
    padding: 8px;
  }

  .admin #logoutButton {
    font-size: 9px;
  }

  .stat-card strong {
    font-size: 18px;
  }

  .page-heading h1 {
    font-size: 17px;
  }

}

/* =========================================
   HS GROUP - E-WALLET 4 OPTIONS
========================================= */

.wallet-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.wallet-option {
    width: 100%;
    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    padding: 11px 5px;

    border-radius: 8px;

    font-size: 10px;

    transition: all 0.2s ease;
}

.wallet-option:hover {
    border-color: #168eff;
    background: #0a3159;
}

.wallet-option.selected {
    border-color: #168eff;

    background: linear-gradient(
        135deg,
        #074c9c,
        #07356a
    );

    box-shadow: 0 0 15px #007bff55;
}

/* RESPONSIVE */

@media (max-width: 480px) {

    .wallet-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

/* =========================================
   HS GROUP - ADMIN PROFILE
========================================= */

.admin {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin .avatar {
    width: 36px;
    height: 36px;

    flex: 0 0 36px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: linear-gradient(
        135deg,
        #087bff,
        #20c9ff
    );

    color: #ffffff;

    font-size: 14px;
    font-weight: 800;

    box-shadow:
        0 0 15px rgba(0, 123, 255, 0.25);
}

.admin #userName {
    display: block;

    max-width: 160px;

    color: #edf5ff;

    font-size: 12px;
    font-weight: 700;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin #userRole {
    display: block;

    margin-top: 4px;

    color: #58baff;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.5px;
}

/* RESPONSIVE */

@media (max-width: 760px) {

    .admin #userName,
    .admin #userRole {
        display: none;
    }

    .admin {
        gap: 8px;
    }

}

/* =========================================
   HS GROUP - API VALIDATION STATUS
========================================= */

.status-pill {
    display: inline-block;
}

.status-pill.demo {
    background: rgba(255, 212, 119, 0.12);
    color: #ffd477;
    border: 1px solid rgba(255, 212, 119, 0.35);
}

.result-box {
    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.primary-btn:disabled {
    opacity: 0.55;
    cursor: wait;
    filter: grayscale(0.25);
}

/* =========================================
   HS GROUP - SMART CACHE NOTICE
========================================= */

.result-box:has(.cache-notice) {
    flex-wrap: wrap;

    border-color: rgba(32, 201, 255, 0.55);

    background: linear-gradient(
        135deg,
        rgba(6, 41, 74, 0.85),
        rgba(4, 22, 40, 0.95)
    );
}

.cache-notice {

    flex: 0 0 100%;

    margin-top: 6px;

    padding: 10px 12px;

    border: 1px solid rgba(32, 201, 255, 0.35);

    border-radius: 8px;

    background: rgba(8, 123, 255, 0.10);

    color: #65caff;

    font-size: 10px;

    font-weight: 600;

    line-height: 1.6;

}