/* src/styles/system-panels.css */

#system-panel-window {
  position: fixed;
  top: 80px;
  right: 20px;
  width: 260px;
  height: calc(100vh - 140px);
  background: rgba(45, 45, 45, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid #555;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  z-index: 120;
  overflow: hidden;
  font-family: "Ubuntu", sans-serif;
}

.panel-title-bar {
  z-index: 96;
}

.panel-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
}

.panel-controls span:hover {
  background: rgba(255, 255, 255, 0.1);
}

.panel-content {
  padding: 12px;
  height: calc(100% - 28px);
  overflow-y: auto;
  color: #ccc;
  font-size: 10px;
}

.panel-section {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #444;
}

.panel-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.panel-title {
  display: flex;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: bold;
}

.panel-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  margin-bottom: 6px;
  min-height: 16px;
}

.panel-label {
  color: #cccccc;
  flex: 1;
  font-size: 12px;
}

.panel-value {
  color: #ffd56b;
  text-align: right;
  min-width: 45px;
  font-size: 12px;
}

.panel-progress {
  width: 100%;
  height: 4px;
  background: #2a2a2a;
  border-radius: 2px;
  margin-top: 2px;
  overflow: hidden;
}

.panel-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #2fd2a4, #58ffd8);
  transition: width 0.5s ease;
  border-radius: 2px;
}

.panel-badge {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-left: 4px;
}

.panel-badge.running {
  background: #00ff88;
}
.panel-badge.warning {
  background: #ffaa00;
}
.panel-badge.error {
  background: #ff5555;
}
.panel-badge.idle {
  background: #666666;
}

.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.panel-grid-item {
  text-align: center;
  padding: 6px;
  background: rgba(42, 42, 42, 0.8);
  border-radius: 4px;
  border: 1px solid #333333;
  min-height: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.panel-grid-value {
  font-size: 10px;
  font-weight: 600;
  color: #58ffd8;
}

.panel-grid-label {
  font-size: 8px;
  color: #888888;
  margin-top: 1px;
}

.panel-content::-webkit-scrollbar {
  width: 4px;
}

.panel-content::-webkit-scrollbar-track {
  background: #2a2a2a;
  border-radius: 2px;
}

.panel-content::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 2px;
}

.panel-content::-webkit-scrollbar-thumb:hover {
  background: #666;
}

@media (max-width: 768px) {
  #system-panel-window {
    display: none !important;
  }
}
