/* Base Style */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to bottom right, #f0f4f7, #ffffff);
  color: #333;
}

/* Page Container */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 70px 20px 40px;
}

/* Titles & Headings */
h1, h2, h3 {
  font-weight: bold;
  margin-bottom: 20px;
}

.title {
  text-align: center;
  font-size: 2.5em;
  color: #0d47a1;
  animation: fadeIn 1s ease;
}

/* Buttons */
.btn,
button {
  background: linear-gradient(to right, #00796b, #004d40);
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 1em;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
}

.btn:hover,
button:hover {
  transform: scale(1.05);
  background: linear-gradient(to left, #00796b, #004d40);
}

/* Inputs and Selects */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  background-color: #f9f9f9;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

th {
  background: linear-gradient(to right, #1565c0, #0d47a1);
  color: white;
  padding: 12px;
}

td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
}

tr:nth-child(even) {
  background-color: #f1f8e9;
}

tr:hover {
  background-color: #e0f7fa;
  transition: background-color 0.3s ease;
}

/* Cards */
.card {
  background: linear-gradient(to right, #42a5f5, #1976d2);
  color: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

/* Status Tags */
.status {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.9em;
  color: white;
}

.status.available { background-color: green; }
.status.on_trip { background-color: orange; }
.status.maintenance { background-color: crimson; }
.status.offline { background-color: gray; }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 60px 15px 30px;
  }

  h2.title {
    font-size: 2em;
  }

  .card {
    width: 100%;
    margin-bottom: 20px;
  }

  table {
    font-size: 0.9em;
  }
}
