.eta-container {
  background-color: #ffffff;
  border-radius: 8px;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
  width: 100%;
  margin: 0 auto;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #333333;
}

/* Header */
.eta-header {
  display: flex;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #e5e5e5;
}

.eta-header-left {
  display: flex;
  align-items: center;
  margin-right: 12px;
}

.bus-icon {
  flex-shrink: 0;
}

.eta-header-center {
  flex: 1;
}

.eta-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
}

.eta-header-right {
  margin-left: auto;
}

.close-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  transition: opacity 0.2s;
}

.close-button:hover {
  opacity: 0.7;
}

/* Destinations */
.eta-destinations {
  padding: 0;
}

.eta-column-headers {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.eta-column-header-left {
  flex: 1;
}

.eta-column-header-right {
  font-size: 11px;
  font-weight: 600;
  color: #666666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 16px;
  flex-shrink: 0;
}

.eta-destination {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.eta-destination:last-child {
  border-bottom: none;
}

.eta-destination-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.eta-destination-name {
  margin: 0 0 4px 0;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
}

.eta-destination-address {
  margin: 0;
  font-size: 13px;
  color: #666666;
  line-height: 1.4;
}

.eta-destination-time {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: 16px;
  flex-shrink: 0;
}

.eta-destination-times {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: 16px;
  flex-shrink: 0;
}

.eta-primary-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.eta-item-row {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.eta-item-additional {
  padding: 6px 0;
}

.eta-item-additional:last-child {
  padding-bottom: 0;
}

.expand-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.expand-button:hover {
  opacity: 0.7;
}

.eta-popup-wrapper {
  position: relative;
}

.expand-arrow {
  transition: transform 0.2s ease;
}

.expand-arrow.expanded {
  transform: rotate(180deg);
}

.eta-popup {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  padding: 12px 16px;
  min-width: 120px;
  z-index: 100;
  animation: popupFadeIn 0.15s ease-out;
}

.eta-popup::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 12px;
  width: 12px;
  height: 12px;
  background: #ffffff;
  transform: rotate(45deg);
  box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.05);
}

.eta-popup-header {
  font-size: 11px;
  font-weight: 600;
  color: #666666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eta-time {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 2px;
}

.eta-arrival {
  font-size: 13px;
  color: #666666;
}

/* Footer */
.eta-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid #f0f0f0;
}

.eta-updated {
  font-size: 13px;
  color: #666666;
}

.refresh-button {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  color: #0066CC;
  font-size: 13px;
  font-weight: 500;
  transition: opacity 0.2s;
}

.refresh-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  color: #666666;
}

.refresh-button:hover {
  opacity: 0.8;
}

.refresh-icon {
  flex-shrink: 0;
}

/* Loading Spinner */
.eta-loading-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

