* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
    "Helvetica", "Arial", sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 30px;
  text-align: center;
}

header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  font-weight: 700;
}

.subtitle {
  font-size: 1.1em;
  opacity: 0.9;
  margin-bottom: 20px;
}

.info-bar {
  display: flex;
  justify-content: center;
  gap: 30px;
  font-size: 0.9em;
  margin-top: 15px;
  flex-wrap: wrap;
}

.auto-refresh {
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 15px;
  border-radius: 20px;
}

.error-box {
  background: #fee;
  border: 2px solid #fcc;
  border-radius: 8px;
  padding: 30px;
  margin: 30px;
  text-align: center;
}

.error-box h2 {
  color: #c33;
  margin-bottom: 15px;
  font-size: 1.8em;
}

.error-box p {
  color: #666;
  margin: 10px 0;
  font-size: 1.1em;
}

.hint {
  background: #ffe;
  border: 1px solid #eeb;
  padding: 10px;
  border-radius: 5px;
  margin-top: 15px;
  font-style: italic;
}

.metadata-section {
  padding: 30px;
  border-bottom: 1px solid #eee;
}

.metadata-section:last-of-type {
  border-bottom: none;
}

.metadata-section h2 {
  font-size: 1.6em;
  margin-bottom: 20px;
  color: #667eea;
  display: flex;
  align-items: center;
  gap: 10px;
}

.metadata-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
}

.metadata-item {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.metadata-item.full-width {
  grid-column: 1 / -1;
}

.label {
  font-weight: 600;
  color: #555;
  display: block;
  margin-bottom: 5px;
  font-size: 0.9em;
}

.value {
  color: #333;
  font-size: 1em;
  word-break: break-all;
}

.value.code {
  font-family: "Monaco", "Courier New", monospace;
  font-size: 0.85em;
  background: #fff;
  padding: 5px;
  border-radius: 4px;
  display: inline-block;
}

.status-running {
  color: #28a745;
  font-weight: 600;
}

.status-stopped {
  color: #dc3545;
  font-weight: 600;
}

.status-pending {
  color: #ffc107;
  font-weight: 600;
}

.container-card,
.stats-card {
  background: #fff;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.container-card:last-child,
.stats-card:last-child {
  margin-bottom: 0;
}

.container-card h3,
.stats-card h3 {
  color: #667eea;
  margin-bottom: 15px;
  font-size: 1.3em;
  padding-bottom: 10px;
  border-bottom: 2px solid #e9ecef;
}

.network-info {
  background: #fff;
  padding: 10px;
  border-radius: 5px;
  margin-top: 5px;
  border: 1px solid #dee2e6;
}

.network-label {
  display: inline-block;
  background: #667eea;
  color: white;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 0.85em;
  margin-right: 10px;
}

footer {
  background: #f8f9fa;
  padding: 20px 30px;
  text-align: center;
  border-top: 1px solid #e9ecef;
}

.refresh-form {
  margin-bottom: 15px;
}

.refresh-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: 1em;
  border-radius: 25px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  font-weight: 600;
}

.refresh-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.refresh-button:active {
  transform: translateY(0);
}

.footer-text {
  color: #6c757d;
  font-size: 0.9em;
}

@media (max-width: 768px) {
  header h1 {
    font-size: 1.8em;
  }

  .metadata-grid {
    grid-template-columns: 1fr;
  }

  .info-bar {
    flex-direction: column;
    gap: 10px;
  }

  .metadata-section {
    padding: 20px;
  }
}
