/* ROUTE MODE SELECTOR (Horizontal Dark - High Fidelity) */
.route-mode-groups {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    margin-top: 15px;
    /* More spacing from inputs */
    perspective: 1000px;
}

.mode-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.6);
    /* Very dark slate */
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Subtle border */
    border-radius: 8px;
    padding: 12px 6px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 64px;
    position: relative;
    color: #64748b;
    /* Muted text when inactive */
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Hover Effect */
.mode-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    color: #cbd5e1;
}

/* Click Animation (Active Press) */
.mode-btn:active {
    transform: scale(0.96) translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mode-btn i {
    font-size: 18px;
    margin-bottom: 6px;
    transition: color 0.3s, transform 0.3s;
}

.mode-btn:hover i {
    transform: scale(1.1);
}

.mode-btn span {
    font-size: 0.7rem;
    font-weight: 800;
    /* Extra bold */
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* --- ACTIVE STATES (The Glow) --- */

/* FASTEST (JS uses 'fast') - BLUE */
.mode-btn.fast.active {
    background: rgba(0, 219, 255, 0.1);
    border-color: #00DBFF;
    color: #00DBFF;
    box-shadow: 0 0 15px rgba(0, 219, 255, 0.25), inset 0 0 10px rgba(0, 219, 255, 0.05);
}

.mode-btn.fast.active i {
    color: #00DBFF;
    text-shadow: 0 0 10px rgba(0, 219, 255, 0.6);
}

/* CHEAPEST (JS uses 'eco') - GREEN */
.mode-btn.eco.active {
    background: rgba(0, 255, 157, 0.1);
    border-color: #00FF9D;
    color: #00FF9D;
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.25), inset 0 0 10px rgba(0, 255, 157, 0.05);
}

.mode-btn.eco.active i {
    color: #00FF9D;
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.6);
}

/* SHORTEST (JS uses 'short') - GOLD */
.mode-btn.short.active {
    background: rgba(255, 215, 0, 0.1);
    border-color: #FFD700;
    color: #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.25), inset 0 0 10px rgba(255, 215, 0, 0.05);
}

.mode-btn.short.active i {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}