:root {
    --primary: #FF6B35;
    --primary-dark: #E55A2B;
    --secondary: #2EC4B6;
    --secondary-dark: #23A89B;
    --success: #00B4D8;
    --danger: #EF476F;
    --warning: #FFD166;
    --info: #118AB2;
    --light: #F8F9FA;
    --dark: #2B2D42;
    --gray: #6C757D;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%);
    color: var(--dark);
    min-height: 100vh;
}

/* Navbar Styles */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    padding: 0.8rem 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    animation: fadeIn 0.5s ease-in;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.brand-tagline {
    font-size: 0.7rem;
    color: var(--gray);
    margin-top: -2px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark);
    transition: all 0.3s ease;
    margin: 0 5px;
}

.navbar-nav .nav-link:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.navbar-nav .btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    border-radius: 50px;
    padding: 6px 20px;
    transition: all 0.3s ease;
}

.navbar-nav .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* Hero Section with Bus Image */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1544620347-c4fd4a3d5957?ixlib=rb-4.0.3') center/cover no-repeat;
    opacity: 0.15;
    animation: zoomIn 20s ease-in-out infinite;
}

.hero-bus-img {
    position: absolute;
    bottom: 0;
    right: 5%;
    max-width: 400px;
    opacity: 0.3;
    animation: floatBus 6s ease-in-out infinite;
}

@keyframes floatBus {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes zoomIn {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    animation: fadeIn 0.8s ease-out;
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.95;
    animation: fadeIn 1s ease-out;
}

/* Search Card */
.search-card {
    background: var(--white);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-top: 30px;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-card .form-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.search-card .form-control,
.search-card .form-select {
    border: 2px solid #E9ECEF;
    border-radius: 12px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.search-card .form-control:focus,
.search-card .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

.search-card .btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    border-radius: 12px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
}

/* Bus Card Styles */
.results-section {
    padding: 60px 0;
    background: var(--light);
}

.bus-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bus-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.bus-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bus-header h4 {
    margin: 0;
    font-weight: 700;
}

.price {
    font-size: 1.8rem;
    font-weight: 800;
}

.bus-body {
    padding: 20px;
}

.time {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

.city {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 5px;
}

.facilities {
    padding-top: 15px;
    border-top: 1px solid #E9ECEF;
    color: var(--gray);
    font-size: 0.9rem;
}

.facilities i {
    margin-right: 5px;
    color: var(--primary);
}

.bus-footer {
    padding: 15px 20px 20px;
}

.btn-select {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-select:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* Seat Map Styles */
.seat-map-container {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.seat {
    display: inline-block;
    width: 55px;
    height: 55px;
    margin: 6px;
    line-height: 55px;
    text-align: center;
    border: 2px solid #E9ECEF;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--white);
    font-weight: 600;
    font-size: 14px;
}

.seat.available:hover {
    background: linear-gradient(135deg, var(--success) 0%, #0096c7 100%);
    color: var(--white);
    border-color: transparent;
    transform: scale(1.05);
}

.seat.selected {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    border-color: transparent;
    transform: scale(1.05);
}

.seat.booked {
    background: var(--danger);
    color: var(--white);
    border-color: transparent;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Footer Styles */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer h5 {
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary);
}

.footer a {
    color: var(--gray);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--primary);
    transform: translateX(5px);
    display: inline-block;
}

.social-icons a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* Badge Styles */
.badge {
    padding: 6px 12px;
    border-radius: 50px;
    font-weight: 500;
}

.badge-warning {
    background: linear-gradient(135deg, #FFD166 0%, #FFA500 100%);
    color: var(--dark);
}

.badge-info {
    background: linear-gradient(135deg, #4ECDC4 0%, #44B3AC 100%);
    color: var(--white);
}

.badge-secondary {
    background: linear-gradient(135deg, #95A5A6 0%, #7F8C8D 100%);
    color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .search-card {
        padding: 20px;
    }
    
    .seat {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 11px;
        margin: 4px;
    }
    
    .price {
        font-size: 1.2rem;
    }
    
    .time {
        font-size: 1rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}