* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(135deg, #444859, #453f3f, #b1ab9c);
  color: white;
  min-height: 100vh;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.container {
  max-width: 1200px;
  width: 100%;
  text-align: center;
}

header {
  margin-bottom: 30px;
  padding: 20px;
}

h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.description {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 30px;
  line-height: 1.6;
  opacity: 0.9;
}

.controls {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

button {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: white;
  padding: 12px 25px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

button:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#diagram-container {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  width: 100%;
  height: 600px;
  overflow: hidden;
  margin-bottom: 30px;
}

.node {
  cursor: pointer;
  transition: all 0.3s ease;
}

.node circle {
  stroke: white;
  stroke-width: 3px;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.4));
  stroke-opacity: 0.9;
}

.node text {
  font-size: 14px;
  font-weight: bold;
  fill: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.link {
  fill: none;
  stroke: #ff0000 !important;
  stroke-width: 5px !important;
  opacity: 1 !important;
}

.link:hover {
  stroke: rgba(255, 255, 255, 1);
  stroke-width: 4px;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6));
}

.node:hover circle {
  stroke-width: 4px;
  r: 12;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.8));
  stroke-opacity: 1;
  stroke: rgba(255, 255, 255, 0.95);
}

.instructions {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 15px;
  max-width: 800px;
  text-align: left;
  backdrop-filter: blur(5px);
  margin-top: 20px;
}

.instructions h2 {
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 10px;
}

.instructions ul {
  padding-left: 20px;
}

.instructions li {
  margin-bottom: 10px;
  line-height: 1.5;
}

.status {
  margin-top: 15px;
  font-style: italic;
  opacity: 0.8;
}
