/* General Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --success-color: #2ecc71;
    --warning-color: #f1c40f;
    --danger-color: #e74c3c;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --text-color: #2c3e50;
    --border-radius: 8px;
    --box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

footer {
    margin-top: auto;
}

/* Navbar Styling */
.navbar {
    background-color: white !important;
    box-shadow: var(--box-shadow);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color) !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

/* Card Styling */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
}

/* Button Styling */
.btn {
    padding: 0.6rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

/* Form Styling */
.form-control {
    border-radius: var(--border-radius);
    padding: 0.8rem 1rem;
    border: 1px solid #e1e1e1;
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
    border-color: var(--accent-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 600px;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6));
    overflow: hidden;
}

.hero-section .carousel-item {
    height: 600px;
}

.hero-section .carousel-item img {
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-section .carousel-caption {
    bottom: 50%;
    transform: translateY(50%);
    padding: 2rem;
}

.hero-image {
    height: 100%;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    padding: 0 15px;
}

/* Search Section */
.search-section {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.search-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Car Grid */
.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.car-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.car-card:hover {
    transform: translateY(-5px);
}

.car-card img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

/* Admin Dashboard */
.admin-stats-card {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 1.5rem;
}

.admin-stats-card h3 {
    font-size: 2rem;
    margin: 0;
}

/* Feature Tags */
.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.feature-tag {
    background: var(--light-gray);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        height: 400px;
    }
    
    .hero-section .carousel-item {
        height: 400px;
    }
    
    .search-section {
        margin-top: -50px;
    }
}

/* Why Choose Us */
.why-choose-us i {
    color: #007bff;
}

/* Footer */
footer {
    background-color: #333;
}

footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.social-links a {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.feature-card {
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
} 