.page-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
}

.fleet-card {
  background: white;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.fleet-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.fleet-info h3 {
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}

.fleet-info p {
  margin: 0.2rem 0;
  font-size: 0.9rem;
  color: #666;
}

.status-badge {
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 16px;
  color: #fff;
}

.fleet-card.active .status-badge {
  background-color: #28a745;
}

.fleet-card.maintenance .status-badge {
  background-color: #ffc107;
  color: #000;
}

.fleet-card.inactive .status-badge {
  background-color: #dc3545;
}

.loading {
  color: #555;
}

.error {
  color: red;
}

/* Modal styling */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 5%;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background: #fff;
  margin: auto;
  padding: 1.5rem;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  animation: fadeIn 0.3s ease;
}

.close {
  float: right;
  font-size: 1.5rem;
  cursor: pointer;
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(-10px);}
  to {opacity: 1; transform: translateY(0);}
}
