@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap");

* {
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  user-select: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100vw;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: #f4f6f8;
  color: #333;
  overflow-x: hidden;
  overflow-y: auto;
  padding-top: 20px;
}

.app {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0 20px;
}

svg {
  width: 100%;
  height: auto;
  min-height: 450px;
  max-width: 900px;
  margin: 20px 0;
}

.state circle {
  fill: #fff;
  stroke: #333;
  stroke-width: 2;
  transition: all 0.3s ease;
}

.state text {
  font-size: 18px;
  font-weight: 600;
  text-anchor: middle;
  dominant-baseline: middle;
  fill: #333;
  transition: fill 0.3s ease;
}

.state.double circle:nth-child(2) {
  r: 28;
  stroke-width: 2;
}

.arrow {
  stroke: #333;
  stroke-width: 2;
  fill: none;
  marker-end: url(#arrowhead);
  transition: stroke 0.3s ease, stroke-width 0.3s ease;
}

.transition-label {
  font-size: 12px;
  fill: #666;
  font-weight: 500;
  background-color: rgba(255, 255, 255, 0.8);
}

.container_Input {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  z-index: 1;
  margin-bottom: 20px;
}

label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-top: 5px;
  display: block;
}

.input {
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.input:focus {
  border-color: #666;
}

#runBtn {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

#runBtn:hover {
  background-color: #ddd;
}

#result {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  min-height: 20px;
}

.text2 {
  font-size: 11px;
  color: #888;
  margin-top: 8px;
  line-height: 1.4;
  display: block;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.back-button-wrapper {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
}

.back-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
  padding: 5px;
  border-radius: 5px;
  transition: background-color 0.2s;
  flex-shrink: 0;
}

.back-btn:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.back-btn svg {
  width: 24px;
  height: 24px;
  stroke: #333;
}
