:root {
  --graphite: #23272E;
  --slate: #2E3440;
  --primary: #3B5BFD;
  --primary-hover: #2E48DB;
  --primary-soft: rgba(59, 91, 253, 0.08);
  --canvas: #F5F6F8;
  --white: #FFFFFF;
  --text: #1F2329;
  --muted: #8A919E;
  --border: #E5E7EB;
  --green: #16A34A;
  --green-soft: rgba(22, 163, 74, 0.10);
  --amber: #D97706;
  --amber-soft: rgba(217, 119, 6, 0.10);
  --red: #DC2626;
  --red-soft: rgba(220, 38, 38, 0.10);

  --ui-font: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  --mono: "JetBrains Mono", "Fira Code", Consolas, monospace;

  --radius: 6px;
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
}

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

body {
  font-family: var(--ui-font);
  background: var(--canvas);
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ----- admin layout overrides ----- */
.admin-sidebar .ant-menu-item-selected {
  background: rgba(59, 91, 253, 0.15) !important;
  color: #fff !important;
  border-left: 3px solid var(--primary);
}

.admin-sidebar .ant-menu-item:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #fff !important;
}

.admin-header {
  height: 48px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.page-container {
  padding: 20px;
  min-height: calc(100vh - 48px);
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.page-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

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

.metric-cell {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.metric-label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}

.metric-value {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--mono);
}

.metric-delta {
  font-size: 11px;
  margin-top: 4px;
  font-family: var(--mono);
}

.metric-delta.up {
  color: var(--green);
}

.metric-delta.down {
  color: var(--red);
}

/* status dot */
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.status-dot.green {
  background: var(--green);
}

.status-dot.amber {
  background: var(--amber);
}

.status-dot.red {
  background: var(--red);
}

.status-dot.gray {
  background: var(--muted);
}

/* tag */
.custom-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.custom-tag.green {
  background: var(--green-soft);
  color: var(--green);
}

.custom-tag.amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.custom-tag.red {
  background: var(--red-soft);
  color: var(--red);
}

.custom-tag.gray {
  background: var(--canvas);
  color: var(--muted);
}

/* card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

/* progress bar tenant */
.tenant-progress {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tenant-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.tenant-progress-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--primary);
  transition: width 0.3s;
}

.tenant-progress-text {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  min-width: 36px;
  text-align: right;
}

/* matrix grid */
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
