.monitor-modal.window {
  position: fixed;
  top: 90px;
  left: 240px;
  z-index: 6010;
  min-width: 335px;
  width: 570px;
  max-width: 98vw;
  background: #202023;
  border-radius: 13px;
  box-shadow: 0 8px 32px #000c;
  font-family: "Ubuntu", Ubuntu, -apple-system, BlinkMacSystemFont, sans-serif;
  border: 1.5px solid #3e3f4a;
  display: none;
  flex-direction: column;
  animation: fadeIn 0.19s ease-in;
}
.monitor-header {
  display: flex;
  align-items: center;
  padding: 18px 24px;
  font-size: 1.17rem;
  font-weight: 600;
  color: #f8f8f9;
  background: linear-gradient(90deg, #7d42a1c0 0%, #7d42a1c0 100%);
  border-radius: 13px 13px 0 0;
  cursor: move;
  user-select: none;
  gap: 10px;
}
.monitor-logo {
  width: 32px;
  height: 32px;
  margin-right: 8px;
  filter: drop-shadow(0 1px 3px #0006);
}
.monitor-close {
  margin-left: auto;
  font-size: 1.6rem;
  cursor: pointer;
  color: #b3b3ba;
  transition: all 0.19s;
  border-radius: 50%;
  padding: 3px 8px;
}
.monitor-close:hover { background: #9c27b033; color: #fff; }
.monitor-tabs {
  display: flex;
  background: #222227;
  border-bottom: 1.5px solid #3e3f4a;
}
.monitor-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 12px 0;
  font-weight: 600;
  color: #b1b1c2;
  font-size: 0.97rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  transition: color 0.17s, border-bottom 0.2s;
}
.monitor-tab.active {
  color: #f4f4fa;
  border-bottom: 2.5px solid #7d42a1;
  background: #21212c;
}
.monitor-content {
  background: #232335;
  padding: 26px 24px 24px 24px;
  border-radius: 0 0 13px 13px;
  min-height: 260px;
}
.monitor-procesos-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
  color: #eee;
  background: none;
}
.monitor-procesos-table th, .monitor-procesos-table td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1.2px solid #35354d;
}
.monitor-procesos-table th {
  color: #cfddea;
  font-weight: 700;
  background: #232335;
  letter-spacing: 0.04em;
}
.monitor-procesos-table tr:last-child td {
  border-bottom: none;
}
.monitor-procesos-table td {
  color: #dfe5e8;
  font-weight: 400;
}
.monitor-resource {
  margin-bottom: 24px;
}
.monitor-resource-label {
  color: #e3e1eb;
  font-size: 1em;
  margin-bottom: 5px;
  font-weight: 600;
}
.monitor-bar-bg {
  background: #303042;
  border-radius: 9px;
  height: 19px;
  width: 98%;
  margin: 2px 2% 0 0;
  overflow: hidden;
  border: 1px solid #413259;
  box-shadow: 0 1px 7px #1112;
  position: relative;
}
.monitor-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #7d42a1 65%, #ba68c8e0);
  border-radius: 9px 0 0 9px;
  width: 0%;
  transition: width 0.5s cubic-bezier(.43,2,.44,1);
  box-shadow: 0 1px 6px #a772c994;
}
.monitor-bar-text {
  color: #8be06b;
  font-weight: 900;
  margin-left: 12px;
  font-size: 1.02em;
  letter-spacing: 0.012em;
}
.monitor-sysinfo-list {
  color: #e8e6fb;
  list-style: none;
  padding: 0 0 0 3px;
  margin: 0;
  font-size: 0.97em;
}
.monitor-sysinfo-list li {
  margin-bottom: 11px;
  padding: 3px 0;
  border-bottom: 1px dotted #42315d66;
}
@media (max-width: 750px){
  .monitor-modal.window {
    left: 7vw;
    width: 96vw;
    min-width: 220px;
    max-width: 99vw;
    font-size: 0.8em;
  }
  .monitor-content {
    padding: 13px 4vw 13px 4vw;
  }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px);}
  to   { opacity: 1; transform: translateY(0);}
}