/* Extracted from website/index.html */
/* =========================================================
   SINFUL MANAGEMENT — SERVER USAGE V5
   ========================================================= */

.sm-server-usage{
  width:
    min(1380px,calc(100% - 54px));

  margin:
    115px auto 125px;

  color:
    #f2f3f5;
}


/* heading */

.sm-server-title-row{
  display:flex;

  align-items:center;
  justify-content:space-between;

  margin-bottom:
    70px;
}


.sm-server-title-row h2{
  margin:0;

  color:#f5f5f7;

  font-size:
    clamp(42px,4.3vw,66px);

  font-weight:680;

  line-height:1;

  letter-spacing:
    -.055em;
}


.sm-global-live{
  display:flex;

  align-items:center;

  gap:11px;

  color:#9a7cf4;

  font-size:13px;
  font-weight:700;

  letter-spacing:.04em;
}


.sm-global-live i{
  width:10px;
  height:10px;

  border-radius:50%;

  background:#9a7cf4;

  box-shadow:
    0 0 0 5px rgba(154,124,244,.08),
    0 0 20px rgba(154,124,244,.30);
}


/* =========================================================
   MAIN TWO-COLUMN AREA
   ========================================================= */

.sm-server-layout{
  display:grid;

  grid-template-columns:
    minmax(480px,.95fr)
    minmax(520px,1.05fr);

  align-items:center;

  gap:
    clamp(65px,7vw,120px);
}


/* =========================================================
   GLOBE
   ========================================================= */

.sm-server-globe{
  position:relative;

  display:flex;

  align-items:center;
  justify-content:center;

  min-width:0;

  aspect-ratio:1;

  user-select:none;
  -webkit-user-select:none;
}


.sm-server-globe::before{
  content:"";

  position:absolute;

  width:82%;
  height:82%;

  border-radius:50%;

  background:
    radial-gradient(
      circle,
      rgba(154,124,244,.08),
      rgba(154,124,244,.025) 48%,
      transparent 70%
    );

  filter:
    blur(24px);

  pointer-events:none;
}


#smInteractiveGlobe{
  position:relative;
  z-index:2;

  display:block;

  width:
    min(610px,100%);

  height:auto;

  aspect-ratio:1;

  cursor:grab;

  touch-action:none;
}


#smInteractiveGlobe:active{
  cursor:grabbing;
}


/* =========================================================
   RIGHT PANEL
   ========================================================= */

.sm-server-panel{
  overflow:hidden;

  border:
    1px solid #292c32;

  border-radius:
    16px;

  background:
    #0d0f12;
}


/* selected node top */

.sm-selected{
  padding:
    32px 34px 31px;
}


.sm-selected-label{
  display:block;

  margin-bottom:
    17px;

  color:#7d828b;

  font-size:11px;
  font-weight:650;

  letter-spacing:.13em;
}


.sm-selected-heading{
  display:flex;

  align-items:baseline;

  gap:12px;

  margin-bottom:
    28px;
}


.sm-selected-heading strong{
  color:#f4f4f6;

  font-size:28px;

  font-weight:700;

  letter-spacing:
    -.035em;
}


.sm-selected-heading span{
  overflow:hidden;

  color:#9297a0;

  font-size:15px;

  white-space:nowrap;

  text-overflow:ellipsis;
}


/* metric boxes */

.sm-selected-metrics{
  display:grid;

  grid-template-columns:
    repeat(2,minmax(0,1fr));

  gap:12px;
}


.sm-selected-metrics>div{
  min-height:86px;

  padding:
    17px 18px;

  border:
    1px solid #2a2d33;

  border-radius:
    11px;

  background:
    #0b0d10;
}


.sm-selected-metrics small{
  display:block;

  margin-bottom:
    8px;

  color:#777c85;

  font-size:10px;
  font-weight:650;

  letter-spacing:.06em;
}


.sm-selected-metrics strong{
  color:#f1f2f4;

  font-size:18px;

  font-weight:680;
}


.sm-selected-metrics
.sm-purple-value{
  color:
    #a98df6;
}


/* load bar */

.sm-load-line{
  margin-top:
    25px;
}


.sm-load-line>div:first-child{
  display:flex;

  justify-content:space-between;

  margin-bottom:
    10px;

  color:#91969e;

  font-size:12px;
}


.sm-load-line b{
  color:#cfd2d7;

  font-weight:600;
}


.sm-load-track{
  position:relative;

  overflow:hidden;

  height:7px;

  border-radius:999px;

  background:#1a1c20;
}


.sm-load-track i{
  display:block;

  width:0;
  height:100%;

  border-radius:inherit;

  background:
    #9a7cf4;

  box-shadow:
    0 0 14px rgba(154,124,244,.24);

  transition:
    width .35s ease;
}


/* =========================================================
   NODE LIST
   ========================================================= */

.sm-server-node-list{
  border-top:
    1px solid #292c32;
}


.sm-node-row{
  position:relative;

  display:grid;

  grid-template-columns:
    12px minmax(0,1fr) auto;

  align-items:center;

  gap:16px;

  min-height:88px;

  padding:
    17px 27px;

  border-bottom:
    1px solid #202329;

  background:
    transparent;

  cursor:pointer;

  transition:
    background .15s ease;
}


.sm-node-row:hover{
  background:
    #111419;
}


.sm-node-row.is-selected{
  background:
    #12141a;
}


.sm-node-row.is-selected::before{
  content:"";

  position:absolute;

  top:0;
  bottom:0;
  left:0;

  width:3px;

  background:
    #9a7cf4;
}


/* node dot */

.sm-live-dot{
  display:block;

  width:8px;
  height:8px;

  border-radius:50%;

  background:#5f646d;
}


.sm-node-row.is-live
.sm-live-dot{
  background:#9a7cf4;

  box-shadow:
    0 0 0 4px rgba(154,124,244,.08),
    0 0 14px rgba(154,124,244,.25);
}


.sm-node-row.is-standby
.sm-live-dot{
  background:#766795;
}


.sm-node-row.is-offline
.sm-live-dot{
  background:#565b64;

  box-shadow:none;
}


/* identity */

.sm-node-identity>div{
  display:flex;

  align-items:center;

  gap:9px;
}


.sm-node-identity strong{
  color:#f0f1f3;

  font-size:15px;

  font-weight:680;
}


.sm-node-identity em{
  padding:
    4px 7px;

  border:
    1px solid rgba(154,124,244,.24);

  border-radius:
    6px;

  background:
    rgba(154,124,244,.09);

  color:
    #a98df6;

  font-size:
    8px;

  font-weight:700;

  font-style:normal;

  letter-spacing:
    .08em;
}


.sm-node-identity>small{
  display:block;

  margin-top:
    5px;

  color:#777d87;

  font-size:
    11px;
}


.sm-node-list-value{
  min-width:
    55px;

  color:#a7abb2;

  font-size:
    12px;

  text-align:right;
}


.sm-node-list-value>b{
  font-weight:
    600;
}


.sm-hidden-telemetry{
  display:none !important;
}


/* footer */

.sm-server-footer{
  display:flex;

  justify-content:space-between;

  gap:20px;

  padding:
    17px 27px;

  background:
    #0b0d10;
}


.sm-server-footer span{
  display:flex;

  align-items:baseline;

  gap:7px;
}


.sm-server-footer b{
  color:#d8dbe0;

  font-size:11px;

  font-weight:650;
}


.sm-server-footer small{
  color:#646a74;

  font-size:9px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media(max-width:1050px){

  .sm-server-layout{
    grid-template-columns:
      1fr;

    gap:
      55px;
  }

  .sm-server-globe{
    width:
      min(620px,100%);

    margin:
      auto;
  }

  .sm-server-panel{
    width:
      min(720px,100%);

    margin:
      auto;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media(max-width:620px){

  .sm-server-usage{
    width:
      calc(100% - 28px);

    margin:
      75px auto 85px;
  }


  .sm-server-title-row{
    margin-bottom:
      40px;
  }


  .sm-server-title-row h2{
    font-size:
      39px;
  }


  .sm-global-live{
    font-size:
      10px;
  }


  .sm-global-live i{
    width:
      8px;

    height:
      8px;
  }


  .sm-server-layout{
    gap:
      35px;
  }


  #smInteractiveGlobe{
    width:
      100%;
  }


  .sm-server-panel{
    border-radius:
      12px;
  }


  .sm-selected{
    padding:
      24px 19px;
  }


  .sm-selected-heading{
    display:block;
  }


  .sm-selected-heading strong{
    display:block;

    margin-bottom:
      6px;
  }


  .sm-selected-heading span{
    display:block;

    font-size:
      13px;
  }


  .sm-selected-metrics{
    grid-template-columns:
      1fr 1fr;

    gap:
      8px;
  }


  .sm-selected-metrics>div{
    min-height:
      76px;

    padding:
      14px;
  }


  .sm-selected-metrics strong{
    font-size:
      15px;
  }


  .sm-node-row{
    min-height:
      80px;

    padding:
      15px 17px;

    gap:
      12px;
  }


  .sm-node-identity em{
    display:none;
  }


  .sm-server-footer{
    flex-direction:
      column;

    gap:
      6px;

    padding:
      15px 18px;
  }

}
