:root {
  color: #d8e8fb;
  background: #020916;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background:
    linear-gradient(rgba(19, 99, 190, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 99, 190, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 16% 14%, rgba(0, 136, 255, 0.2), transparent 28%),
    radial-gradient(circle at 82% 10%, rgba(0, 211, 255, 0.11), transparent 24%),
    #020916;
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
}

body {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

#app {
  min-height: 100vh;
}

.page {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.page-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border: 1px solid rgba(35, 150, 255, 0.28);
  border-radius: 6px;
  color: #f2f8ff;
  background: rgba(3, 25, 58, 0.78);
  box-shadow: inset 0 0 24px rgba(26, 126, 255, 0.14), 0 18px 50px rgba(0, 0, 0, 0.22);
}

.page-hero h1 {
  margin: 0;
  color: #f2f8ff;
  font-size: 26px;
}

.page-hero p {
  margin: 8px 0 0;
  color: #91acd0;
}

.panel-card,
.modern-card,
.metric-card {
  border: 1px solid rgba(40, 145, 255, 0.34) !important;
  border-radius: 6px !important;
  color: #d8e8fb !important;
  background:
    linear-gradient(180deg, rgba(8, 48, 99, 0.9), rgba(3, 24, 55, 0.84)) !important;
  box-shadow: inset 0 0 24px rgba(20, 126, 255, 0.13), 0 12px 32px rgba(0, 0, 0, 0.24) !important;
}

.modern-table {
  border-radius: 4px;
  overflow: hidden;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.metric-card .el-card__body {
  display: flex;
  gap: 16px;
  align-items: center;
}

.metric-title {
  color: #9ab5d8;
  font-size: 14px;
}

.metric-value {
  margin-top: 10px;
  color: #f5fbff;
  font-size: 28px;
  font-weight: 800;
}

.el-card {
  --el-card-padding: 16px;
  --el-card-border-color: rgba(40, 145, 255, 0.34);
  color: #d8e8fb;
  background-color: rgba(3, 24, 55, 0.84);
}

.el-card__header {
  border-bottom-color: rgba(67, 154, 255, 0.22) !important;
}

.el-table {
  --el-table-bg-color: transparent;
  --el-table-tr-bg-color: transparent;
  --el-table-header-bg-color: rgba(13, 58, 113, 0.84);
  --el-table-header-text-color: #bddaff;
  --el-table-row-hover-bg-color: rgba(33, 128, 255, 0.16);
  --el-table-border-color: rgba(71, 151, 255, 0.2);
  --el-table-text-color: #d9e8fb;
  color: #d9e8fb;
  background: transparent;
}

.el-table th.el-table__cell,
.el-table tr,
.el-table td.el-table__cell {
  background: transparent;
}

.el-pagination {
  --el-pagination-bg-color: rgba(7, 35, 73, 0.9);
  --el-pagination-button-color: #d8e8fb;
  --el-pagination-button-disabled-bg-color: rgba(8, 29, 59, 0.8);
  --el-pagination-hover-color: #35d8ff;
}

.el-input__wrapper,
.el-select__wrapper,
.el-tree-select .el-select__wrapper {
  background: rgba(3, 22, 50, 0.9) !important;
  border: 1px solid rgba(55, 148, 255, 0.32);
  box-shadow: none !important;
}

.el-input__inner,
.el-select__placeholder,
.el-select__selected-item {
  color: #d8e8fb !important;
}

.el-dialog {
  --el-dialog-bg-color: #071b38;
  --el-text-color-primary: #eef7ff;
  --el-text-color-regular: #c7dcf5;
  border: 1px solid rgba(55, 148, 255, 0.35);
}

@media (max-width: 960px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
