/* src/styles/windows/system-panel-window.css */

.system-panel-window {
  background: rgba(30, 30, 30, 0.97);
  z-index: var(--z-window-panel);
  backdrop-filter: blur(10px);
}

.panel-section {
  margin-bottom: 18px;
  padding: 8px 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(68, 68, 68, 0.6);
  background: rgba(42, 42, 42, 0.4);
  border-radius: 5px;
  border: 1px solid rgba(85, 85, 85, 0.3);
  transition: all 0.2s ease;
}

.panel-section:hover {
  background: rgba(45, 45, 45, 0.5);
  border-color: rgba(88, 255, 216, 0.2);
  box-shadow: 0 0 10px rgba(88, 255, 216, 0.05);
}

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

.panel-title {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #2fd2a4;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(47, 210, 164, 0.2);
  font-family: "Ubuntu", sans-serif;
}

.panel-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
  margin-bottom: 5px;
  min-height: 17px;
  padding: 1px 0;
  transition: all 0.15s ease;
}

.panel-item:hover {
  padding-left: 4px;
  transform: translateX(2px);
}

.panel-label {
  color: #d0d0d0;
  flex: 1;
  font-size: 12px;
  font-family: "Ubuntu Mono", monospace;
  letter-spacing: 0.3px;
}

.panel-value {
  color: #ffd56b;
  text-align: right;
  min-width: 48px;
  font-size: 12px;
  font-weight: 600;
  font-family: "Ubuntu Mono", monospace;
  text-shadow: 0 0 5px rgba(255, 213, 107, 0.3);
}

.panel-progress {
  width: 100%;
  height: 5px;
  background: rgba(42, 42, 42, 0.8);
  border-radius: 3px;
  margin-top: 3px;
  overflow: hidden;
  border: 1px solid rgba(85, 85, 85, 0.3);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.panel-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #2fd2a4, #58ffd8);
  transition: width 0.5s ease;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(88, 255, 216, 0.5);
  position: relative;
  overflow: hidden;
}

.panel-progress-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
  0%,
  100% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
}

.panel-badge {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-left: 6px;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.2);
  }
}

.panel-badge.running {
  background: #00ff88;
  box-shadow:
    0 0 6px #00ff88,
    0 0 12px rgba(0, 255, 136, 0.5);
}

.panel-badge.warning {
  background: #ffaa00;
  box-shadow:
    0 0 6px #ffaa00,
    0 0 12px rgba(255, 170, 0, 0.5);
}

.panel-badge.error {
  background: #ff5555;
  box-shadow:
    0 0 6px #ff5555,
    0 0 12px rgba(255, 85, 85, 0.5);
  animation: errorBlink 1s ease-in-out infinite;
}

@keyframes errorBlink {
  0%,
  50%,
  100% {
    opacity: 1;
  }
  25%,
  75% {
    opacity: 0.5;
  }
}

.panel-badge.idle {
  background: #666666;
  box-shadow: none;
  animation: none;
}

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

.panel-grid-item {
  text-align: center;
  padding: 8px 7px;
  background: linear-gradient(
    135deg,
    rgba(42, 42, 42, 0.9),
    rgba(35, 35, 35, 0.9)
  );
  border-radius: 5px;
  border: 1px solid rgba(85, 85, 85, 0.4);
  min-height: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.panel-grid-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(88, 255, 216, 0.5),
    transparent
  );
  opacity: 0;
  transition: opacity 0.2s ease;
}

.panel-grid-item:hover {
  border-color: rgba(88, 255, 216, 0.4);
  background: linear-gradient(
    135deg,
    rgba(45, 45, 45, 0.9),
    rgba(38, 38, 38, 0.9)
  );
  box-shadow: 0 2px 8px rgba(88, 255, 216, 0.1);
  transform: translateY(-2px);
}

.panel-grid-item:hover::before {
  opacity: 1;
}

.panel-grid-value {
  font-size: 13px;
  font-weight: 700;
  color: #58ffd8;
  font-family: "Ubuntu Mono", monospace;
  text-shadow: 0 0 5px rgba(88, 255, 216, 0.4);
  margin-bottom: 1px;
}

.panel-grid-label {
  font-size: 8.5px;
  color: #999999;
  margin-top: 1px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: "Ubuntu", sans-serif;
}
