/* Server Status Panel - Compact Styles */
.server-status-panel {
  background-color: rgba(30, 35, 40, 0.8);
  border: 1px solid rgba(65, 105, 225, 0.5);
  border-radius: 4px;
  padding: 10px;
  margin-bottom: 15px;
  box-shadow: 0 0 10px rgba(0, 120, 215, 0.3);
  color: #e0e0e0;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 13px;
}

.server-status-panel h3 {
  margin: 0 0 10px 0;
  color: #4fc3f7;
  font-size: 15px;
  border-bottom: 1px solid rgba(65, 105, 225, 0.3);
  padding-bottom: 5px;
  display: flex;
  align-items: center;
}

.server-status-panel h3::before {
  content: "⚙️";
  margin-right: 6px;
}

.status-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  padding: 3px 0;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.1);
}

.status-label { color: #aaa; }
.status-value {
  font-weight: bold;
  color: #4fc3f7;
}
.status-value.unknown {
  color: #ff9800;
  font-style: italic;
  animation: pulse 2s infinite;
}
.status-value.error { color: #f44336; }
.status-value.success { color: #4caf50; }

/* Demo mode toggle */
.demo-mode-container {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(65, 105, 225, 0.3);
}

.demo-mode-label {
  display: flex;
  align-items: center;
  font-weight: bold;
  color: #ff9800;
  margin-bottom: 5px;
}

.demo-mode-label::before {
  content: "🔧";
  margin-right: 6px;
}

.demo-mode-description {
  font-size: 11px;
  color: #aaa;
  font-style: italic;
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 22px;
  margin-left: 8px;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #2c3e50;
  transition: .3s;
  border-radius: 22px;
  border: 1px solid #555;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 4px;
  bottom: 3px;
  background-color: #ccc;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: #2196F3;
}

input:checked + .toggle-slider:before {
  transform: translateX(24px);
  background-color: white;
}

.toggle-slider:hover {
  box-shadow: 0 0 4px rgba(33, 150, 243, 0.5);
}

@keyframes pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@media (max-width: 768px) {
  .server-status-panel { padding: 8px; }
  .status-item { flex-direction: column; }
  .status-value { margin-top: 2px; }
}