:root {
  --glass: rgba(20,25,40,.6);
  --border: rgba(255,255,255,.12);
  --glow: rgba(80,180,255,.4);
  --success:#00ffb2;
  --danger:#ff4d4d;
  --accent:#4cc9f0;
}

#bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  filter: blur(80px) saturate(1.4);
}


body {
  margin:0;
  padding:40px;
  background:#020617;
  color:#e5e7eb;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI";
}

.glass-container {
  background:rgba(10,15,25,.65);
  backdrop-filter:blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius:24px;
  padding:30px;
  box-shadow:0 0 60px rgba(0,0,0,.7);
  position: relative;
  z-index: 10;
  isolation: isolate;
}

table {
  width:100%;
  border-collapse:separate;
  background:var(--glass);
  border-radius:18px;
  overflow: visible;
  position: relative;
  z-index: 5;
}

thead {
  position: relative;
  z-index: 5;
}

tbody tr {
  position: relative;
  z-index: 1;
}

tbody tr.active-row {
  z-index: 100;
}

th, td {
  padding:12px;
  border-bottom:1px solid rgba(255,255,255,.08);
  position: relative;
  overflow: visible;
}

.online {
  color: var(--success);
  font-weight: 700;
  text-shadow: 0 0 12px rgba(0,255,178,.9);
}

.offline {
  color: var(--danger);
  font-weight: 700;
  text-shadow: 0 0 14px rgba(255,80,80,.9);
}

button {
  background:rgba(255,255,255,.08);
  border:1px solid var(--border);
  color:white;
  border-radius:10px;
  padding:6px 12px;
  cursor:pointer;
  position: relative;
  z-index: 10;
}

.glass-tabs {
  display: flex;
  gap: 12px;
  margin: 30px 0;
  position: relative;
  z-index: 1 !important;
}

.tab-btn {
  flex: 1;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  padding: 12px;
  border-radius: 14px;
  color: white;
  cursor: pointer;
  transition: .3s;
}

.tab-btn.active {
  background: linear-gradient(135deg, #4cc9f0aa, #9333eaaa);
  box-shadow: 0 0 20px var(--glow);
}

.tab-panel {
  display: none;
  margin-top: 20px;
  position: relative;
  z-index: 20;
}

.tab-panel.active {
  display: block;
}

.dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;

  background: var(--glass);
  backdrop-filter: blur(20px);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.8);
  padding: 10px;

  min-width: 180px;
  z-index: 10000;

  display: none;
}

.dropdown.show {
  display: block;
}

.dd-item {
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  z-index: 99999;
}

.dd-item:hover {
  background: rgba(255,255,255,.12);
}

input, textarea {
  background: rgba(10,15,25,.9);
  color: white;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}

input::placeholder {
  color: rgba(255,255,255,.5);
}

input:focus {
  border-color: #4cc9f0;
  box-shadow: 0 0 0 2px rgba(76,201,240,.4);
}

.glass-form {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}

.glass-form button {
  background: linear-gradient(135deg,#4cc9f0,#9333ea);
  border: none;
  color: white;
  font-weight: 600;
  box-shadow: 0 0 25px rgba(80,180,255,.5);
}
.glass-tabs {
  z-index: 5 !important;
}

tbody tr.active-row {
  z-index: 1000 !important;
}

tbody tr.active-row .dropdown {
  z-index: 2000 !important;
}
