@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #0e0e0e;
  color: #f0f0f0;
}

header {
  background: linear-gradient(90deg, #00b894, #0984e3);
  color: #fff;
  padding: 1.5rem 1rem;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.logo {
  width: 90px;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 5px rgba(0,0,0,0.4));
}

nav a {
  color: #0e0e0e;
  text-decoration: none;
  margin: 0 8px;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  background: #fff;
  border-radius: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

nav a:hover {
  background: #00b894;
  color: #fff;
  transform: translateY(-2px);
}

main {
  padding: 2.5rem;
  text-align: center;
  animation: fadeIn 1s ease-in;
}

.vehicle-card {
  background: #1b1b1b;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
  margin: 1.5rem auto;
  padding: 1.5rem;
  max-width: 520px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.vehicle-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.6);
}

.vehicle-info {
  text-align: center;
}

.vehicle-info .supplier {
  display: block;
  font-size: 0.85rem;
  color: #bbb;
}

.vehicle-info .vehicle-name {
  margin: 0.4rem 0;
  font-size: 1.7rem;
  font-weight: 700;
  color: #00cec9;
}

.vehicle-info .vehicle-code {
  display: block;
  font-size: 0.9rem;
  color: #999;
}

.vehicle-actions, .vehicle-details {
  display: none;
}

.vehicle-card.active .vehicle-actions,
.vehicle-card.active .vehicle-details {
  display: block;
  margin-top: 1.2rem;
}

.vehicle-actions a {
  display: inline-block;
  margin: 0.2rem 0.3rem;
  color: #fff;
  background: linear-gradient(90deg, #00b894, #0984e3);
  padding: 0.4rem 1rem;
  border-radius: 25px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.vehicle-actions a:hover {
  background: linear-gradient(90deg, #0984e3, #00b894);
  transform: scale(1.05);
}

.vehicle-details {
  text-align: left;
  color: #ccc;
  font-size: 0.95rem;
}

.vehicle-details p {
  margin: 0.4rem 0;
}

.vehicle-details strong {
  color: #fff;
}

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

/* Login page styling */
.login-page {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  color: #fff;
}

.login-container {
  background: rgba(0, 0, 0, 0.7);
  padding: 2.5rem 3rem;
  border-radius: 20px;
  text-align: center;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 0 25px rgba(0,0,0,0.6);
  animation: fadeIn 1s ease;
}

.login-logo {
  width: 85px;
  margin-bottom: 1.2rem;
}

.login-container h2 {
  margin-bottom: 1.2rem;
  font-weight: 700;
}

.login-container input {
  width: 100%;
  margin: 0.6rem 0;
  padding: 0.7rem;
  border-radius: 10px;
  border: none;
  outline: none;
  font-size: 1rem;
  background: #f0f0f0;
  color: #121212;
}

.login-container button {
  width: 100%;
  margin-top: 1.2rem;
  padding: 0.7rem;
  border-radius: 10px;
  border: none;
  background: #00cec9;
  color: #121212;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease;
}

.login-container button:hover {
  background: #00b894;
}

.services {
  padding: 3.5rem 0;
  text-align: center;
}

.service {
  background: #fff;
  padding: 2rem;
  margin: 1.2rem;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

img {
  max-width: 100%;
  border-radius: 10px;
}

.logo {
  width: 110px;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 6px rgba(0,0,0,0.5));
}
