*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: #eef6ff;
}

.app-shell {
  height: 100dvh;
  width: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.app-header {
  background: #ffffff;
  border-bottom: 1px solid #dbeafe;
  padding: 10px 0;
}

.app-title {
  color: #0d6efd;
  font-size: 18px;
  font-weight: 700;
}

.app-content {
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  min-height: 0;
  overflow: hidden;
}

.panel {
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  overflow: hidden;
  min-height: 0;
}

.panel-body {
  height: 100%;
  padding: 10px;
  overflow: hidden;
}

.panel-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: #1f2937;
}

#stopsList {
  line-height: 1.45;
}

.station-btn {
  white-space: nowrap;
  padding: 2px 7px;
  font-size: 12px;
}

@media (max-width: 991.98px) {
  .app-content {
    grid-template-rows: repeat(3, minmax(0, 1fr));
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .app-header {
    padding: 6px 0;
  }

  .app-title {
    font-size: 16px;
  }

  .panel-body {
    padding: 8px;
  }

  .panel-title {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .mb-2 {
    margin-bottom: 4px !important;
  }

  .my-3 {
    margin-bottom: 6px !important;
    margin-top: 6px !important;
  }

  .station-btn,
  .btn-sm {
    padding: 1px 5px;
    font-size: 11px;
  }
}
