@font-face {
  font-family: 'Ubuntu';
  src: url('fonts/Ubuntu-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Ubuntu';
  src: url('fonts/Ubuntu-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

* { 
  -webkit-box-sizing: border-box; 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

::-webkit-scrollbar { 
  display: none; 
}

html, body {
  height: 100%; width: 100%; overflow: hidden;
  background-color: #003366; 
  color: #FFFFFF;
  font-family: 'Ubuntu', sans-serif;
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center;
}

.container {
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-orient: vertical; -webkit-flex-direction: column; flex-direction: column;
  height: 96%; width: 96%;
  max-width: 100vh;
  margin: 0 auto;
}

.top-bar {
  height: 6.5vh;
  margin-bottom: 0.5vh;
  border-bottom: 4px solid #BE880B;
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-pack: start; -webkit-justify-content: flex-start; justify-content: flex-start;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  padding-left: 1vmin;
  z-index: 10;
}

.page-title {
  font-size: 5.2vmin;
  font-weight: 700; color: #FFFFFF; text-transform: uppercase;
  line-height: 1; white-space: nowrap;
  margin-bottom: 0.5vh;
}

.glass-panel {
  background-color: rgba(255, 255, 255, 0.08); 
  border: 1px solid rgba(149, 202, 219, 0.3);
  -webkit-border-radius: 8px;
  border-radius: 8px;
  -webkit-box-flex: 1; -webkit-flex: 1; flex: 1;
  min-height: 0;
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-orient: vertical; -webkit-flex-direction: column; flex-direction: column;
  overflow: hidden;
  padding: 0 1vmin;
  position: relative; 
}

.list-header {
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  height: 4.5vh;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 2.3vmin;
  font-weight: 700; 
  color: #95CADB; 
  text-transform: uppercase;
}

ul { 
  list-style: none; 
  -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; 
  overflow: hidden;
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-orient: vertical; -webkit-flex-direction: column; flex-direction: column;
}

.departure-row {
  -webkit-box-flex: 1; -webkit-flex: 1 1 0%; flex: 1 1 0%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  min-height: 0;
  overflow: hidden;
}

.situation-row {
  -webkit-box-flex: 1; -webkit-flex: 1 1 0%; flex: 1 1 0%; 
  border-bottom: none !important;
  padding: 0 1vmin;
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  -webkit-box-pack: start; -webkit-justify-content: flex-start; justify-content: flex-start;
  color: #FFFFFF;
  overflow: hidden;
}

.situation-content {
  width: 100%;
  text-align: left;
  font-size: 2.3vmin;
  font-weight: 400;
  line-height: 1.3;
  white-space: normal;
  word-wrap: break-word;
}

.col-line { 
  width: 12%; 
  display: -webkit-box; display: -webkit-flex; display: flex; 
  -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center; 
  -webkit-box-align: center; -webkit-align-items: center; align-items: center; 
  -webkit-flex-shrink: 0; flex-shrink: 0; 
}

.col-dest { 
  width: 49%; 
  padding: 0 1vmin;
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-orient: vertical; -webkit-flex-direction: column; flex-direction: column;
  -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center;
  -webkit-box-align: start; -webkit-align-items: flex-start; align-items: flex-start;
  -webkit-flex-shrink: 0; flex-shrink: 0; 
  overflow: hidden;
}

.col-next { width: 15%; text-align: center; -webkit-flex-shrink: 0; flex-shrink: 0; }
.col-after { width: 15%; text-align: center; -webkit-flex-shrink: 0; flex-shrink: 0; }

.col-track { 
  width: 9%; 
  display: -webkit-box; display: -webkit-flex; display: flex; 
  -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center; 
  -webkit-box-align: center; -webkit-align-items: center; align-items: center; 
  -webkit-flex-shrink: 0; flex-shrink: 0; 
}

.line-box {
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center; 
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  width: 7.3vmin; height: 5.1vmin;
  font-weight: 700; font-size: 3.3vmin;
  -webkit-border-radius: 4px; border-radius: 4px; 
  line-height: 1;
}

.dest-main { font-size: 3.4vmin; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; width: 100%; }
.dest-via { font-size: 2.3vmin; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; opacity: 0.9; }

.dest-badge { 
  display: inline-block;
  padding: 0.3vh 0.6vmin;
  background-color: rgba(149, 202, 219, 0.25);
  -webkit-border-radius: 2px;
  border-radius: 2px;
  font-size: 1.8vmin; 
  color: #FFFFFF;
  font-weight: 700; 
  margin-top: 0.2vh;
  white-space: nowrap;
}

.time-primary { font-size: 4.5vmin; font-weight: 700; color: #FFFFFF; }
.time-secondary { font-size: 4.5vmin; font-weight: 700; color: #95CADB; }

.cancelled { color: #FF0066; font-size: 2.3vmin !important; text-transform: uppercase; font-weight: 700; }
.imminent { color: #FFFFFF; }

.track-box {
  width: 5.2vmin; height: 5.2vmin;
  background-color: #FFFFFF;
  color: #003366; font-size: 2.8vmin; font-weight: 700;
  -webkit-border-radius: 50%; border-radius: 50%; 
  display: -webkit-box; display: -webkit-flex; display: flex; 
  -webkit-box-align: center; -webkit-align-items: center; align-items: center; 
  -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center;
  line-height: 1; margin: 0;
  -webkit-box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.footer-info {
  height: 3.5vh; margin-top: 0.5vh;
  font-size: 2.3vmin; color: #95CADB; 
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-pack: end; -webkit-justify-content: flex-end; justify-content: flex-end;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  padding: 0 1vmin;
  overflow: hidden;
}

.center-message {
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-orient: vertical; -webkit-box-direction: normal; -webkit-flex-direction: column; flex-direction: column;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center;
  height: 100%; width: 100%; text-align: center;
}

.msg-title { font-size: 5.6vmin; font-weight: 700; margin-bottom: 2vmin; line-height: 1.2; }
.msg-sub { font-size: 3.4vmin; font-weight: 400; opacity: 0.8; }

.error-text { color: #FFFFFF; }
.empty-text { color: #FFFFFF; }
