/* Transport Planning KIOSK Display */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  font-family: "Arial", "Helvetica Neue", sans-serif;
  background-color: #1a1a1a;
  color: #fff;
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.kiosk {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.header {
  background: #2a2a2a;
  padding: 20px 30px;
  border-bottom: 3px solid #ffcc00;
  flex-shrink: 0;
}

.header h1 {
  font-size: 2.5rem;
  color: #ffcc00;
  font-weight: bold;
  letter-spacing: 1px;
}

.content {
  flex: 1;
  overflow: hidden;
  padding: 15px 20px;
}

.date-section {
  margin-bottom: 12px;
}

.date-header {
  font-size: 0.8rem;
  color: #fff;
  background: #333;
  padding: 5px 10px;
  margin-bottom: 5px;
  text-transform: capitalize;
  border-left: 4px solid #ffcc00;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1;
}

.events-table {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.event-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 2px solid #333;
  gap: 8px;
  position: relative;
}

.event-status {
  width: 18px;
  height: 50px;
  background-color: #00cc00;
  border-radius: 3px;
  flex-shrink: 0;
}

.event-row.status-tentative .event-status {
  background-color: #ff9900;
}

.event-row.status-busy .event-status {
  background-color: #00cc00;
}

.event-row.status-free .event-status {
  background-color: #999;
}

.event-main {
  flex: 1;
}

.event-title {
  font-size: 1.5rem;
  color: #ffcc00;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
  line-height: 1.4;
}

.event-location {
  font-size: 1.5rem;
  color: #aaa;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.3;
}

.event-time {
  display: flex;
  gap: 2px;
  align-items: center;
  white-space: nowrap;
}

.event-time span {
  font-size: 1.6rem;
  color: #ffcc00;
  font-weight: 700;
  min-width: 120px;
  text-align: right;
  letter-spacing: 0.5px;
  line-height: 1.4;
}

.time-end {
  color: #ffcc00 !important;
}

.no-events {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
}

.no-events p {
  font-size: 1.8rem;
  color: #666;
}

.footer {
  background: #2a2a2a;
  padding: 15px 30px;
  text-align: center;
  font-size: 1rem;
  flex-shrink: 0;
  border-top: 1px solid #333;
  color: #aaa;
}

/* Scrollbar styling */
.content::-webkit-scrollbar {
  width: 8px;
}

.content::-webkit-scrollbar-track {
  background: #2a2a2a;
}

.content::-webkit-scrollbar-thumb {
  background: #ffcc00;
  border-radius: 4px;
}

.content::-webkit-scrollbar-thumb:hover {
  background: #ffdd33;
}

/* Responsive */
@media (max-width: 1024px) {
  .header h1 {
    font-size: 2rem;
  }

  .event-title {
    font-size: 0.8em;
  }

  .event-location {
    font-size: 0.8em;
  }

  .event-time span {
    font-size: 0.8em;
  }
}

@media (max-width: 600px) {
  .header {
    padding: 15px 20px;
  }

  .header h1 {
    font-size: 1.5rem;
  }

  .content {
    padding: 15px 20px;
  }

  .event-row {
    flex-direction: column;
    gap: 10px;
    padding: 15px 20px;
  }

  .event-time {
    flex-direction: row;
    justify-content: space-between;
  }

  .event-time span {
    font-size: 0.8em;
  }
}
