* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #101820;
  color: #f2f2f2;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

header {
  text-align: center;
  padding: 20px;
  background: #0078d7;
  width: 100%;
  color: white;
}

h1 {
  font-size: 2em;
  margin-bottom: 8px;
}

main {
  width: 90%;
  max-width: 1000px;
  margin-top: 20px;
  background: #1b2735;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 20px #0078d7;
}

/* Buttons */
#menu h2 {
  text-align: center;
  margin-bottom: 10px;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

button {
  background: #0078d7;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #005fa3;
}

#inputSection {
  margin-top: 20px;
  text-align: center;
}

#inputSection input {
  padding: 10px;
  width: 40%;
  margin: 5px;
  border: none;
  border-radius: 5px;
  outline: none;
}

#output {
  margin-top: 20px;
  background: #0c131b;
  padding: 15px;
  border-radius: 10px;
  min-height: 150px;
}

#result {
  white-space: pre-wrap;
  font-family: "Consolas", monospace;
  color: #b8ffb8;
  font-size: 1rem;
}

/* === Metro Map Grid === */
.metro-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.line-card {
  background: #15202b;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.line-title {
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 10px;
  padding: 8px;
  border-radius: 6px;
  color: white;
}

/* Metro line colors */
.blue-line { background: #0078d7; }
.yellow-line { background: #f1c40f; color: #000; }
.orange-line { background: #e67e22; }
.pink-line { background: #e84393; }
.red-line { background: #c0392b; }
.green-line { background: #27ae60; }

.station-list {
  list-style: none;
  padding-left: 10px;
}

.station-list li {
  margin: 4px 0;
  padding: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
}

/* Footer */
footer {
  margin-top: auto;
  text-align: center;
  padding: 15px;
  font-size: 0.9em;
  color: #ccc;
}
