:root {
    --primary: #0d6efd;
}

body {
    background-color: #f4f6f9;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.navbar {
    padding: 0.6rem 1rem;
}

.navbar-brand {
    font-size: 1.1rem;
}

.card {
    border-radius: 12px;
    overflow: hidden;
}

.btn {
    border-radius: 10px;
}

.btn-lg {
    font-size: 1rem;
    padding: 0.8rem 1rem;
}

.vehicle-card {
    border-radius: 12px;
    border-width: 2px;
    transition: all 0.2s ease;
}

.btn-check:checked + .vehicle-card {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.btn-check:checked + .vehicle-card .badge {
    background-color: #fff !important;
    color: var(--primary) !important;
}

.table {
    font-size: 0.85rem;
}

.table th {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6c757d;
    border-bottom-width: 1px;
}

.badge {
    font-weight: 500;
    font-size: 0.72rem;
    padding: 0.3em 0.55em;
    border-radius: 6px;
}

.alert {
    border-radius: 10px;
    font-size: 0.9rem;
}

.form-control-lg, .form-select-lg {
    border-radius: 10px;
    font-size: 1rem;
}

.nav-tabs .nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
}

.nav-tabs .nav-link.active {
    color: var(--primary);
}

#live-indicator {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@media (max-width: 576px) {
    .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }

    .fs-3 { font-size: 1.4rem !important; }
    .fs-4 { font-size: 1.15rem !important; }
    .fs-5 { font-size: 1rem !important; }
}

.offline-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #dc3545;
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 9999;
    display: none;
}

.offline-notice.show {
    display: block;
}
