/* General */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(to bottom, #e0e0e0, #f7f7f7);
  color: #000;
  min-height: 100vh;
}

/* Header */
header {
  text-align: center;
  padding: 1rem;
}
header h1 {
  margin: 0;
  color: #d32f2f;
}
#clock {
  margin-top: 0.5rem;
  font-weight: bold;
}

/* Main */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Search */
.search-container {
  position: relative;
  width: 80%;
  max-width: 400px;
  margin: 1rem auto;
}
.search-container input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 50px;
  font-size: 1.2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  outline: none;
}
.search-container button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
}

/* Suggestions */
#suggestions {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 80%;
  max-width: 400px;
  background: #fff;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
#suggestions li {
  padding: 0.5rem;
  cursor: pointer;
}
#suggestions li:hover {
  background: #eee;
}

/* Buttons */
#controls {
  margin: 0.5rem 0;
  text-align: center;
}
#lineButtons button, #directionButtons button {
  margin: 0.3rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 25px;
  background: #eaeded;
  cursor: pointer;
  font-size: 0.95rem;
}
#lineButtons button.active, #directionButtons button.active {
  background: #d32f2f;
  color: white;
}

/* Departures */
#departures {
  width: 90%;
  max-width: 500px;
}
#departures h2 {
  text-align: center;
  margin: 1rem 0;
}
.train-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #b2f0d4; /* mint pill */
  margin: 0.5rem 0;
  padding: 0.8rem 1rem;
  border-radius: 40px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  font-size: 1.1rem;
  font-weight: bold;
}
.train-item .time {
  font-size: 0.9rem;
  color: #000;
  margin-right: 1rem;
  min-width: 50px;
}
.train-item .destination {
  flex: 1;
  text-align: center;
}
.seat-badge {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
}
.seat-badge.low { background: #e74c3c; }
.seat-badge.medium { background: #f1c40f; }
.seat-badge.high { background: #27ae60; }
