body {
  font-family: sans-serif;
  padding: 1rem;
  background: #f5f5f5;
}

h1 {
  color: #333;
}

.controls {
  margin-bottom: 1rem;
}

button {
  margin-right: 1rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
}

/* Material Symbols Rounded icon font */
.material-symbols-rounded {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
}

#status {
  margin-bottom: 1rem;
  font-style: italic;
  color: #555;
}

/* Display type selector */
.display-type-selector {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.display-type-selector strong {
  margin-right: 0.4rem;
}

.button-group {
  display: flex;
  gap: 0;
}

.display-type-btn {
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  border: 1px solid #999;
  background: #f0f0f0;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: -1px;
}

.display-type-btn:first-child {
  border-radius: 4px 0 0 4px;
}

.display-type-btn:last-child {
  border-radius: 0 4px 4px 0;
}

.display-type-btn:hover {
  background: #e0e0e0;
}

.display-type-btn.active {
  background: #4CAF50;
  color: white;
  border-color: #45a049;
  font-weight: bold;
}

/* Filters UI */
.filters {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.filter-group {
  background: #fff;
  padding: 0.6rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.filter-group strong {
  display: block;
  margin-bottom: 0.4rem;
}
.filter-group label {
  display: inline-block;
  margin-right: 0.8rem;
  font-size: 0.95rem;
}
.economy-filters {
  max-width: 480px;
}
.filter-actions {
  margin-top: 0.6rem;
}
.filter-actions button {
  padding: 0.35rem 0.6rem;
  font-size: 0.9rem;
} 

/* Inara URL input styles */
.inara-label {
  margin-right: 0.5rem;
}
#inaraUrl {
  padding: 0.4rem 0.6rem;
  font-size: 1rem;
  width: 360px;
  max-width: 60%;
  margin-right: 0.5rem;
}
#inaraUrl.invalid {
  border: 1px solid #d33;
  background: #fff6f6;
}
.error {
  color: #d33;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  table-layout: auto;
}

th, td {
  border: 1px solid #ccc;
  padding: 0.5rem;
  text-align: left;
  line-height: 1.5rem;
}

th {
  background: #d9d9d9;
  font-weight: bold;
}

/* Copy-to-clipboard styles */
td.copyable {
  cursor: pointer;
  position: relative;
}

td.copyable::after {
  content: "Click to copy";
  position: absolute;
  right: 0.5rem;
  top: 0.25rem;
  font-size: 0.7rem;
  color: #777;
  opacity: 0.9;
}

td.copyable.copied {
  background: #e6ffea;
  transition: background 0.25s ease;
}

/* Elapsed time color classes */
td.elapsed-yellow {
  color: #cc8800;
  font-weight: bold;
}

td.elapsed-red {
  color: #cc0000;
  font-weight: bold;
}

/* System name cell styling for grouped view */
td.system-name-cell {
  font-weight: normal;
  background: #f0f7ff;
  writing-mode: horizontal-tb;
  vertical-align: middle;
  text-align: center;
}

/* Alternate row colors for better visibility */
tbody tr:nth-child(odd) td {
  background-color: #fafafa;
}

tbody tr:nth-child(even) td {
  background-color: #f0f0f0;
}

/* Preserve system name cell background even on alternate rows */
tbody tr:nth-child(odd) td.system-name-cell,
tbody tr:nth-child(even) td.system-name-cell {
  background-color: #f0f7ff;
}

/* Refresh button column styles */
th.refresh-col-header {
  width: 2.5rem;
  padding: 0;
}

td.refresh-cell {
  width: 2.5rem;
  padding: 0;
  text-align: center;
  vertical-align: middle;
  position: relative;
}

.refresh-btn {
  width: 100%;
  height: 100%;
  border: 1px solid #999;
  background: #f9f9f9;
  cursor: pointer;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.1s ease;
  font-size: 1.8rem;
  line-height: 1;
  box-sizing: border-box;
  position: absolute;
  top: 0;
}

.refresh-btn .material-symbols-rounded {
  font-size: 1em;
  display: block;
  line-height: 1;
  font-family: 'Material Symbols Rounded';
}

.refresh-btn:hover {
  background: #e3f2fd;
  transform: scale(1.05);
}

.refresh-btn:active {
  background: #bbdefb;
  transform: scale(0.95);
}
