/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Colors */
:root {
    --deep-blue: #004488;
    --white: #ffffff;
    --light-gray: #f0f0f0;
    --button-blue: #0077cc;
    --search-border: #ddd; /* Light gray for search box border */
}

/* Background */
html, body {
    height: 100%;
    margin: 0;
    padding: 0; /* Ensure no padding is affecting the layout */
}

body {
    background-color: var(--light-gray);
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the container horizontally */
    justify-content: flex-start; /* Align the container to the top */
}

/* Account Container */
.account-container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px; /* Add margin to ensure it's not touching the top */
}

/* Header */
h1 {
    color: var(--deep-blue);
    margin-bottom: 20px;
    background-color: var(--white); /* Ensure header is visible */
    padding: 10px; /* Add padding for better visibility */
}

/* Welcome Message */
p {
    color: var(--deep-blue);
    margin-bottom: 20px;
    background-color: var(--white); /* Ensure message is visible */
    padding: 10px; /* Add padding for better visibility */
}


/* Car List */
.car-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center; /* Center items horizontally */
}

/* Car Card */
.car-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 300px; /* Ensure card does not exceed this width */
    flex: 1 1 300px; /* Allow flexibility for card width */
}

.car-card img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid var(--light-gray);
}

.car-card .car-buttons {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.car-card .car-buttons button {
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: var(--button-blue);
    color: var(--white);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.car-card .car-buttons button:hover {
    background-color: var(--deep-blue);
}
.car-card.unposted {
    box-shadow: 0 0 12px 3px #28a745; /* Green glow */
    border-radius: 8px;
}
/* Logout Button */
form {
    text-align: center;
    margin-top: 20px;
}

form button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: var(--button-blue);
    color: var(--white);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: var(--deep-blue);
}
.car-title {
    text-align: center;
    margin-top: 10px;
    font-size: 13px;
    font-weight: bold;
    color: #333;
}

.car-card h3 {
    margin: 0;
    padding: 0;
}