:root {
    --bg-main: #0b1020;
    --bg-soft: #121a31;
    --glass: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.14);
    --text: #f2f6ff;
    --muted: #95a3c7;
    --primary: #6f86ff;
    --ok: #2ecc71;
    --bad: #ff5c7a;
}

* {
    box-sizing: border-box;
}

body {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(1200px 500px at -10% -20%, #273b9b 0%, rgba(39, 59, 155, 0) 60%),
        radial-gradient(1000px 400px at 110% -10%, #0084ff 0%, rgba(0, 132, 255, 0) 55%),
        linear-gradient(180deg, #0a1125 0%, #070b17 100%);
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, p, span, div, label, li, td, th {
    color: inherit;
}

input,
select,
textarea,
button {
    color: #f3f7ff;
}

.glass-nav {
    background: rgba(5, 10, 30, 0.62);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
}

.card-glass {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    color: var(--text);
}

.card-glass .card-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
    color: #c8d5ff;
    background: rgba(255, 255, 255, 0.03);
    font-weight: 600;
}

.card-link {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(38, 100, 255, 0.22);
}

.text-secondary {
    color: var(--muted) !important;
}

.form-label,
.form-check-label,
.navbar .nav-link,
.navbar-brand {
    color: #e9efff !important;
}

.form-control,
.form-select,
textarea {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    color: #f4f8ff !important;
    -webkit-text-fill-color: #f4f8ff !important;
}

.form-control::placeholder,
textarea::placeholder {
    color: #b9c5e6 !important;
    opacity: 1;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-text-fill-color: #f4f8ff !important;
    -webkit-box-shadow: 0 0 0 1000px #121a31 inset !important;
    box-shadow: 0 0 0 1000px #121a31 inset !important;
    transition: background-color 9999s ease-in-out 0s;
}

.form-control:disabled,
.form-control[readonly] {
    color: #d7e1ff !important;
    -webkit-text-fill-color: #d7e1ff !important;
}

.form-select option {
    background: #111a34;
    color: #ecf2ff;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(111, 134, 255, 0.2) !important;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-color: #e4ebff;
    --bs-table-border-color: rgba(255, 255, 255, 0.08);
    --bs-table-hover-color: #fff;
    --bs-table-hover-bg: rgba(255, 255, 255, 0.06);
}

.table thead th {
    color: #f0f5ff;
}

.table tbody td {
    color: #d8e3ff;
}

.btn-primary {
    background: linear-gradient(90deg, #5768ff 0%, #7f63ff 100%);
    border: none;
    color: #fff;
}

.btn-outline-light {
    color: #eef3ff;
    border-color: rgba(238, 243, 255, 0.65);
}

.btn-outline-light:hover {
    color: #0d1631;
    background: #f3f7ff;
    border-color: #f3f7ff;
}

.status-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-dot.online {
    background: var(--ok);
    box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.16);
}

.status-dot.offline {
    background: var(--bad);
    box-shadow: 0 0 0 4px rgba(255, 92, 122, 0.16);
}

#map {
    height: 460px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.leaflet-control-attribution {
    font-size: 10px;
}

.leaflet-control-attribution,
.leaflet-control-attribution a {
    color: #d9e2ff !important;
    background: rgba(11, 17, 38, 0.7) !important;
}

.car-pin {
    position: relative;
    width: 28px;
    height: 28px;
    background: rgba(10, 17, 39, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 14px;
}

.car-pin::after {
    content: "";
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--ok);
    border: 1px solid #fff;
}

.car-pin.offline::after {
    background: var(--bad);
}
