
/* ==========================================
   KZ ANTICHEAT — DASHBOARD V2
   DARK SECURITY INTERFACE
========================================== */

:root {
  --dash-bg: #080b11;
  --dash-sidebar: #0c1018;
  --dash-panel: #101620;
  --dash-panel-hover: #141c29;
  --dash-border: #202a39;
  --dash-blue: #168bff;
  --dash-blue-light: #66bbff;
  --dash-text: #eef3fb;
  --dash-muted: #8592a6;
}

.dashboard-page {
  min-height: 100vh;
  background: var(--dash-bg);
  color: var(--dash-text);
  font-family: "Inter", sans-serif;
}

.dashboard-page button,
.dashboard-page a {
  -webkit-tap-highlight-color: transparent;
}

.dashboard-layout {
  min-height: 100vh;
}

/* ==========================================
   SIDEBAR
========================================== */

.dashboard-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 110;
  width: 258px;
  display: flex;
  flex-direction: column;
  padding: 28px 14px 18px;
  background: var(--dash-sidebar);
  border-right: 1px solid var(--dash-border);
  overflow-y: auto;
}

.dashboard-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px 38px;
  color: white;
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
}

.dashboard-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.dashboard-brand strong {
  color: var(--dash-blue-light);
}

.sidebar-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 30px;
}

.sidebar-label {
  padding: 0 13px 12px;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.3px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 45px;
  padding: 11px 13px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #98a6ba;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  transition: background .2s, color .2s, border-color .2s;
}

.sidebar-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke-width: 1.8;
}

.sidebar-link:hover {
  background: #151e2b;
  color: #f4f8ff;
}

.sidebar-link.active {
  background: #102847;
  border-color: #1c5c9f;
  color: #70beff;
}

.sidebar-link.active svg {
  color: #40a6ff;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--dash-border);
}

.sidebar-account {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 9px 18px;
}

.account-avatar,
.topbar-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 37px;
  height: 37px;
  border: 1px solid #235b98;
  border-radius: 10px;
  background: #112e50;
  color: #8fceff;
}

.account-avatar svg,
.topbar-avatar svg {
  width: 18px;
  height: 18px;
}

.sidebar-account strong {
  display: block;
  color: #e6ecf5;
  font-size: 11px;
  line-height: 1.5;
}

.sidebar-account small {
  display: block;
  margin-top: 3px;
  color: var(--dash-muted);
  font-size: 10px;
}

.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border-radius: 8px;
  color: #9aa7b9;
  font-size: 12px;
  transition: .2s;
}

.sidebar-logout svg {
  width: 17px;
  height: 17px;
}

.sidebar-logout:hover {
  background: #171f2b;
  color: white;
}

/* ==========================================
   MAIN
========================================== */

.dashboard-main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
  margin-left: 258px;
}

/* TOPBAR */

.dashboard-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 79px;
  padding: 15px 34px;
  background: rgba(9, 13, 20, .95);
  border-bottom: 1px solid var(--dash-border);
  backdrop-filter: blur(14px);
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--dash-blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.dashboard-topbar h1 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.5px;
}

.dashboard-demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid #224d7c;
  border-radius: 7px;
  background: #0f233b;
  color: #83c5ff;
  font-size: 10px;
  font-weight: 800;
}

.dashboard-demo-badge svg {
  width: 14px;
  height: 14px;
}

.sidebar-toggle {
  display: none;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--dash-border);
  border-radius: 8px;
  background: #151e2b;
  color: white;
}

.sidebar-toggle svg {
  width: 20px;
  height: 20px;
}

/* CONTENT */

.dashboard-content {
  flex: 1;
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
  padding: 30px 34px;
}

.dashboard-section {
  display: none;
  animation: dashboardFade .3s ease;
}

.dashboard-section.active:not([hidden]) {
  display: block;
}

.dashboard-section[hidden] {
  display: none !important;
}

/* ==========================================
   WELCOME
========================================== */

.dashboard-welcome {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 165px;
  margin-bottom: 22px;
  padding: 28px 32px;
  border: 1px solid #20436d;
  border-radius: 13px;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse at 100% 50%,
      rgba(0, 103, 255, .19),
      transparent 65%
    ),
    linear-gradient(115deg, #101b2d, #0e1622);
}

.dashboard-welcome h2 {
  margin: 12px 0 9px;
  font-size: clamp(23px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: -.9px;
}

.dashboard-welcome p {
  max-width: 550px;
  color: #9aa9bd;
  font-size: 12px;
  line-height: 1.7;
}

.welcome-symbol {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border: 1px solid #24568b;
  border-radius: 22px;
  background: #0b2b4e;
  color: #49aaff;
  transform: rotate(-8deg);
  box-shadow: 0 0 45px #087bff22;
}

.welcome-symbol svg {
  width: 57px;
  height: 57px;
  stroke-width: 1.3;
}

/* ==========================================
   STATS
========================================== */

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  min-height: 145px;
  padding: 21px;
  border: 1px solid var(--dash-border);
  border-radius: 11px;
  background: var(--dash-panel);
  transition: border-color .2s, transform .2s;
}

.stat-card:hover {
  border-color: #2364a5;
  transform: translateY(-3px);
}

.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.stat-top svg {
  width: 19px;
  height: 19px;
  color: #4daaff;
  stroke-width: 1.8;
}

.stat-label {
  color: #a5b2c3;
  font-size: 12px;
  font-weight: 600;
}

.stat-card > strong {
  margin: 17px 0 8px;
  color: white;
  font-size: 31px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.7px;
}

.stat-card > strong.stat-status {
  color: #59b4ff;
  font-size: 26px;
}

.stat-card small {
  color: #7b899d;
  font-size: 10px;
  line-height: 1.5;
}

/* ==========================================
   PANELS
========================================== */

.dashboard-panels {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 18px;
}

.dashboard-panel {
  min-width: 0;
  padding: 23px;
  border: 1px solid var(--dash-border);
  border-radius: 12px;
  background: var(--dash-panel);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 19px;
  border-bottom: 1px solid var(--dash-border);
}

.panel-heading h3 {
  margin-bottom: 7px;
  color: #edf3fb;
  font-size: 14px;
  font-weight: 800;
}

.panel-heading p {
  color: var(--dash-muted);
  font-size: 11px;
}

.panel-tag {
  padding: 6px 9px;
  border: 1px solid #28517c;
  border-radius: 5px;
  background: #0d2743;
  color: #72bcff;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

/* EMPTY STATES */

.dashboard-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 235px;
  padding: 25px 15px;
  text-align: center;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border: 1px solid #23517e;
  border-radius: 15px;
  background: #102b49;
  color: #60b5ff;
}

.empty-icon svg {
  width: 27px;
  height: 27px;
  stroke-width: 1.6;
}

.dashboard-empty h4 {
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 700;
}

.dashboard-empty p {
  max-width: 340px;
  color: var(--dash-muted);
  font-size: 12px;
  line-height: 1.7;
}

/* PROTECTION MODULES */

.protection-status-list {
  padding-top: 5px;
}

.protection-status-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--dash-border);
}

.protection-status-list > div:last-child {
  border-bottom: 0;
}

.protection-status-list > div > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #dbe5f2;
  font-size: 12px;
  font-weight: 600;
}

.protection-status-list svg {
  width: 17px;
  height: 17px;
  color: #4faeff;
}

.status-development {
  padding: 7px 10px;
  border: 1px solid #574020;
  border-radius: 6px;
  background: #2c2317;
  color: #efb963;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

/* ==========================================
   INTERNAL PAGES
========================================== */

.dashboard-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.dashboard-page-heading h2 {
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.7px;
}

.dashboard-page-heading p {
  color: var(--dash-muted);
  font-size: 12px;
  line-height: 1.6;
}

.dashboard-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 41px;
  padding: 11px 16px;
  border: 1px solid #389bff;
  border-radius: 8px;
  background: #087bff;
  color: white;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transition: background .2s, transform .2s;
}

.dashboard-action svg {
  width: 16px;
  height: 16px;
}

.dashboard-action:hover {
  background: #329dff;
  transform: translateY(-2px);
}

/* SETTINGS */

.settings-info {
  padding-top: 5px;
}

.settings-info > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 19px 0;
  border-bottom: 1px solid var(--dash-border);
}

.settings-info > div:last-child {
  border-bottom: 0;
}

.settings-info span {
  color: var(--dash-muted);
  font-size: 12px;
}

.settings-info strong {
  color: #e7edf7;
  font-size: 12px;
  text-align: right;
}

/* FOOTER */

.dashboard-footer {
  padding: 19px 30px;
  border-top: 1px solid var(--dash-border);
  color: #6e7d91;
  font-size: 11px;
  text-align: center;
}

/* ANIMATION */

@keyframes dashboardFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 1150px) {
  .dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 850px) {
  .dashboard-sidebar {
    transform: translateX(-100%);
    transition: transform .25s ease;
  }

  .dashboard-sidebar.open {
    transform: translateX(0);
    box-shadow: 15px 0 50px #000b;
  }

  .dashboard-main {
    margin-left: 0;
  }

  .sidebar-toggle {
    display: grid;
  }

  .dashboard-content {
    padding: 25px 20px;
  }

  .dashboard-topbar {
    padding: 15px 20px;
  }
}

@media (max-width: 560px) {
  .dashboard-topbar h1 {
    font-size: 18px;
  }

  .topbar-eyebrow {
    font-size: 8px;
  }

  .dashboard-demo-badge {
    display: none;
  }

  .dashboard-content {
    padding: 18px 14px;
  }

  .dashboard-welcome {
    padding: 23px;
  }

  .welcome-symbol {
    display: none;
  }

  .dashboard-stats {
    gap: 10px;
  }

  .stat-card {
    min-height: 140px;
    padding: 16px;
  }

  .stat-card > strong {
    font-size: 27px;
  }

  .stat-label {
    font-size: 11px;
  }

  .dashboard-panel {
    padding: 18px;
  }

  .dashboard-page-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-action {
    width: 100%;
  }

  .protection-status-list > div {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-section,
  .dashboard-sidebar,
  .stat-card,
  .dashboard-action {
    animation: none;
    transition: none;
  }
}
