/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    color: #333;
}

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

/* Car Listings */
.car-listing {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.car-listing:hover {
    background-color: #f0f0f0;
}

.car-listing img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    margin-right: 20px;
    border-radius: 10px;
}

.car-info h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
}

.car-info p {
    margin: 5px 0;
}

.price {
    font-weight: bold;
    font-size: 20px;
    color: #27ae60;
}

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

/* Car Details */
.car-details img {
    width: 100%;
    max-width: 600px;
    margin-bottom: 20px;
}

h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

h3 {
    font-size: 24px;
    margin-top: 40px;
}

/* Dashboard */
.dashboard {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #34495e;
    color: white;
    border-radius: 10px;
    margin-bottom: 20px;
}

.dashboard h1 {
    font-size: 28px;
}

.dashboard a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 10px 20px;
    background-color: #2980b9;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.dashboard a:hover {
    background-color: #3498db;
}

/* Buttons */
button {
    padding: 10px 15px;
    background-color: #2980b9;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #3498db;
}

/* Form */
form {
    margin-top: 20px;
}

form input, form textarea, form select {
    width: 100%;
    max-width: 600px; /* Limit the width of input fields */
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form input[type="file"] {
    padding: 5px;
}

form button {
    max-width: 200px; /* Limit the button width */
}