/* Custom styles for TogetherAirport */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

/* Mobile-first responsive design */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navbar customizations */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Card hover effects */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Jumbotron style for hero section */
.jumbotron {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
}

/* Form styling */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Enhanced form styling for better alignment */
.form-label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

.form-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-control::placeholder {
    color: #6c757d;
    opacity: 0.8;
}

/* Form text styling */
.form-text {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #6c757d;
}

/* Enhanced form check styling */
.form-check {
    padding-left: 1.5rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    border-radius: 0.25rem;
    border: 1px solid #dee2e6;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Invalid feedback styling */
.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--danger-color);
}

.is-invalid {
    border-color: var(--danger-color);
}

.is-invalid:focus {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Button customizations */
.btn {
    border-radius: 6px;
    font-weight: 500;
}

/* Badge styling */
.badge {
    font-size: 0.75em;
    padding: 0.5em 0.75em;
    border-radius: 6px;
}

/* Footer */
footer {
    margin-top: auto;
}

/* Footer enhancements */
footer {
    background-color: #212529 !important;
    color: #adb5bd !important;
}

footer h5, footer h6 {
    color: #fff !important;
    font-weight: 600;
}

footer p, footer li, footer span {
    color: #adb5bd !important;
}

footer a {
    color: #adb5bd !important;
    text-decoration: none;
}

footer a:hover {
    color: #fff !important;
    transition: color 0.3s ease;
}

footer .social-links a:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

footer .border-secondary {
    border-color: #495057 !important;
}

footer ul li a:hover i {
    color: var(--primary-color) !important;
    transition: color 0.3s ease;
}

footer .text-muted {
    color: #6c757d !important;
}

footer .text-light {
    color: #f8f9fa !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .jumbotron {
        padding: 2rem 1rem !important;
    }
    
    .jumbotron h1 {
        font-size: 2rem;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .jumbotron h1 {
        font-size: 1.75rem;
    }
    
    .btn {
        font-size: 0.9rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

/* Route card specific styles */
.route-card {
    border-left: 4px solid var(--primary-color);
}

.route-card.has-car {
    border-left-color: var(--success-color);
}

.route-card.passenger {
    border-left-color: var(--info-color);
}

/* Alert customizations */
.alert {
    border-radius: 8px;
    border: none;
}

/* Loading animation */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Form validation */
.is-invalid {
    border-color: var(--danger-color);
}

.invalid-feedback {
    display: block;
}

/* Search form styling */
.search-form {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Enhanced form controls for filters */
.search-form .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.search-form .form-control,
.search-form .form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    transition: all 0.15s ease-in-out;
}

.search-form .form-control:focus,
.search-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.1);
    transform: translateY(-1px);
}

/* Select2 custom styling */
.select2-container--bootstrap-5 .select2-selection {
    border-radius: 8px !important;
    border: 1px solid #dee2e6 !important;
    padding: 0.5rem 0.75rem !important;
    min-height: calc(1.5em + 1.5rem + 2px) !important;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    padding: 0 !important;
    line-height: 1.5 !important;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.1) !important;
}

/* Filter buttons styling */
.search-form .btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.15s ease-in-out;
}

.search-form .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Results count badge */
.badge.fs-6 {
    font-size: 1rem !important;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

/* Advanced filters animation */
.collapse.show {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading spinner for form submission */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

/* Enhanced input group styling */
.input-group-text {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
    border-radius: 8px 0 0 8px;
}

.input-group .form-control {
    border-left: 0;
    border-radius: 0 8px 8px 0;
}

.input-group .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

/* Mobile responsiveness for search form */
@media (max-width: 768px) {
    .search-form {
        padding: 1.5rem 1rem;
        border-radius: 8px;
    }
    
    .search-form .btn {
        margin-top: 0.5rem;
    }
    
    .search-form .form-label {
        font-size: 0.9rem;
    }
}

/* Sticky elements */
.sticky-top {
    top: 0;
    z-index: 1020;
}

/* Profile image */
.profile-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
}

/* Route status indicators */
.route-status {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

/* Pagination */
.pagination {
    justify-content: center;
}

.page-link {
    color: var(--primary-color);
    border-color: #dee2e6;
}

.page-link:hover {
    color: #0056b3;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Utility classes for spacing */
.mt-6 { margin-top: 4rem; }
.mb-6 { margin-bottom: 4rem; }
.py-6 { padding-top: 4rem; padding-bottom: 4rem; }