html {
    font-size: 14px;
    min-height: 100%;
}

body.app-body {
    margin: 0;
    min-height: 100vh;
    background: #f5f7fb;
    color: #1f2937;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
}

main.container {
    flex: 1;
}

.app-navbar {
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.brand-icon {
    font-size: 1.2rem;
}

.navbar-brand {
    font-size: 1.15rem;
    letter-spacing: 0.2px;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.92) !important;
    font-weight: 500;
    border-radius: 10px;
    padding: 8px 12px !important;
    transition: background 0.2s ease, color 0.2s ease;
}

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        background: rgba(255, 255, 255, 0.12);
        color: #ffffff !important;
    }

.app-footer {
    background: #0f172a;
    color: #e5e7eb;
    padding: 18px 0;
    font-size: 0.95rem;
}

.card {
    border: none;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.card-header {
    background: #ffffff;
    border-bottom: 1px solid #eef2f7;
    font-weight: 700;
    padding: 1rem 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

.btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 0.65rem 1rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .btn:hover {
        transform: translateY(-1px);
    }

.btn-primary {
    background: #2563eb;
    border-color: #2563eb;
}

    .btn-primary:hover,
    .btn-primary:focus {
        background: #1d4ed8;
        border-color: #1d4ed8;
    }

.btn-success {
    background: #16a34a;
    border-color: #16a34a;
}

    .btn-success:hover,
    .btn-success:focus {
        background: #15803d;
        border-color: #15803d;
    }

.btn-outline-primary {
    border-color: #2563eb;
    color: #2563eb;
}

    .btn-outline-primary:hover {
        background: #2563eb;
        border-color: #2563eb;
    }

.btn-secondary {
    background: #64748b;
    border-color: #64748b;
}

.form-control,
.form-select {
    border-radius: 12px;
    min-height: 48px;
    border: 1px solid #dbe3ee;
    background: #ffffff;
    padding: 0.75rem 0.95rem;
}

    .form-control:focus,
    .form-select:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
    }

textarea.form-control {
    min-height: 120px;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.table {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 0;
}

    .table thead th {
        background: #eff6ff;
        color: #1e3a8a;
        border-bottom: none;
        font-weight: 700;
    }

    .table td,
    .table th {
        vertical-align: middle;
        padding: 0.9rem 1rem;
    }

.alert {
    border-radius: 14px;
    border: none;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.page-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #0f172a;
}

.section-subtitle {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.hero-box {
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.08);
}

.quick-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .quick-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
    }

.list-group-item {
    border-left: none;
    border-right: none;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

#map,
#stopMap {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.bus-marker-wrapper {
    background: transparent;
    border: none;
}

.bus-marker {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #2563eb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
    font-weight: bold;
}

.bus-icon {
    font-size: 16px;
    line-height: 16px;
}

.bus-line-number {
    font-size: 12px;
    line-height: 12px;
    color: #2563eb;
    margin-top: 2px;
}

.search-panel {
    background: #ffffff;
    border-radius: 18px;
    padding: 1rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.stats-card {
    border-radius: 18px;
    padding: 1.25rem;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    height: 100%;
}

.stats-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: #2563eb;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.empty-state {
    background: #ffffff;
    border-radius: 18px;
    padding: 2rem;
    text-align: center;
    color: #64748b;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.badge-soft {
    background: #dbeafe;
    color: #1d4ed8;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    font-weight: 700;
    display: inline-block;
}

@media (max-width: 991.98px) {
    .hero-box {
        padding: 28px;
    }

    .page-title {
        font-size: 1.7rem;
    }
}

@media (max-width: 575.98px) {
    .hero-box {
        padding: 22px;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .card-body {
        padding: 1rem;
    }

    .table td,
    .table th {
        padding: 0.75rem;
    }
}
