:root{
  --bg:#0B1220;
  --bg2:#020617;

  --surface:#111827;
  --card:#1F2937;
  --card2:#172233;

  --border:#334155;

  --blue:#2563EB;
  --blue2:#1D4ED8;

  --green:#22C55E;
  --orange:#F59E0B;
  --purple:#8B5CF6;
  --red:#EF4444;

  --text:#F8FAFC;
  --muted:#94A3B8;
}

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

body{
  font-family:"Segoe UI",Arial,sans-serif;
  background:linear-gradient(180deg,var(--bg),var(--bg2));
  color:var(--text);
  min-height:100vh;
  padding:22px;
}

/* HEADER */

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

.logo{
  display:flex;
  align-items:center;
  gap:16px;
}

.cube{
  width:60px;
  height:60px;
  border-radius:18px;
  background:linear-gradient(135deg,#2563EB,#60A5FA);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  font-weight:bold;
  color:white;
  box-shadow:0 0 28px rgba(37,99,235,.45);
}

.logo h1{
  font-size:24px;
}

.badge{
  background:var(--blue2);
  color:white;
  padding:8px 16px;
  border-radius:999px;
  font-size:13px;
  font-weight:600;
  border:1px solid rgba(255,255,255,.12);
}

/* LAYOUT */

.layout{
  display:grid;
  grid-template-columns:240px 1fr;
  gap:22px;
}

/* SIDEBAR */

.sidebar{
  background:rgba(17,24,39,.96);
  border:1px solid var(--border);
  border-radius:18px;
  padding:16px;
  height:fit-content;
  position:sticky;
  top:20px;
}

.menu-title{
  color:#64748B;
  font-size:11px;
  font-weight:700;
  letter-spacing:1px;
  margin:14px 8px 8px;
  text-transform:uppercase;
}

.menu-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-radius:12px;
  cursor:pointer;
  color:#CBD5E1;
  transition:.25s;
  margin-bottom:6px;
}

.menu-item:hover{
  background:#1E293B;
  transform:translateX(2px);
}

.menu-item.active{
  background:linear-gradient(135deg,#2563EB,#1D4ED8);
  color:white;
  box-shadow:0 8px 20px rgba(37,99,235,.35);
}

.menu-footer{
  margin-top:18px;
  padding-top:14px;
  border-top:1px solid var(--border);
  text-align:center;
}

.cluster-status{
  display:inline-block;
  background:#14532D;
  color:#DCFCE7;
  padding:6px 12px;
  border-radius:999px;
  font-size:12px;
  margin-bottom:6px;
}

.menu-footer small{
  color:#64748B;
  display:block;
  line-height:1.4;
}

/* CONTENT */

#content{
  display:flex;
  flex-direction:column;
  gap:20px;
}

.loading{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:18px;
  padding:50px;
  text-align:center;
  color:var(--muted);
}

/* CARDS */

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:18px;
}

.card{
  background:linear-gradient(180deg,var(--card),var(--card2));
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px;
}

.card h3{
  color:var(--muted);
  font-size:13px;
  margin-bottom:8px;
  font-weight:600;
}

.value{
  font-size:30px;
  font-weight:700;
}

.small{
  color:var(--muted);
  font-size:12px;
  margin-top:6px;
}

.blue{color:var(--blue);}
.green{color:var(--green);}
.orange{color:var(--orange);}
.purple{color:var(--purple);}

/* SERVICES */

.services{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:14px;
}

.service{
  background:#0F172A;
  border:1px solid var(--border);
  border-radius:14px;
  padding:14px;
}

.service h4{
  margin-bottom:6px;
}

/* MACHINES */

.cluster{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px;
}

.machine{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 0;
  border-bottom:1px solid rgba(51,65,85,.5);
}

.machine:last-child{
  border-bottom:none;
}

.dot{
  width:11px;
  height:11px;
  border-radius:50%;
  display:inline-block;
  margin-right:10px;
}

.online{background:var(--green);}
.virtual{background:#64748B;}
.dev{background:var(--blue);}
.prod{background:#38BDF8;}
.storage-dot{background:var(--orange);}
.ai{background:var(--purple);}

/* TABLES */

table{
  width:100%;
  border-collapse:collapse;
}

td{
  padding:12px 6px;
  border-bottom:1px solid rgba(51,65,85,.5);
}

tr:last-child td{
  border-bottom:none;
}

/* HERO */

.hero{
  background:linear-gradient(135deg,#0F172A,#1E3A8A);
  border:1px solid #2563EB;
  border-radius:18px;
  padding:22px;
}

.hero h1{
  margin-bottom:6px;
}

.hero p{
  color:#BFDBFE;
}

/* FOOTER */

footer{
  margin-top:26px;
  border-top:1px solid rgba(51,65,85,.5);
  padding-top:18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  color:#64748B;
  font-size:13px;
}

/* SCROLLBAR */

::-webkit-scrollbar{
  width:10px;
}

::-webkit-scrollbar-thumb{
  background:#334155;
  border-radius:999px;
}

::-webkit-scrollbar-track{
  background:#0B1220;
}

/* RESPONSIVO */

@media(max-width:900px){

  .layout{
    grid-template-columns:1fr;
  }

  .sidebar{
    position:relative;
    top:auto;
  }

  footer{
    flex-direction:column;
    gap:8px;
    text-align:center;
  }

}
