/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Logo styles */
.logo-container {
    width: 100%;
    background-color: #f8f8f8;
    padding: 20px 0;
    text-align: center;
}

.logo {
    max-width: 100%;
    height: auto;
    max-height: 150px; /* Adjust as needed */
}

/* Navigation styles */
.main-nav {
    width: 100%;
    background-color: #333;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    flex: 1;
    text-align: center;
}

.main-nav a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    transition: background-color 0.3s;
}

.main-nav a:hover {
    background-color: #555;
}

/* Main content styles */
main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Footer styles */
footer {
    background-color: #333;
    color: white;
    padding: 25px 0;
    margin-top: 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.contact-icons {
    display: flex;
    gap: 15px;
}

.contact-icon {
    color: white;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, color 0.2s;
}

.contact-icon:hover {
    color: #4CAF50; /* Green color for hover */
    transform: scale(1.1);
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

/* About Page Styles */
.about-page {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.car-listings {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.car-card {
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.car-brand {
    background-color: #f8f8f8;
    padding: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    border-bottom: 1px solid #e1e1e1;
}

.car-model {
    padding: 10px 15px;
    font-size: 1.2rem;
    color: #555;
}

.car-image-container {
    height: 200px;
    overflow: hidden;
}

.car-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.car-image:hover {
    transform: scale(1.05);
}

.no-image-placeholder {
    background: #f5f5f5;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 1rem;
}

.car-details {
    padding: 15px;
}

.car-specs {
    margin-bottom: 15px;
}

.car-specs p {
    margin: 8px 0;
    font-size: 0.95rem;
}

.car-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #e63946;
    margin: 15px 0;
}

.view-details-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2a9d8f;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.view-details-btn:hover {
    background-color: #264653;
}

/* Car Detail Page Styles */
.car-detail-page {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #333;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.car-detail-container {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.car-image {
    flex: 1;
}

.image-placeholder {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.car-specs {
    flex: 1;
}

.car-specs h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.car-specs ul {
    list-style-type: none;
    padding: 0;
}

.car-specs li {
    margin-bottom: 10px;
}

.features-list {
    columns: 2;
    margin-bottom: 30px;
}

.inquiry-btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.inquiry-btn:hover {
    background-color: #128C7E;
}

.admin-container, .login-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.admin-table th, .admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.admin-table th {
    background-color: #f5f5f5;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    margin-right: 5px;
}

.btn-edit {
    background-color: #2196F3;
}

.btn-delete {
    background-color: #f44336;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.error {
    color: #f44336;
    margin-bottom: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .car-detail-container {
        flex-direction: column;
    }
    
    .features-list {
        columns: 1;
    }

    .car-listings {
        grid-template-columns: 1fr;
    }
}