body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.navbar {
    background: #1a1a2e;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}

.navbar h2 {
    margin: 0;
    font-size: 20px;
    letter-spacing: 1px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    margin-left: 15px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    background: #4CAF50;
}

.container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.sidebar {
    width: 320px;
    background: white;
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
    overflow-y: auto;
    padding: 20px;
    z-index: 900;
}

.sidebar h3 {
    margin-top: 0;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
    color: #1a1a2e;
}

.rider-card {
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.rider-card:hover {
    transform: translateY(-2px);
}
.rider-card.active {
    border-left: 4px solid #4CAF50;
}

.rider-name {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.rider-meta {
    font-size: 12px;
    color: #666;
}

.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    background: #e8f5e9;
    color: #4CAF50;
    margin-top: 8px;
}

#map {
    flex: 1;
    height: 100%;
    z-index: 1;
}

.main-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    background: #f4f7f6;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 600px;
    align-self: flex-start;
}

.card h1 {
    text-align: center;
    color: #1a1a2e;
    margin-top: 0;
}

.form-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.form-group:last-child {
    border-bottom: none;
}

.form-group label {
    font-weight: bold;
    color: #444;
}

button.btn {
    width: 100%;
    padding: 14px;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 15px;
    transition: filter 0.3s;
}

button.btn:hover {
    filter: brightness(0.9);
}

.btn-primary { background: #4CAF50; }
.btn-danger { background: #dc3545; }

input[type="text"], input[type="password"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    width: 60%;
}
input[type="checkbox"] { width: 22px; height: 22px; cursor: pointer; accent-color: #4CAF50; }

.mobile-status {
    margin-top: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    text-align: center;
    font-size: 15px;
    color: #333;
}

/* Specific to mobile tracker inputs */
.mobile-input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    text-align: left;
}
.mobile-input-group label { margin-bottom: 8px; font-weight: bold; color: #555; }
.mobile-input-group input { width: 100%; box-sizing: border-box; }
