/* Box Search Form Styles */

.box-search-description {
  margin-bottom: 15px;
  color: #666;
  font-size: 0.95em;
}

.box-search-form {
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: 400px;
}

.box-search-input {
  flex: 1;
  padding: 10px 15px;
  font-size: 1.1em;
  border: 2px solid #dee2e6;
  border-radius: 4px;
  transition: border-color 0.2s ease;
}

.box-search-input:focus {
  outline: none;
  border-color: #007acc;
  box-shadow: 0 0 0 3px rgba(0, 122, 204, 0.1);
}

.box-search-submit {
  padding: 10px 20px;
  background-color: #007acc;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  height: fit-content;
}

.box-search-submit:hover {
  background-color: #0056b3;
}

.box-search-submit:active {
  background-color: #004494;
}

.box-search-form .form-item {
  margin: 0;
  flex: 1;
}

/* Remove Chrome's spinner arrows for number input */
.box-search-input::-webkit-outer-spin-button,
.box-search-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.box-search-input[type=number] {
  -moz-appearance: textfield;
}

/* Box Page Styles */

.box-intro {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  padding: 20px;
  background-color: #f8f9fa;
  border-left: 4px solid #007acc;
  border-radius: 4px;
}

.box-intro strong {
  color: #007acc;
  font-weight: 600;
}

.box-stats {
  margin: 20px 0;
  padding: 15px;
  background-color: #e7f3ff;
  border-radius: 4px;
  font-weight: 500;
  color: #0056b3;
}

/* Box Journey Table */

.box-journey-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.box-journey-table caption {
  caption-side: top;
  font-size: 1.2em;
  font-weight: 600;
  color: #333;
  text-align: left;
  padding: 10px 0;
  margin-bottom: 10px;
}

.box-journey-table th {
  background-color: #007acc;
  color: white;
  padding: 12px 15px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #0056b3;
}

.box-journey-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #dee2e6;
}

.box-journey-table tr:nth-child(even) {
  background-color: #f8f9fa;
}

.box-journey-table tr:hover {
  background-color: #e9ecef;
}

.box-journey-table .date-cell {
  font-weight: 500;
  color: #495057;
  white-space: nowrap;
  width: 30%;
}

.box-journey-table .location-cell {
  color: #333;
}

.box-journey-table .release-row {
  font-style: italic;
  color: #007acc;
  font-weight: 500;
}

/* First row (release) special styling */
.box-journey-table tbody tr:first-child {
  background-color: #e7f3ff;
  border-top: 2px solid #007acc;
}

.box-journey-table tbody tr:first-child:hover {
  background-color: #d4e9ff;
}

/* Responsive Design */
@media (max-width: 768px) {
  .box-search-form {
    flex-direction: column;
    align-items: stretch;
    max-width: 100%;
  }

  .box-search-submit {
    width: 100%;
  }

  .box-intro {
    font-size: 1em;
    padding: 15px;
  }

  .box-journey-table {
    font-size: 0.9em;
  }

  .box-journey-table th,
  .box-journey-table td {
    padding: 8px 10px;
  }

  .box-journey-table .date-cell {
    width: 40%;
    font-size: 0.85em;
  }
}

/* Print Styles */
@media print {
  .box-search-form,
  .box-search-description {
    display: none;
  }

  .box-intro {
    border-left: none;
    background-color: transparent;
    padding: 0;
  }

  .box-journey-table {
    box-shadow: none;
    border: 1px solid #000;
  }

  .box-journey-table th {
    background-color: transparent;
    color: #000;
    border: 1px solid #000;
  }

  .box-journey-table td {
    border: 1px solid #000;
  }
}
