﻿
body {
    background-color: #f0f2f5; /* Light grey background */
    font-family: 'Inter', sans-serif; /* Modern font */
    color: #333;
}

.container.my-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Page Header */
.page-header {
    color: #007bff; /* Primary blue for header */
    font-weight: 700;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 15px;
}

    .page-header::after {
        content: '';
        position: absolute;
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
        width: 60px;
        height: 4px;
        background-color: #007bff;
        border-radius: 2px;
    }

/* Reload Button Animation */
#reloadPage .bi-arrow-clockwise {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

#reloadPage:hover .bi-arrow-clockwise {
    transform: rotate(360deg);
}

/* Current Location Card */
.location-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); /* Subtle gradient */
    border: none;
    border-radius: 15px; /* More rounded */
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); /* Deeper shadow */
    margin-bottom: 3rem;
    text-align: center;
    overflow: hidden; /* For pseudo-elements */
    position: relative;
}

    .location-card::before {
        content: '\f278'; /* Bootstrap icon for map-marker-alt */
        font-family: 'bootstrap-icons';
        position: absolute;
        top: -15px;
        left: -15px;
        font-size: 8rem;
        color: rgba(0, 123, 255, 0.05); /* Very light primary color */
        z-index: 0;
        transform: rotate(-15deg);
    }

    .location-card .card-body {
        position: relative;
        z-index: 1; /* Ensure content is above pseudo-element */
    }

    .location-card .card-title {
        font-size: 1.5rem;
        font-weight: 600;
        color: #0056b3; /* Darker primary blue */
        margin-bottom: 15px;
    }

    .location-card p {
        margin: 5px 0;
        font-size: 1.05rem;
    }

    .location-card .text-primary {
        font-weight: 700;
        color: #28a745 !important; /* Success green for coordinates */
    }

/* Loading and Error States */
#loading, #location-error {
    font-size: 1.1rem;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

#loading {
    background-color: #e7f3ff; /* Light blue */
    color: #007bff;
}

#location-error {
    background-color: #f8d7da; /* Light red */
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.spinner-border {
    width: 2.5rem;
    height: 2.5rem;
    border-width: 0.3em;
    vertical-align: middle;
}

/* Section Header for Stops List */
.section-header {
    font-size: 1.8rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 2rem;
    text-align: center;
}

/* Bus Stop Cards */
.bus-stop-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* Softer shadow */
    height: 100%; /* Ensure cards in a row have same height */
}

    .bus-stop-card:hover {
        transform: translateY(-8px); /* More pronounced lift */
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15); /* Stronger shadow on hover */
    }

    .bus-stop-card .card-body {
        padding: 25px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .bus-stop-card .stop-icon {
        font-size: 3rem; /* Larger icon */
        margin-bottom: 15px;
        color: #17a2b8; /* Info blue/teal */
    }

    .bus-stop-card .card-title {
        font-size: 1.4rem;
        font-weight: 600;
        color: #343a40;
        margin-bottom: 10px;
        text-align: center;
    }

    .bus-stop-card .card-text {
        font-size: 1.1rem;
        color: #6c757d;
        margin-bottom: 20px;
        text-align: center;
    }

    .bus-stop-card .btn {
        font-weight: 600;
        padding: 0.6rem 1.5rem;
        border-radius: 8px; /* Slightly more rounded buttons */
    }

/* Modal Styling */
.modal-content {
    border-radius: 15px; /* Consistent rounded corners */
    overflow: hidden;
    max-height: 80vh; /* Max height relative to viewport */
}

.modal-header {
    background-color: #007bff; /* Primary blue header */
    color: white;
    border-bottom: none;
    padding: 1.5rem;
}

    .modal-header .btn-close {
        filter: invert(1) grayscale(100%) brightness(200%); /* White close button */
    }

.modal-title {
    font-weight: 600;
    font-size: 1.7rem;
}

.modal-body {
    padding: 2rem;
    overflow-y: auto; /* Enable scrolling for modal content */
}

    .modal-body #modalStopInfo p {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .modal-body #modalStopInfo strong {
        color: #495057;
    }

    .modal-body .list-group-item {
        border: 1px solid #e9ecef;
        margin-bottom: 10px;
        border-radius: 8px;
        cursor: pointer;
        transition: background-color 0.2s ease, transform 0.2s ease;
        padding: 15px 20px;
    }

        .modal-body .list-group-item:hover {
            background-color: #f1f8ff; /* Light blue on hover */
            transform: translateX(5px);
        }

        .modal-body .list-group-item strong {
            color: #007bff;
        }

        .modal-body .list-group-item br {
            margin-top: 5px; /* Small space between lines */
        }

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .page-header {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .location-card {
        padding: 15px;
        margin-bottom: 2rem;
    }

        .location-card .card-title {
            font-size: 1.3rem;
        }

        .location-card p {
            font-size: 0.95rem;
        }

    .section-header {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .bus-stop-card .card-title {
        font-size: 1.2rem;
    }

    .bus-stop-card .card-text {
        font-size: 1rem;
    }

    .bus-stop-card .stop-icon {
        font-size: 2.5rem;
    }

    .modal-body {
        padding: 1rem;
    }
}


