/* Styles for index.html */

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #1c1c1c; /* Dark navy background */
}

#svg-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px; /* Add padding around the SVG */
  box-sizing: border-box; /* Ensure padding is included in width/height calculation */
}

#svg-container svg {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

/* Test controls styling */
#test-controls {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 10px 0;
  z-index: 2000;
  text-align: center;
}

#test-controls button {
  margin: 5px;
  padding: 8px 15px;
  background-color: #2a3f5f;
  color: white;
  border: 1px solid #4c6b9c;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

#test-controls button:hover {
  background-color: #3a5785;
}

#test-controls button:active {
  transform: scale(0.97);
}

#debug-info {
  position: fixed;
  top: 10px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #00ffcc;
  padding: 10px;
  border-radius: 5px;
  font-family: monospace;
  max-width: 300px;
  max-height: 50%;
  overflow: auto;
  z-index: 2000;
  word-wrap: break-word;
  white-space: normal;
}

/* Packet styling */
.packet {
  fill: #00ffcc;
  stroke: #ffffff;
  stroke-width: 2;
  filter: drop-shadow(0 0 5px rgba(0, 255, 204, 0.8));
  opacity: 0; /* Hidden by default */
  visibility: hidden; /* Ensure packets are completely hidden */
}

/* Path styling */
path {
  fill: none;
  pointer-events: none; /* Allow clicking through paths */
}

/* Ensure packets are always on top */
.packet {
  fill: #00ffcc;
  stroke: #ffffff;
  stroke-width: 2;
  filter: drop-shadow(0 0 5px rgba(0, 255, 204, 0.8));
  z-index: 1000; /* High z-index */
  /* opacity: 0; Hidden by default */
}

/* SVG layer ordering */
#Flow_Layer {
  z-index: 1; /* Lower z-index than packets */
}

/* Styles for test controls elements */
#flow-path-select,
#flow-select {
  margin-right: 10px;
  padding: 8px;
  background-color: #2a3f5f;
  color: white;
  border: 1px solid #4c6b9c;
  border-radius: 4px;
}

#speed-control {
  vertical-align: middle;
}

#speed-value {
  color: white;
  margin-left: 5px;
}

/* Additional styles for test controls divs */
#test-controls > div:nth-child(2) {
  margin-top: 10px;
  border-top: 1px solid #4c6b9c;
  padding-top: 10px;
}
