:root {
    --primary-color: #d32f2f;
    --accent-color: #fbc02d;
    --white-color: #ffffff;
    --dark-gray: #212121;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark-gray);
}

/* Navigation */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-brand .text-primary {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.1) 0%, rgba(251, 192, 45, 0.1) 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.search-box {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-box h2 {
    color: var(--dark-gray);
    font-weight: 600;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #b71c1c;
    border-color: #b71c1c;
}

/* Featured Routes */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Testimonials */
.avatar {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Footer */
footer {
    background-color: var(--dark-gray);
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-color) !important;
}

/* Form Controls */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(211, 47, 47, 0.25);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .search-box {
        margin: 1rem;
    }
}

/* Loading State Styles */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.loading-state .spinner-border {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
}

.loading-state p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

/* Bus List Styles */
#busList {
    opacity: 1;
    transition: opacity 0.3s ease;
}

#busList.loading {
    opacity: 0.5;
    pointer-events: none;
}

.bus-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 1rem;
}

.bus-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Search Results Section */
.search-results {
    min-height: 500px;
    padding: 2rem 0;
}

/* Results Count */
.results-count {
    font-size: 0.9rem;
    color: #666;
}

/* Sort Options */
.sort-options .btn {
    margin-right: 0.5rem;
}

.sort-options .btn.active {
    background-color: #007bff;
    color: white;
}

/* Price Range */
.form-range::-webkit-slider-thumb {
    background: #007bff;
}

.form-range::-moz-range-thumb {
    background: #007bff;
}

/* Bus Info */
.bus-info h5 {
    margin-bottom: 0.5rem;
    color: #333;
}

.bus-info p {
    color: #666;
    margin-bottom: 0;
}

/* Timing */
.timing .departure,
.timing .duration {
    margin-bottom: 0.5rem;
}

.timing small {
    color: #666;
}

/* Seats */
.seats small {
    color: #666;
}

/* Price */
.price h4 {
    color: #007bff;
    margin-bottom: 0.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .bus-card .row > div {
        margin-bottom: 1rem;
    }
    
    .price {
        text-align: left !important;
    }
} 