/* Navbar styles */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #333;
  padding: 15px 20px;
  color: white;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.auth-buttons {
  display: flex;
  align-items: center;
}

.login-button, .logout-button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 1em;
  border-radius: 5px;
  margin-left: 10px;
  transition: background-color 0.3s ease;
}

.login-button:hover, .logout-button:hover {
  background-color: #0056b3;}
  /*end of nav*/
  
body {
  text-align: center;
  font-family: Arial, sans-serif;
  background-color: #f0f0f0;
  margin: 0;
  padding: 0;
}

.container {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 8px;
  margin-top: 150px;
}

/* h1, h2 {
  color: #333;
} */

form {
  display: flex;
  flex-direction: column;
}

form input {
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

form button {
  padding: 10px;
  background-color: #007BFF;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

form button:hover {
  background-color: #0056b3;
}


/* General page styling */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f9;
}

.page-header {
  text-align: center;
  background-color: #333;
  color: white;
  padding: 20px;
  margin-bottom: 20px;
}

.vehicle-main-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Vehicle list styling */
.vehicle-list {
  list-style-type: none; /* Remove bullet points */
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0;
  justify-content: center;
}

.vehicle-item {
  width: 300px;
}

.vehicle-link {
  text-decoration: none;
  color: inherit;
}

.vehicle-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  text-align: center;
}

.vehicle-card:hover {
  transform: scale(1.05);
}

.vehicle-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.vehicle-info {
  padding: 15px;
}

.vehicle-info h2 {
  margin: 10px 0;
  font-size: 1.5em;
}

.vehicle-info p {
  margin: 5px 0;
  color: #666;
}

/* Remove vehicle form styling */
.remove-form {
  margin-top: 10px;
}

.remove-button {
  background-color: #d9534f;
  color: white;
  border: none;
  padding: 10px;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.remove-button:hover {
  background-color: #c9302c;
}

/* Action buttons */
.action-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.logout-button, .add-button {
  padding: 10px 20px;
  border: none;
  background-color: #007bff;
  color: white;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s ease;
}

.logout-button:hover, .add-button:hover {
  background-color: #0056b3;
}

/* Responsive design */
@media (max-width: 768px) {
  .vehicle-item {
    width: 100%;
  }
  
  .action-buttons {
    flex-direction: column;
    align-items: center;
  }

  .action-buttons form, .action-buttons button {
    width: 100%;
    margin-bottom: 10px;
  }
}



/* Existing styles remain unchanged, this is for oneVhicle.ejs */

/* Container for the vehicle details */
.vehicle-container {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 8px;
  margin-top: 150px;
  text-align: center;
}

/* Vehicle brand text styling */
.vehicle-brand {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #333;
}

/* Form styling for vehicle action buttons */
.vehicle-action-form {
  margin-bottom: 15px;
}

.action-button {
  padding: 10px;
  background-color: #007BFF;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
}

.action-button:hover {
  background-color: #0056b3;
}

/* Back button styling */
.back-button {
  padding: 10px 20px;
  background-color: #6c757d;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  margin-top: 20px;
}

.back-button:hover {
  background-color: #5a6268;
}

/* Existing styles remain unchanged, thats for addvhicle.ejs */

/* Form container styling */
.form-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 8px;
  margin-top: 50px;
  text-align: left;
}

/* Form title and subtitle styling */
.form-title {
  text-align: center;
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
}

.form-subtitle {
  text-align: center;
  font-size: 14px;
  margin-bottom: 20px;
  color: #666;
}

.form-subtitle a {
  color: #007BFF;
  text-decoration: none;
}

.form-subtitle a:hover {
  text-decoration: underline;
}

/* Form input styling */
.add-vehicle-form label {
  display: block;
  margin-bottom: 5px;
  color: #333;
  font-weight: bold;
}

.add-vehicle-form input,
.add-vehicle-form select {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

.add-vehicle-form input:focus,
.add-vehicle-form select:focus {
  border-color: #007BFF;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Submit button styling */
.submit-button {
  width: 100%;
  padding: 12px;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.submit-button:hover {
  background-color: #0056b3;
}
/*admin
/* public/styles.css */
body {
  font-family: Arial, sans-serif;
  padding: 20px;
  background-color: #f4f4f9;
}

h1 {
  text-align: center;
  color: #333;
}

form {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

form input[type="text"] {
  padding: 8px;
  font-size: 16px;
}

form button {
  padding: 8px 16px;
  font-size: 16px;
  background-color: #5cb85c;
  color: #fff;
  border: none;
  cursor: pointer;
}

.user-list {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.user-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 80%;
  max-width: 500px;
  padding: 20px;
  margin: 10px 0;
}

.user-card h2 {
  margin-top: 0;
}

.user-card p, .user-card ul {
  margin: 5px 0;
}

.user-card button {
  padding: 8px 12px;
  font-size: 14px;
  background-color: #007bff;
  color: #fff;
  border: none;
  cursor: pointer;
}
/* styles.css */

body {
  font-family: Arial, sans-serif;
}

h1 {
  text-align: center;
}

.user-card {
  margin: 20px;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.user-info {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.user-info td {
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

.user-info td:first-child {
  width: 40%; /* Key column */
  font-weight: bold;
}

button {
  margin-top: 10px;
}