/* Bus Booking System - Custom Styles */

:root {
    --primary-color: #4834d4;
    --secondary-color: #686de0;
    --success-color: #26de81;
    --danger-color: #fc5c65;
    --warning-color: #fed330;
    --info-color: #45aaf2;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    background-attachment: fixed;
}

/* Navbar */
.navbar {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9)),
                url('https://images.unsplash.com/photo-1570125909232-eb263c188f7e?w=1920') center/cover;
    min-height: 500px;
    padding: 80px 0;
    position: relative;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
}

/* Search Card */
.search-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.search-card label {
    font-weight: 600;
    color: var(--dark-color);
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
}

/* Route Cards */
.route-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.route-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

/* Bus Cards */
.bus-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.bus-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.amenities {
    font-size: 0.9rem;
    color: #666;
}

.fare-section h4 {
    font-size: 2rem;
    font-weight: 700;
}

/* Search Summary */
.search-summary {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Journey Details Card */
.journey-details-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Seat Selection */
.seat-layout-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.seat-legend {
    display: flex;
    gap: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.seat-box {
    width: 30px;
    height: 30px;
    border-radius: 5px;
    display: inline-block;
}

.seat-box.available {
    background: #e8f5e9;
    border: 2px solid #4caf50;
}

.seat-box.selected {
    background: #2196f3;
    border: 2px solid #1976d2;
}

.seat-box.booked {
    background: #ccc;
    border: 2px solid #999;
}

.seats-container {
    min-height: 300px;
}

.deck-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.seats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 10px;
}

.seat-item {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    border: 2px solid transparent;
}

.seat-item i {
    font-size: 1.2rem;
    margin-bottom: 3px;
}

.seat-item.available {
    background: #e8f5e9;
    border-color: #4caf50;
}

.seat-item.available:hover {
    background: #c8e6c9;
    transform: scale(1.05);
}

.seat-item.selected {
    background: #2196f3;
    border-color: #1976d2;
    color: white;
}

.seat-item.booked {
    background: #e0e0e0;
    border-color: #9e9e9e;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Booking Summary */
.booking-summary-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.selected-seats-list {
    min-height: 60px;
}

.seat-tag {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    margin: 3px;
    font-size: 0.85rem;
}

.fare-breakdown {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

/* Booking Card */
.booking-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.booking-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.booking-card.past-booking {
    opacity: 0.7;
}

/* Admin Styles */
.stat-card {
    border-radius: 15px;
    padding: 25px;
    color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.stat-icon {
    font-size: 3rem;
    opacity: 0.3;
    position: absolute;
    right: 20px;
    top: 20px;
}

.stat-content {
    position: relative;
    z-index: 1;
}

.stat-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

/* Fare Summary Box */
.fare-summary-box {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border: 2px solid #e0e0e0;
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(72, 52, 212, 0.4);
}

/* Form Controls */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(72, 52, 212, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
        min-height: 400px;
    }
    
    .search-card {
        padding: 20px;
    }
    
    .seats-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    }
    
    .seat-item {
        width: 50px;
        height: 50px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}
