/* Route Catalog Styles */

.routes-container {
  padding: 2rem;
}

.routes-container .header-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.routes-container h1 {
  margin: 0;
}

.routes-container .actions {
  display: flex;
  gap: 0.5rem;
}

.routes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.route-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem;
  transition: all 0.2s ease;
}

.route-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.route-card .route-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.route-card .route-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--primary-color, #4a90e2);
  color: white;
  border-radius: 50%;
  font-weight: bold;
  font-size: 1.1rem;
}

.route-card .route-name {
  font-size: 1rem;
  font-weight: 600;
  flex: 1;
}

.route-card .route-visualization {
  background: #2d5016;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  max-height: 120px; /* Roughly 1/4 of typical previous height */
}

.route-card .route-svg {
  width: 100%;
  height: 120px; /* Fixed smaller height */
  display: block;
}

.route-card .route-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

/* Route Editor Form Styles */

.empty-state {
  text-align: center;
  padding: 3rem;
  color: rgba(255, 255, 255, 0.6);
}

.empty-state a {
  color: var(--primary-color, #4a90e2);
  text-decoration: none;
  font-weight: 600;
}

.empty-state a:hover {
  text-decoration: underline;
}

.error-messages {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.error-messages h3 {
  color: #dc3545;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.error-messages ul {
  margin: 0;
  padding-left: 1.5rem;
}

.error-messages li {
  color: #dc3545;
}
