@font-face {
  font-family: "biElectronic";
  src: url("/assets/bi_demo/DS-DIGIT.TTF");
}

.bi-dashboard {
  min-height: 100vh;
  background: url("/assets/bi_demo/bg.jpg") no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  overflow-x: hidden;
  overflow-y: auto;
}

.bi-header {
  position: relative;
  height: 80px;
  background: url("/assets/bi_demo/head_bg.png") no-repeat top center;
  background-size: 100% 100%;
}

.bi-header h1 {
  margin: 0;
  text-align: center;
  line-height: 68px;
  font-size: 30px;
  letter-spacing: 1px;
  font-weight: 600;
}

.bi-show-time {
  position: absolute;
  right: 24px;
  top: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  min-width: 220px;
  text-align: right;
  padding-top: 8px;
  line-height: 1.35;
}

.bi-refresh-btn {
  margin-top: 4px;
  border: 1px solid rgba(125, 214, 255, 0.5);
  border-radius: 999px;
  background: rgba(20, 57, 88, 0.52);
  color: rgba(245, 250, 255, 0.9);
  padding: 3px 10px;
  font-size: 12px;
  cursor: pointer;
}

.bi-refresh-btn:hover {
  background: rgba(36, 97, 139, 0.68);
}

.bi-last-refreshed {
  margin-top: 3px;
  font-size: 11px;
  color: rgba(245, 250, 255, 0.58);
}

.bi-mainbox {
  display: flex;
  gap: 12px;
  width: min(1920px, 100%);
  margin: 0 auto;
  padding: 10px 12px 16px;
  height: calc(100vh - 92px);
  box-sizing: border-box;
}

.bi-column {
  flex: 3;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.bi-column-center {
  flex: 5;
  margin: 0 4px;
}

.bi-panel {
  position: relative;
  margin-bottom: 0;
  border: 1px solid rgba(130, 201, 255, 0.14);
  background: linear-gradient(180deg, rgba(21, 41, 68, 0.7), rgba(15, 32, 54, 0.5));
  backdrop-filter: blur(8px);
  min-height: 0;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(8, 18, 34, 0.2);
  display: flex;
  flex-direction: column;
}

.bi-panel::before,
.bi-panel::after,
.bi-panel-footer::before,
.bi-panel-footer::after {
  position: absolute;
  content: "";
  width: 10px;
  height: 10px;
}

.bi-panel::before {
  top: 0;
  left: 0;
  border-left: 2px solid rgba(125, 214, 255, 0.9);
  border-top: 2px solid rgba(125, 214, 255, 0.9);
}

.bi-panel::after {
  top: 0;
  right: 0;
  border-right: 2px solid rgba(125, 214, 255, 0.9);
  border-top: 2px solid rgba(125, 214, 255, 0.9);
}

.bi-panel-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
}

.bi-panel-footer::before {
  left: 0;
  bottom: 0;
  border-left: 2px solid rgba(125, 214, 255, 0.9);
  border-bottom: 2px solid rgba(125, 214, 255, 0.9);
}

.bi-panel-footer::after {
  right: 0;
  bottom: 0;
  border-right: 2px solid rgba(125, 214, 255, 0.9);
  border-bottom: 2px solid rgba(125, 214, 255, 0.9);
}

.bi-panel-header {
  min-height: 50px;
  padding: 12px 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
}

.bi-panel-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: rgba(248, 251, 255, 0.95);
  letter-spacing: 0.2px;
}

.bi-panel-control {
  min-width: 160px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.bi-chart {
  flex: 1 1 auto;
  height: auto;
  overflow: hidden;
  min-height: 0;
}

.bi-panel-side {
  flex: 1 1 0;
}

.bi-kpi-wrap {
  padding: 14px;
  margin-bottom: 0;
  background: linear-gradient(180deg, rgba(102, 142, 214, 0.12), rgba(52, 82, 126, 0.08));
  border-radius: 14px;
  border: 1px solid rgba(130, 201, 255, 0.14);
  box-shadow: 0 16px 36px rgba(8, 18, 34, 0.16);
  flex: 0 0 auto;
}

.bi-kpi-hd {
  position: relative;
  display: flex;
  background: rgba(122, 164, 255, 0.11);
  border-radius: 10px;
}

.bi-kpi-hd::before,
.bi-kpi-hd::after {
  position: absolute;
  content: "";
  width: 30px;
  height: 10px;
}

.bi-kpi-hd::before {
  top: 0;
  left: 0;
  border-left: 2px solid rgba(125, 214, 255, 0.8);
  border-top: 2px solid rgba(125, 214, 255, 0.8);
}

.bi-kpi-hd::after {
  right: 0;
  bottom: 0;
  border-right: 2px solid rgba(125, 214, 255, 0.8);
  border-bottom: 2px solid rgba(125, 214, 255, 0.8);
}

.bi-kpi-value {
  flex: 1;
  text-align: center;
  line-height: 70px;
  font-size: 38px;
  color: #ffefad;
  font-family: "biElectronic", monospace;
  min-width: 0;
  text-shadow: 0 0 12px rgba(255, 239, 173, 0.14);
}

.bi-kpi-value + .bi-kpi-value {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.bi-kpi-bd {
  display: flex;
  color: rgba(244, 249, 255, 0.76);
  font-size: 14px;
}

.bi-kpi-bd > div {
  flex: 1;
  text-align: center;
  line-height: 38px;
  font-size: 13px;
}

.bi-map-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
}

.bi-map1,
.bi-map2,
.bi-map3 {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}

.bi-map1 {
  width: 390px;
  height: 390px;
  background-image: url("/assets/bi_demo/map.png");
  opacity: 0.18;
}

.bi-map2 {
  width: 480px;
  height: 480px;
  background-image: url("/assets/bi_demo/lbx.png");
  opacity: 0.42;
  animation: biRotateLeft 15s linear infinite;
}

.bi-map3 {
  width: 425px;
  height: 425px;
  background-image: url("/assets/bi_demo/jt.png");
  opacity: 0.42;
  animation: biRotateRight 10s linear infinite;
}

.bi-map-chart {
  position: absolute;
  inset: 0;
  height: 100%;
}

.bi-column-right .bi-panel-right {
  flex: 1 1 0;
}

.bi-radio-inline {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.bi-radio-inline label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.bi-year-dropdown .Select-control,
.bi-year-dropdown .Select-menu-outer,
.bi-year-dropdown .Select-placeholder,
.bi-year-dropdown .Select-value-label,
.bi-year-dropdown .Select-input > input {
  background: rgba(0, 0, 0, 0.45) !important;
  color: #fff !important;
}

.bi-year-dropdown .Select-control {
  border: 1px solid rgba(2, 166, 181, 0.35) !important;
}

.bi-year-dropdown .Select-menu-outer {
  border: 1px solid rgba(2, 166, 181, 0.35) !important;
}

@media (max-width: 1200px) {
  .bi-mainbox {
    gap: 10px;
    padding: 10px;
  }

  .bi-panel-header {
    min-height: 44px;
    padding: 10px 12px 0;
  }

  .bi-panel-title {
    font-size: 14px;
  }

  .bi-kpi-value {
    line-height: 58px;
    font-size: 30px;
  }

  .bi-kpi-bd {
    font-size: 12px;
  }

  .bi-kpi-bd > div {
    line-height: 32px;
    font-size: 12px;
  }

  .bi-map1 {
    width: 320px;
    height: 320px;
  }

  .bi-map2 {
    width: 380px;
    height: 380px;
  }

  .bi-map3 {
    width: 345px;
    height: 345px;
  }
}

@media (max-width: 900px) {
  .bi-dashboard {
    overflow-x: hidden;
  }

  .bi-header {
    height: auto;
    min-height: 72px;
    background-size: cover;
    padding: 8px 12px 10px;
  }

  .bi-header h1 {
    line-height: 1.35;
    font-size: 22px;
    padding: 8px 88px 0 8px;
    text-align: left;
  }

  .bi-show-time {
    right: 12px;
    top: 10px;
    line-height: 1.2;
    font-size: 12px;
    text-align: right;
    min-width: 0;
    padding-top: 0;
  }

  .bi-mainbox {
    flex-direction: column;
    width: 100%;
    height: auto;
    min-height: calc(100vh - 86px);
    padding: 8px;
    gap: 8px;
  }

  .bi-column {
    width: 100%;
    gap: 8px;
  }

  .bi-column-center {
    order: 1;
    margin: 0;
  }

  .bi-column-left {
    order: 2;
  }

  .bi-column-right {
    order: 3;
  }

  .bi-panel {
    border-radius: 12px;
  }

  .bi-panel-header {
    min-height: 40px;
    padding: 10px 12px 0;
    gap: 8px;
  }

  .bi-panel-title {
    font-size: 13px;
    line-height: 1.3;
  }

  .bi-panel-control {
    min-width: 112px;
  }

  .bi-kpi-wrap {
    padding: 10px;
    border-radius: 12px;
  }

  .bi-kpi-value {
    line-height: 44px;
    font-size: 24px;
  }

  .bi-kpi-bd {
    font-size: 11px;
  }

  .bi-kpi-bd > div {
    line-height: 26px;
    font-size: 11px;
    padding: 0 4px;
  }

  .bi-panel-side {
    min-height: 260px;
  }

  .bi-map-wrap {
    min-height: 360px;
  }

  .bi-map1 {
    width: 220px;
    height: 220px;
  }

  .bi-map2 {
    width: 270px;
    height: 270px;
  }

  .bi-map3 {
    width: 245px;
    height: 245px;
  }

  .bi-radio-inline {
    gap: 8px;
    font-size: 11px;
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .bi-header h1 {
    font-size: 18px;
    padding-right: 72px;
  }

  .bi-show-time {
    font-size: 11px;
  }

  .bi-refresh-btn {
    padding: 2px 8px;
    font-size: 11px;
  }

  .bi-last-refreshed {
    font-size: 10px;
  }

  .bi-panel-title {
    font-size: 12px;
  }

  .bi-kpi-value {
    font-size: 20px;
    line-height: 38px;
  }

  .bi-kpi-bd > div {
    font-size: 10px;
    line-height: 22px;
  }

  .bi-panel-side {
    min-height: 220px;
  }

  .bi-map-wrap {
    min-height: 300px;
  }

  .bi-map1 {
    width: 180px;
    height: 180px;
  }

  .bi-map2 {
    width: 220px;
    height: 220px;
  }

  .bi-map3 {
    width: 200px;
    height: 200px;
  }
}

@keyframes biRotateLeft {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes biRotateRight {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}
