/* Custom CSS for THU Campus Shuttle BUS Website */

/* Enhanced card styles */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
    transition: none; /* Remove any transition effects */
}

.card-header {
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Specific styles for timetable cards */
.card .card-header.bg-primary {
    border-radius: 10px 10px 0 0 !important;
}

.card .card-header.bg-primary h3,
.card .card-header.bg-primary h4 {
    font-weight: 600;
}

/* Sticky card for bus route name */
.sticky-card {
    position: fixed;
    top: 70px; /* Account for navbar height */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 0;
    width: calc(100% - 30px); /* Account for container padding */
    max-width: 1110px; /* Match Bootstrap container width minus padding */
}

.sticky-card .card {
    margin-bottom: 0;
}

/* Enhanced button styles */
.btn-primary {
    font-weight: 500;
    letter-spacing: 0.5px;
    border: none;
}

.btn-primary:hover, .btn-primary:focus {
    box-shadow: 0 0.25rem 0.5rem rgba(13, 110, 253, 0.25);
}

/* Breadcrumb styles */
.breadcrumb {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
}

/* Table enhancements */
.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

.table th {
    font-weight: 600;
    border-top: none;
}

/* Ensure consistent spacing for timetable table */
.table-responsive {
    margin: 1rem 0;
}

.table td, .table th {
    padding: 0.75rem;
    vertical-align: middle;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-header h3 {
        font-size: 1.25rem;
    }
    
    .card-header h4 {
        font-size: 1rem;
    }
    
    .table td, .table th {
        padding: 0.5rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .sticky-card {
        top: 70px; /* Same as desktop */
        width: calc(100% - 30px);
        max-width: none;
    }
}

/* Animation for content loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Utility classes */
.text-primary {
    color: #0d6efd !important;
}

.bg-lighter {
    background-color: #f8f9fa;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.rounded-lg {
    border-radius: 0.75rem !important;
}

/* Additional margin for cards */
.row .col-md-4 {
    margin-bottom: 1.5rem;
}

/* Ensure consistent spacing for all rows */
.row {
    margin-bottom: 1.5rem;
}

/* Remove default margin from last child elements */
.card-body > :last-child,
.card-footer > :last-child {
    margin-bottom: 0;
}